Transactional locks for sync completions #2219
Reference in New Issue
Block a user
Delete Branch "zachgoll/fix-family-sync-race-condition"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Users have complained about syncs getting "stuck", which many have been caused by the
Familysync, which delegates to its child syncs to alert it when they have all completed.Given the concurrent nature of sync operations, in some cases, multiple child syncs were alerting the parent of completion at the same time. Without DB locks, this occasionally resulted in an "infinite sync" scenario where the parent never completed.