Skip to content

[NMA-1115] (Explore Dash) Possible fix for sync worker issues - #840

Merged
HashEngineering merged 1 commit into
feature-explore-dashfrom
bugfix-explore-sync-issues
Dec 28, 2021
Merged

HashEngineering merged 1 commit into
feature-explore-dashfrom
bugfix-explore-sync-issues

Conversation

@Syn-McJ

@Syn-McJ Syn-McJ commented Dec 16, 2021

Copy link
Copy Markdown
Member

Sync worker fails to run sometimes with a firebase error “client is offline” even though the connection is present.

Issue being fixed or feature implemented

It's not 100% clear what is the problem, but it might be related to the usage of await() method from the kotlinx-coroutines-play-services, even though this issue was apparently fixed a while ago. I moved all of the firebase data fetching methods from await() back to addListenerForSingleValueEvent just in case this is the problem.

Another possibility is that this is simply due to connection problems, hence I've added an exponential backoff retrying policy.

Related PR's and Dependencies

Screenshots / Videos

How Has This Been Tested?

  • QA (Mobile Team)

Checklist:

  • I have performed a self-review of my own code and added comments where necessary
  • I have added or updated relevant unit/integration/functional/e2e tests

@Syn-McJ Syn-McJ self-assigned this Dec 16, 2021

@HashEngineering HashEngineering left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good.

@HashEngineering
HashEngineering merged commit 14430ef into feature-explore-dash Dec 28, 2021
@HashEngineering
HashEngineering deleted the bugfix-explore-sync-issues branch May 19, 2022 14:21
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.

2 participants