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

Issue 2568613002: Reconcile the request queue on startup. (Closed)

Created:
4 years ago by Pete Williamson
Modified:
4 years ago
Reviewers:
dougarnett, fgorski
CC:
chromium-reviews, romax+watch_chromium.org, fgorski+watch_chromium.org, dewittj+watch_chromium.org, petewil+watch_chromium.org, chili+watch_chromium.org, dimich+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Reconcile the request queue on startup. If Chromium dies while an offline request is active, when we start back up, the request will be in the "OFFLINING" state in the request queue. However, unless it is in the AVAILABLE state, it will not be a candidate for either cleanup or re-starting. So, this change adds a fix when the request coordinator first starts for every run changes requests left in the OFFLINING state to the AVAILABLE state. BUG=670343 Committed: https://crrev.com/18352e92d55f65f7bc986a535f797f5e5e52b69f Cr-Commit-Position: refs/heads/master@{#439190}

Patch Set 1 #

Total comments: 38

Patch Set 2 : CR feedback from DougArnett and FGorski #

Total comments: 2

Patch Set 3 : Comment change #

Patch Set 4 : compile fix #

Messages

Total messages: 25 (11 generated)
Pete Williamson
LMK if you think I should also add a request coordinator level unit test.
4 years ago (2016-12-10 01:21:41 UTC) #2
dougarnett
https://codereview.chromium.org/2568613002/diff/1/components/offline_pages/core/background/reconcile_task.cc File components/offline_pages/core/background/reconcile_task.cc (right): https://codereview.chromium.org/2568613002/diff/1/components/offline_pages/core/background/reconcile_task.cc#newcode28 components/offline_pages/core/background/reconcile_task.cc:28: // Get all the requests from the queue, we ...
4 years ago (2016-12-12 17:16:14 UTC) #3
fgorski
mostly looks good. https://codereview.chromium.org/2568613002/diff/1/components/offline_pages/core/background/reconcile_task.cc File components/offline_pages/core/background/reconcile_task.cc (right): https://codereview.chromium.org/2568613002/diff/1/components/offline_pages/core/background/reconcile_task.cc#newcode38 components/offline_pages/core/background/reconcile_task.cc:38: TaskComplete(); what about calling the callback_? ...
4 years ago (2016-12-12 17:35:18 UTC) #4
Pete Williamson
https://codereview.chromium.org/2568613002/diff/1/components/offline_pages/core/background/reconcile_task.cc File components/offline_pages/core/background/reconcile_task.cc (right): https://codereview.chromium.org/2568613002/diff/1/components/offline_pages/core/background/reconcile_task.cc#newcode28 components/offline_pages/core/background/reconcile_task.cc:28: // Get all the requests from the queue, we ...
4 years ago (2016-12-15 18:37:43 UTC) #5
dougarnett
lgtm https://codereview.chromium.org/2568613002/diff/20001/components/offline_pages/core/background/reconcile_task.h File components/offline_pages/core/background/reconcile_task.h (right): https://codereview.chromium.org/2568613002/diff/20001/components/offline_pages/core/background/reconcile_task.h#newcode19 components/offline_pages/core/background/reconcile_task.h:19: // tasks that were prerendering when chrome died, ...
4 years ago (2016-12-15 20:30:09 UTC) #6
Pete Williamson
https://codereview.chromium.org/2568613002/diff/20001/components/offline_pages/core/background/reconcile_task.h File components/offline_pages/core/background/reconcile_task.h (right): https://codereview.chromium.org/2568613002/diff/20001/components/offline_pages/core/background/reconcile_task.h#newcode19 components/offline_pages/core/background/reconcile_task.h:19: // tasks that were prerendering when chrome died, and ...
4 years ago (2016-12-15 20:50:24 UTC) #7
fgorski
lgtm
4 years ago (2016-12-15 21:50:00 UTC) #8
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/2568613002/40001
4 years ago (2016-12-15 21:58:59 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/87090)
4 years ago (2016-12-15 22:22:43 UTC) #13
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/2568613002/60001
4 years ago (2016-12-16 00:46:45 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/357784)
4 years ago (2016-12-16 06:03:57 UTC) #18
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/2568613002/60001
4 years ago (2016-12-16 18:35:00 UTC) #20
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years ago (2016-12-16 21:23:01 UTC) #23
commit-bot: I haz the power
4 years ago (2016-12-16 21:25:01 UTC) #25
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/18352e92d55f65f7bc986a535f797f5e5e52b69f
Cr-Commit-Position: refs/heads/master@{#439190}

Powered by Google App Engine
This is Rietveld 408576698