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

Issue 1553433002: [Sync] Sync should run canary cycle after any network related error (Closed)

Created:
4 years, 12 months ago by pavely
Modified:
4 years, 11 months ago
Reviewers:
Nicolas Zea
CC:
chromium-reviews, tim+watch_chromium.org, cbentzel+watch_chromium.org, zea+watch_chromium.org, maxbogue+watch_chromium.org, pvalenzuela+watch_chromium.org, plaree+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Sync] Sync should run canary cycle after any network related error Today sync only runs canary cycle after small subset of network errors that are related to connection/network failure. This leaves sync in exponential backoff when unexpected error is returned from network stack. In this change I make sync translate all network errors to CONNECTION_UNAVAILABLE therefore making it try canary job after network change. BUG=539943 R=zea@chromium.org Committed: https://crrev.com/bcaf62bdd2b84e26cf419ea483584cc6ef918330 Cr-Commit-Position: refs/heads/master@{#367746}

Patch Set 1 #

Patch Set 2 : Adjust initial delay for CONNECTION_UNAVAILABLE error. #

Total comments: 2

Patch Set 3 : Update integration test. #

Total comments: 1

Patch Set 4 : Fix android test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -44 lines) Patch
M chrome/browser/sync/test/integration/sync_exponential_backoff_test.cc View 1 2 3 2 chunks +14 lines, -0 lines 0 comments Download
M sync/engine/backoff_delay_provider.cc View 1 1 chunk +5 lines, -19 lines 0 comments Download
M sync/engine/backoff_delay_provider_unittest.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M sync/engine/net/server_connection_manager.h View 1 chunk +0 lines, -3 lines 0 comments Download
M sync/engine/net/server_connection_manager.cc View 1 chunk +0 lines, -17 lines 0 comments Download
M sync/internal_api/http_bridge.cc View 1 chunk +1 line, -1 line 0 comments Download
M sync/internal_api/syncapi_server_connection_manager.h View 1 chunk +2 lines, -0 lines 0 comments Download
M sync/internal_api/syncapi_server_connection_manager.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M sync/internal_api/syncapi_server_connection_manager_unittest.cc View 1 2 3 1 chunk +66 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (4 generated)
pavely
4 years, 12 months ago (2015-12-28 19:03:33 UTC) #1
pavely
I've adjusted initial delay for NETWORK_UNAVAILABLE errors in BackoffDelayProvvider. With initial delay reduced to 30 ...
4 years, 11 months ago (2015-12-29 18:52:45 UTC) #2
Nicolas Zea
Seems like this would be a good case for an integration test. Do you know ...
4 years, 11 months ago (2015-12-30 21:34:35 UTC) #3
pavely
I've updated SyncExponentialBackoffTest to check that canary job is triggered after network change. https://codereview.chromium.org/1553433002/diff/20001/sync/internal_api/syncapi_server_connection_manager.cc File ...
4 years, 11 months ago (2016-01-04 23:31:04 UTC) #4
Nicolas Zea
lgtm https://codereview.chromium.org/1553433002/diff/40001/chrome/browser/sync/test/integration/sync_exponential_backoff_test.cc File chrome/browser/sync/test/integration/sync_exponential_backoff_test.cc (right): https://codereview.chromium.org/1553433002/diff/40001/chrome/browser/sync/test/integration/sync_exponential_backoff_test.cc#newcode102 chrome/browser/sync/test/integration/sync_exponential_backoff_test.cc:102: ASSERT_LT(recovery_time, base::TimeDelta::FromSeconds(2)); nit: Prefer using the test timeout ...
4 years, 11 months ago (2016-01-04 23:34:56 UTC) #5
pavely
On 2016/01/04 23:34:56, Nicolas Zea wrote: > lgtm > > https://codereview.chromium.org/1553433002/diff/40001/chrome/browser/sync/test/integration/sync_exponential_backoff_test.cc > File chrome/browser/sync/test/integration/sync_exponential_backoff_test.cc > ...
4 years, 11 months ago (2016-01-06 01:03:53 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1553433002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1553433002/80001
4 years, 11 months ago (2016-01-06 01:04:33 UTC) #10
commit-bot: I haz the power
Committed patchset #4 (id:80001)
4 years, 11 months ago (2016-01-06 01:53:47 UTC) #11
commit-bot: I haz the power
4 years, 11 months ago (2016-01-06 01:54:33 UTC) #13
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/bcaf62bdd2b84e26cf419ea483584cc6ef918330
Cr-Commit-Position: refs/heads/master@{#367746}

Powered by Google App Engine
This is Rietveld 408576698