-
Notifications
You must be signed in to change notification settings - Fork 169
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
RCORE-1982 Opening realm with cached user while offline results in fatal error and session does not retry connection #7469
Merged
Merged
Changes from 2 commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
ff43531
Moved to using a pre-initialized sync-route instead of leaving empty …
ee21683
Merge branch 'master' of github.com:realm/realm-core into mwb/locatio…
a0fdcc7
Merge branch 'master' of github.com:realm/realm-core into mwb/locatio…
82f9e49
Added base url update logic when session connection fails - added ver…
ad7d068
Merge branch 'master' of github.com:realm/realm-core into mwb/locatio…
cdda1d4
Updated changelog; added default_base_url for C_API; added restart_se…
5706e02
Fixed c_api compile error
3fad39c
Silly uninitialized variable
bcdb8f5
Merge branch 'master' of github.com:realm/realm-core into mwb/locatio…
e4fe219
Updates from review; fixed deadlock in test
8431a1d
Updated test
963ae15
Changed default base url to function in CAPI
8f86fe0
Updates from review
b700c1e
Removed old test and updated translationg comments in create_ws_host_url
da97c9d
Merge branch 'master' of github.com:realm/realm-core into mwb/locatio…
f6e50f1
Updates from review
1c4ebf2
Merge branch 'master' of github.com:realm/realm-core into mwb/locatio…
5c70cec
Updated changelog after release buidl
7b8be30
Updates from review
780388b
Moved HookedSocketProvider and HookedTransport to sync_test_utils for…
5e8d002
Added test for updating the an invalid sync route using local server
8da1dbd
Merge branch 'master' of github.com:realm/realm-core into mwb/locatio…
7c16496
Expanded test to use multiple realms with and without multiplexing
f412b5b
Delete directory _after_ stopping app...
d3d0c7b
Merge branch 'master' of github.com:realm/realm-core into mwb/locatio…
a0ad7d4
Updates from review
b4b6391
Merge branch 'master' of github.com:realm/realm-core into mwb/locatio…
dc37ede
Updated comment and changelog from review
d9f32bc
Merge branch 'master' of github.com:realm/realm-core into mwb/locatio…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this the correct reason if the errors is not fatal (i.e, is_verified = false)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes - if the location hasn't been updated since the
App
was created, then we want this to not be a fatal error and perform a location update to try to request the correct sync route from the base URL address. Until the location info has been requested successfully, this error will continue to be treated as a nonfatal error and will retry to update the location info using the normal backoff delay.Until the location info is verified, we're not sure if we got the failure because the URL was generated incorrectly or if the server is actually down/misconfigured.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I updated the comment to make it more clear
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see. My comment was mainly about
http_response_says_fatal_error
being used even if the error is non-fatal.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
reason
value is being updated toconnect_operation_failed
on line 596 if the sync route has not been verified (i.e. not fatal).