matrix-org / matrix-org/matrix-js-sdk

Sync store ends up with partial state

Open
#2,817 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
2.2k
Forks
704
Avg merge
1d 20h
Merged PRs (30d)
40

Description

It looks like somehow it's possible for the cached sync to end up in a state where it's very incomplete. In the case I have now (with Element Call), my test account is in tens of rooms but only three are in the sync object in indexeddb and those have only part of their state. Consequently, one of them is showing as 'Empty Room (was...)'. Unfortunately, I don't know how it got into this state.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names the sync object in IndexedDB and an Element Call test account, but no repository file, test, or reliable reproduction is provided. Start by inspecting the cached sync state in IndexedDB for the reported account; done means identifying how incomplete state can be stored or recovered and covering that failure with a regression test.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
database
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.