-
Notifications
You must be signed in to change notification settings - Fork 43
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
Sync'ing Stallment #356
Comments
|
@martinoneutrino hello there, Upon closer examination of the logfile you provided, we've identified a race condition. Should be fixed now in develop, would it be possible to run a new test?. Are you sending the app to BG after 5 minutes?. If the app is in foreground, the websocket shouldn't get reconnected. If possible, before running your test, add an extra log sentence here so we can follow the heartbeat. Regarding the Ghost Transform errors (there are many of those in the logs):
Is it possible you've either changed the Data Model, and that account has legacy data stored in the backend? Thank you! |
I don't recall sending the app to BG, and don't believe I did. I have an additional log I'll send; it has the connection closing after nearly 30 minutes, with heartbeats every 30seconds during that time. |
@martinoneutrino many thanks for the tests + extra logs!. Please, whenever you try with the latest develop, it'd be super helpful if you could export the logs again, with the latest code. Thanks! |
I also ran the devel branch, but I don't know if it actually finished correctly or not, since there is no pending changes count. |
@martinoneutrino hey there, We've closed issue #9, and exposed an async call that grants you access to internal sync'ing stats. I've been through the logs you provided, i would agree with you!, this time the WebSocket connection remained open for several hours, so it's highly likely the end of stream we've been observing was due to a network glitch. I'm sorry to say that i missed a flow, and the race condition was still present (my bad). May i bother you once again with a quick test? should be 100% good now!. Thank you! |
@martinoneutrino would you please confirm if this issue is fixed for you? Thank you sir! |
Yes, it worked and completed successfully. |
@martinoneutrino thank you for testing the fix!. Regarding the Sync Status method, since it's an expensive call (it involves checking the number of elements in three threadsafe collections), adding a bucket level callback would be a terrible idea in terms of performance. Are you using some sort of locking UI + spinner? |
@martinoneutrino since the Sync'ing stallment issue is fixed, i'm closing this ticket. If needed, please, feel free to open another issue. Any suggestions will be welcome. Thank you sir! |
Reference: #351
@martinoneutrino let's move over to this issue, regarding the sync'ing stallment.
I've been reviewing the logs you've provided (thanks for that!). Few comments below:
requestVersion:forObjectWithKey:
method is called during initial sync. Just to be sure, would you please disable that behavior and test again?Simperium error: transform diff for a ghost member
. Are you using just one device?. If so, we'll need to find the cause for that. That code should not be executed in a single device scenario.I'll take a deeper look, and report back any new findings.
Thanks!
The text was updated successfully, but these errors were encountered: