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

Issue 2682063004: [Sync] Reset ModelTypeStore's leveldb database after corruption (Closed)

Created:
3 years, 10 months ago by pavely
Modified:
3 years, 10 months ago
Reviewers:
jwd, Patrick Noland
CC:
chromium-reviews, asvitkine+watch_chromium.org, sync-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Sync] Reset ModelTypeStore's leveldb database after corruption The issue is that once leveldb database is corrupt it will keep failing initialization. I decided to reset database instead of attempting to recover it because recover doesn't seem to guarantee consistency of data. R=pnoland@chromium.org BUG=684774 Review-Url: https://codereview.chromium.org/2682063004 Cr-Commit-Position: refs/heads/master@{#450423} Committed: https://chromium.googlesource.com/chromium/src/+/323b23d6a1ebe7f3d6ed581b6ef7334c6207460b

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add comment #

Patch Set 3 : Fix windows tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+171 lines, -59 lines) Patch
M components/sync/model_impl/model_type_store_backend.h View 1 5 chunks +58 lines, -19 lines 0 comments Download
M components/sync/model_impl/model_type_store_backend.cc View 5 chunks +46 lines, -40 lines 0 comments Download
M components/sync/model_impl/model_type_store_backend_unittest.cc View 1 2 4 chunks +66 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 25 (17 generated)
pavely
Patrick, PTAL. Eric, could you review histograms.xml change.
3 years, 10 months ago (2017-02-09 20:01:28 UTC) #5
Patrick Noland
lgtm https://codereview.chromium.org/2682063004/diff/1/components/sync/model_impl/model_type_store_backend.h File components/sync/model_impl/model_type_store_backend.h (right): https://codereview.chromium.org/2682063004/diff/1/components/sync/model_impl/model_type_store_backend.h#newcode116 components/sync/model_impl/model_type_store_backend.h:116: leveldb::Status DestroyDatabase(const std::string& path, leveldb::Env* env); Can you ...
3 years, 10 months ago (2017-02-09 20:24:52 UTC) #6
pavely
https://codereview.chromium.org/2682063004/diff/1/components/sync/model_impl/model_type_store_backend.h File components/sync/model_impl/model_type_store_backend.h (right): https://codereview.chromium.org/2682063004/diff/1/components/sync/model_impl/model_type_store_backend.h#newcode116 components/sync/model_impl/model_type_store_backend.h:116: leveldb::Status DestroyDatabase(const std::string& path, leveldb::Env* env); On 2017/02/09 20:24:52, ...
3 years, 10 months ago (2017-02-09 21:19:19 UTC) #9
Eric Willigers
+jwd for histogram change
3 years, 10 months ago (2017-02-09 22:07:38 UTC) #11
pavely
Jesse, could you review histograms.xml change?
3 years, 10 months ago (2017-02-13 17:08:08 UTC) #18
jwd
lgtm
3 years, 10 months ago (2017-02-14 16:00:53 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2682063004/80001
3 years, 10 months ago (2017-02-14 17:39:36 UTC) #22
commit-bot: I haz the power
3 years, 10 months ago (2017-02-14 18:50:43 UTC) #25
Message was sent while issue was closed.
Committed patchset #3 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/323b23d6a1ebe7f3d6ed581b6ef7...

Powered by Google App Engine
This is Rietveld 408576698