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

Strange race condition #15

Closed
davidrothera opened this issue Feb 18, 2020 · 1 comment
Closed

Strange race condition #15

davidrothera opened this issue Feb 18, 2020 · 1 comment

Comments

@davidrothera
Copy link

I'm evaluating using CloudCore for a new project and was playing around with the example app and am running into a strange issue.

If I insert a sample one at a time and wait for the sync to CloudKit to complete there is no issue however if I rapidly click 4 or more times (3 or less is fine) then errors are presented about a partial sync failure.

The objects that the error is referring to have already been synced and look complete however any other objects which were not yet synced are left in an inconsistent state.

Once the app is restarted the remaining objects are synced bringing the databases in perfect sync.

If you disconnect the device/simulator from having an internet connection and insert the objects and then re-enable connectivity then things also sync fine so it only seems to happen when there is 4+ objects created and being synced at the same time.

@davidrothera
Copy link
Author

I'm going to continue digging but I've been digging over the weekend and so thought it would be best to raise an issue in-case this is some kind of race you are aware of @deeje

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

No branches or pull requests

2 participants