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

PermissionManager should ignore intermittent errors #6506

Merged
merged 6 commits into from
May 3, 2019

Conversation

cmelchior
Copy link
Contributor

Closes #6492
Adds functionality for partly working around https://github.com/realm/realm-java-private/issues/259

Before this PR, the PermissionManager held on to any error reported, even intermittent network errors. This caused it to stop working once such an error was encountered.

With this PR, all errors known to be temporary are just ignored, since the end user cannot do anything besides retrying closing/opening the PermissionManager again. Internally we are already retrying sending data which is much more efficient, so no reason to put that burden on the end user.

With this change, only non-recoverable errors should be reported to end users.

Copy link
Contributor

@kneth kneth left a comment

Choose a reason for hiding this comment

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

LGTM

CHANGELOG.md Outdated Show resolved Hide resolved
Co-Authored-By: cmelchior <christian@ilios.dk>
@bmunkholm bmunkholm self-requested a review May 3, 2019 12:55
CHANGELOG.md Outdated Show resolved Hide resolved
@cmelchior cmelchior merged commit fa111cd into master May 3, 2019
@cmelchior cmelchior deleted the cm/bug/permission-manager-lost-connection branch May 3, 2019 22:12
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PermissionManager.getPermissions() error after connection reset
6 participants