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

Issue 527163002: [SyncFS] Retry initialization of MetadataDatabase on failure of loading ServiceMetadata (Closed)

Created:
6 years, 3 months ago by peria
Modified:
6 years, 3 months ago
Reviewers:
nhiroki, tzik
CC:
chromium-reviews, kinuko+fileapi, nhiroki, tzik
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

[SyncFS] Retry initialization of MetadataDatabase if it fails to load ServiceMetadata's information from DB. It tries to initialize for 5 times. BUG=409737 TEST=./unit_tests --gtest_filter="Metadata* Committed: https://crrev.com/ec4db5bdb0f28b5a4b5bfbfa8849c71e03ba4e0c Cr-Commit-Position: refs/heads/master@{#293270}

Patch Set 1 : #

Total comments: 13

Patch Set 2 : Retry initialization #

Total comments: 5

Patch Set 3 : Work for nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -12 lines) Patch
M chrome/browser/sync_file_system/drive_backend/drive_backend_util.cc View 1 chunk +9 lines, -3 lines 0 comments Download
M chrome/browser/sync_file_system/drive_backend/metadata_database.cc View 1 2 2 chunks +25 lines, -1 line 0 comments Download
M chrome/browser/sync_file_system/drive_backend/metadata_database_index.cc View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/sync_file_system/drive_backend/metadata_database_index_on_disk.cc View 3 chunks +6 lines, -7 lines 0 comments Download
M chrome/browser/sync_file_system/drive_backend/metadata_database_unittest.cc View 1 2 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (4 generated)
peria
PTL
6 years, 3 months ago (2014-09-02 06:42:31 UTC) #2
nhiroki
https://codereview.chromium.org/527163002/diff/40001/chrome/browser/sync_file_system/drive_backend/metadata_database.cc File chrome/browser/sync_file_system/drive_backend/metadata_database.cc (right): https://codereview.chromium.org/527163002/diff/40001/chrome/browser/sync_file_system/drive_backend/metadata_database.cc#newcode1469 chrome/browser/sync_file_system/drive_backend/metadata_database.cc:1469: db_->Commit(); If you want to delete all records, can ...
6 years, 3 months ago (2014-09-02 07:26:04 UTC) #3
peria
https://codereview.chromium.org/527163002/diff/40001/chrome/browser/sync_file_system/drive_backend/metadata_database.cc File chrome/browser/sync_file_system/drive_backend/metadata_database.cc (right): https://codereview.chromium.org/527163002/diff/40001/chrome/browser/sync_file_system/drive_backend/metadata_database.cc#newcode1469 chrome/browser/sync_file_system/drive_backend/metadata_database.cc:1469: db_->Commit(); On 2014/09/02 07:26:04, nhiroki wrote: > If you ...
6 years, 3 months ago (2014-09-02 07:36:27 UTC) #4
nhiroki
https://codereview.chromium.org/527163002/diff/40001/chrome/browser/sync_file_system/drive_backend/metadata_database.cc File chrome/browser/sync_file_system/drive_backend/metadata_database.cc (right): https://codereview.chromium.org/527163002/diff/40001/chrome/browser/sync_file_system/drive_backend/metadata_database.cc#newcode1468 chrome/browser/sync_file_system/drive_backend/metadata_database.cc:1468: itr->Delete(); Although not related to this CL and you ...
6 years, 3 months ago (2014-09-02 08:36:25 UTC) #5
peria
https://codereview.chromium.org/527163002/diff/40001/chrome/browser/sync_file_system/drive_backend/metadata_database.cc File chrome/browser/sync_file_system/drive_backend/metadata_database.cc (right): https://codereview.chromium.org/527163002/diff/40001/chrome/browser/sync_file_system/drive_backend/metadata_database.cc#newcode1468 chrome/browser/sync_file_system/drive_backend/metadata_database.cc:1468: itr->Delete(); On 2014/09/02 08:36:25, nhiroki wrote: > Although not ...
6 years, 3 months ago (2014-09-03 04:08:14 UTC) #6
peria
I changed the description and the core routine as the description shows. PTAL.
6 years, 3 months ago (2014-09-03 04:11:13 UTC) #7
nhiroki
lgtm https://codereview.chromium.org/527163002/diff/60001/chrome/browser/sync_file_system/drive_backend/metadata_database_unittest.cc File chrome/browser/sync_file_system/drive_backend/metadata_database_unittest.cc (right): https://codereview.chromium.org/527163002/diff/60001/chrome/browser/sync_file_system/drive_backend/metadata_database_unittest.cc#newcode643 chrome/browser/sync_file_system/drive_backend/metadata_database_unittest.cc:643: EXPECT_EQ(SYNC_STATUS_OK, InitializeMetadataDatabase()); This init->drop-init sequence might not make ...
6 years, 3 months ago (2014-09-03 04:30:06 UTC) #8
tzik
https://codereview.chromium.org/527163002/diff/60001/chrome/browser/sync_file_system/drive_backend/metadata_database.cc File chrome/browser/sync_file_system/drive_backend/metadata_database.cc (right): https://codereview.chromium.org/527163002/diff/60001/chrome/browser/sync_file_system/drive_backend/metadata_database.cc#newcode1430 chrome/browser/sync_file_system/drive_backend/metadata_database.cc:1430: for (int i = 0; i < kMaxRetry && ...
6 years, 3 months ago (2014-09-03 04:47:37 UTC) #9
peria
https://codereview.chromium.org/527163002/diff/60001/chrome/browser/sync_file_system/drive_backend/metadata_database.cc File chrome/browser/sync_file_system/drive_backend/metadata_database.cc (right): https://codereview.chromium.org/527163002/diff/60001/chrome/browser/sync_file_system/drive_backend/metadata_database.cc#newcode1430 chrome/browser/sync_file_system/drive_backend/metadata_database.cc:1430: for (int i = 0; i < kMaxRetry && ...
6 years, 3 months ago (2014-09-03 09:24:21 UTC) #10
nhiroki
https://codereview.chromium.org/527163002/diff/60001/chrome/browser/sync_file_system/drive_backend/metadata_database_unittest.cc File chrome/browser/sync_file_system/drive_backend/metadata_database_unittest.cc (right): https://codereview.chromium.org/527163002/diff/60001/chrome/browser/sync_file_system/drive_backend/metadata_database_unittest.cc#newcode643 chrome/browser/sync_file_system/drive_backend/metadata_database_unittest.cc:643: EXPECT_EQ(SYNC_STATUS_OK, InitializeMetadataDatabase()); On 2014/09/03 09:24:21, peria wrote: > It ...
6 years, 3 months ago (2014-09-03 09:52:20 UTC) #11
tzik
lgtm
6 years, 3 months ago (2014-09-03 12:54:15 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/peria@chromium.org/527163002/80001
6 years, 3 months ago (2014-09-04 02:53:31 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_clang_dbg_recipe/builds/1983)
6 years, 3 months ago (2014-09-04 03:56:39 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/peria@chromium.org/527163002/80001
6 years, 3 months ago (2014-09-04 05:07:01 UTC) #18
commit-bot: I haz the power
Committed patchset #3 (id:80001) as 0126a594a17d2251e610ed0da2338e0d88f861ae
6 years, 3 months ago (2014-09-04 06:08:12 UTC) #19
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:30:17 UTC) #20
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/ec4db5bdb0f28b5a4b5bfbfa8849c71e03ba4e0c
Cr-Commit-Position: refs/heads/master@{#293270}

Powered by Google App Engine
This is Rietveld 408576698