Descriptionsync: Attempt to recover from directory corruption
Sync when sqlite fails to maintain databsae integrity, most likely due
to unexpected shutdowns or flaky storage devices. They can also be
corrupted by logic errors in the sync code, though we hope that's a rare
occurence.
This patch attempts to improve a user's experience in this scenario by
transparently deleting the old directory and re-downloading all their
data. This will be much better than the old behaviours, which included
silently signing a user out of sync, triggering an unrecoverable error,
or crashing.
To help catch sync logic bugs, debug builds are set to crash when they
detect directory corruption.
Also included in this patch is a new test. The
DirectoryBackingStore.MinorCorruption test exercises the code invoked
when the directory is successfully re-created.
BUG=109668, 129825
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=150465
Patch Set 1 #
Total comments: 8
Patch Set 2 : Review fixes #
Total comments: 3
Patch Set 3 : Update comment #Patch Set 4 : Fix win compile warning #Patch Set 5 : Fix other win compile warning #
Messages
Total messages: 12 (0 generated)
|