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

Initial progress listener callback does not trigger when waiting for initial remote data #6976

Closed
RealmBot opened this issue Jun 29, 2020 · 7 comments · Fixed by #7344
Closed
Labels
MongoDBRealm This issue is related to the MongoDB Realm Beta O-Community

Comments

@RealmBot
Copy link
Collaborator

RealmBot commented Jun 29, 2020

When opening a synced realm with the waitForInitialRemoteData options there is no initial callback to following registered progress listeners.

@RealmBot RealmBot added the MongoDBRealm This issue is related to the MongoDB Realm Beta label Jun 29, 2020
@RealmBot
Copy link
Collaborator Author

➤ Christan Melchior commented:

Not 100% sure what this is about. [~claus.rorbech] can you clarify?

@rorbech
Copy link
Contributor

rorbech commented Jul 20, 2020

The convention is that registering a progress listener should yield an immediate callback with the current state. This does not seem to happen when using the wairForInitialRemoteData option for synced realms.

Basically just an issue tracking the failing test in https://github.com/realm/realm-java/blob/v10/realm/realm-library/src/androidTestObjectServer/kotlin/io/realm/ProgressListenerTests.kt#L278

@RealmBot
Copy link
Collaborator Author

RealmBot commented Sep 1, 2020

➤ Claus Rørbech commented:

Even though the stack trace provided in https://jira.mongodb.org/browse/HELP-17846 indicates that this is related to sync not progressing, it could also be related to https://jira.mongodb.org/browse/ROBJSTORE-98?

@sync-by-unito
Copy link

sync-by-unito bot commented Jan 26, 2021

➤ Claus Rørbech commented:

Seems to be the second case of realm/realm-core#4302

@sync-by-unito
Copy link

sync-by-unito bot commented Feb 23, 2021

➤ Paolo Manna commented:

[~claus.rorbech]

Is this now considered solved? Any changes to the SDK? realm-java doesn't seem to have been updated to latest Core recently…

@sync-by-unito
Copy link

sync-by-unito bot commented Feb 24, 2021

➤ Claus Rørbech commented:

[~paolo.manna] The fix is on the cloud side, so no need to update. That said, I haven't verified it yet, but am in the process of verifying it with our integration tests.

@sync-by-unito
Copy link

sync-by-unito bot commented Feb 24, 2021

➤ Paolo Manna commented:

[~claus.rorbech]

Great, thanks, let me know the outcome, so that I can confidently update the customer about it!

@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
MongoDBRealm This issue is related to the MongoDB Realm Beta O-Community
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants