Description[Sync] Fixing two bugs in the worker revealed by trying to add an encryption integration test.
The first bug was we were trying to start a nested cycle cycle, which is not allowed. The logic in the worker that tries to nudge in response to encryption changing is super old, and doesn't make any sense, so this was fixed by simply not nudging. If there needs to be a commit in response to encryption changing, the processor will drive this.
The second issue was that in certain cases the worker would try to commit something with an id but not a version. This isn't supposed to be able to happen. Turns out two quick commits could get us into this state because both would be created by the processor before getting valid version data. However, the WorkerEntityTracker can detect this is happening and has enough information to make things right.
BUG=647875
Committed: https://crrev.com/946cbb1044cabe81b6a6758f9140089e60fc1950
Cr-Commit-Position: refs/heads/master@{#420471}
Patch Set 1 #Patch Set 2 : Removing debugging log statements. #
Total comments: 16
Patch Set 3 : Reducing scope of CL to only fixing two bugs. #Patch Set 4 : Merging conflict. #
Dependent Patchsets: Messages
Total messages: 26 (17 generated)
|