Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[🐴] Recover from initial failed firehose state #4211

Merged
merged 1 commit into from
May 24, 2024

Conversation

estrattonbailey
Copy link
Member

We've had some reports of chats failing to update. One possible culprit I've thought of so far is what this PR addresses: if the event bus/firehose is in an error state, starting a new chat will not restart the polling.

So if the user:

  • opens app
  • event log fails for any reason
  • they nav to a chat or start a new one
  • send a message
  • we never poll for messages, and so never get a response back from their recipient

It's not clear why the event log is failing yet, but we have had issues with session agents that could cause failures like this, and fixes have been merged already.

What this PR does is handle a dispatched UpdatePoll event when the firehose is in an error state, and uses that to basically restart from 0 and attempt a recovery. If it fails again after this, the Convo screen will show its normal error.

Copy link

render bot commented May 24, 2024

Copy link

Old size New size Diff
7.3 MB 7.3 MB 28 B (0.00%)

@estrattonbailey estrattonbailey changed the title Recover from initial failed firehose state [🐴] Recover from initial failed firehose state May 24, 2024
Copy link
Member

@mozzius mozzius left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes sense to me

@estrattonbailey estrattonbailey merged commit c0175af into main May 24, 2024
6 checks passed
@AlirezaRahmani2004
Copy link

This is totally a flaw of course.

estrattonbailey added a commit that referenced this pull request May 28, 2024
* origin/main: (392 commits)
  Remove old onboarding (#4224)
  Replace getAgent() with reading agent (#4243)
  Bump 1.85.0 (#4237)
  bump iOS target to `14.0` (#4238)
  set `onEndReachedThreshold` to `2` for notifications (#4235)
  Run intl extract (#4217)
  Updated Japanese translation (#4144)
  Updated Chinese translation (#4147)
  Update Korean localization (#4148)
  Update catalan messages.po (#4149)
  Update Indonesian translation (#4165)
  [🐴] update convo list from message bus (#4189)
  Recover from initial failed firehose state (#4211)
  Move ALT indicator right and shrink it a bit (#4213)
  Make sure failed messages enter error state (#4210)
  [🐴] Don't submit the message on return press when on a phone (web input) (#4203)
  Include feedContext in DOM as data- (#4206)
  Improve moderation behaviors: show alert/inform sources and improve UX around threads (#3677)
  Privileged app passwords (#4200)
  [🐴] Overfetch follow for default new dialog state (#4205)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants