Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(785)

Issue 10834095: sync: Improve tracking of useless updates (Closed)

Created:
8 years, 4 months ago by rlarocque
Modified:
8 years, 4 months ago
Reviewers:
Nicolas Zea
CC:
chromium-reviews
Visibility:
Public.

Description

sync: Improve tracking of useless updates Our counts of non-useless updates are wrong in part because of the way we track deletions. When an item is deleted, we flip the IS_DEL bit. On restart, we purge all fully synced IS_DEL items from our directory. However, we might still receive some re-deliveries of the tombstone for that item. The old algorithm would consider tombstones of non-existent items to be "useful", despite the fact that they're often just reflections of updates we've already received. The updated algorithm isn't perfect. There's no easy way to distinguish between a tombstone created by another client where this client never saw the original (which one could argue is useful, and definitely not a reflection) and the re-delivery of a tombstone created by another client which this client has already received and processed long ago (which is definitely not useful). Both scenarios look the same, and both will be counted as 'reflections' under the new algorithm. A similar issue arises with UNIQUE_CLIENT_TAG items. When we delete them we force their version to 0 locally. This makes our regular reflection detection algorithm ineffective. This change updates the algorithm to consider tombstones to items that have UNIQUE_CLIENT_TAG and are locally deleted to be reflections. It's not perfect, but it should be good enough for our purposes. BUG=139684 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=149368

Patch Set 1 #

Patch Set 2 : Special case another scenario #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -0 lines) Patch
M sync/engine/verify_updates_command.cc View 1 1 chunk +20 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
rlarocque
Please review.
8 years, 4 months ago (2012-08-01 00:08:13 UTC) #1
Nicolas Zea
LGTM
8 years, 4 months ago (2012-08-01 00:26:01 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rlarocque@chromium.org/10834095/1002
8 years, 4 months ago (2012-08-01 00:29:54 UTC) #3
commit-bot: I haz the power
8 years, 4 months ago (2012-08-01 03:55:12 UTC) #4
Change committed as 149368

Powered by Google App Engine
This is Rietveld 408576698