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

CBL-5035 : Fix backgrounding logic to cover conflict resolution #3198

Merged
merged 1 commit into from
Nov 10, 2023

Conversation

pasin
Copy link
Contributor

@pasin pasin commented Nov 9, 2023

  • The extending background task shouldn’t be ended if there are still pending conflict resolutions.

  • When the app was suspended by the background monitor, any current pending conflict resolutions should be canceled. All cancelled conflict resolutions will be notified and put into the queue again when the replicator is resumed or is restarted.

  • Fixed bug that the backgrounding monitor may not be restarted after it was ended.

  • Renamed some methods and add comments to code.

  • Added test to test suspending conflict resolution.

Objective-C/CBLReplicator.mm Outdated Show resolved Hide resolved
Copy link
Contributor

@bmeike bmeike left a comment

Choose a reason for hiding this comment

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

This is a gigantic change to a version that is end of life.
Unless it is a bug that was introduced since 2.8.x, I suggest we consider asking customers to upgrade, to get the fix.

@pasin
Copy link
Contributor Author

pasin commented Nov 9, 2023

Confirmed from the PM that this fix will go into 3.0.x branch. The fix will be ported to the other release branches.

* The extending background task shouldn’t be ended if there are still pending conflict resolutions.

* When the app was suspended by the background monitor, any current pending conflict resolutions should be canceled. All cancelled conflict resolutions will be notified and put into the queue again when the replicator is resumed or is restarted.

* Fixed bug that the backgrounding monitor may not be restarted after it was ended.

* Renamed some methods and add comments to code.

* Added test to test suspending conflict resolution.
@pasin pasin merged commit 9f194b8 into release/lithium Nov 10, 2023
3 checks passed
@pasin pasin deleted the fix/CBL-5035 branch November 10, 2023 00:36
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

Successfully merging this pull request may close these issues.

3 participants