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

Issue 2317893002: [Offline Pages] Close race condition of multiple StartProcessing callers. (Closed)

Created:
4 years, 3 months ago by dougarnett
Modified:
4 years, 3 months ago
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

[Offline Pages] Close race condition of multiple StartProcessing callers. Introduces new bool to track the starting/picking phase so that we avoid concurrent pickers (and not overwrite the schedule_callback) in order to also avoid the DCHECK that guards concurrent SendRequestToOffliner calls. BUG=643455 Committed: https://crrev.com/81356643cfe6ffe145741fb4b8fef53a3db86a50 Cr-Commit-Position: refs/heads/master@{#416957}

Patch Set 1 #

Patch Set 2 : Some unittest coverage on new is_starting_ flag #

Total comments: 6

Patch Set 3 : Fixed java BackgroundOfflinerTask to handle return code from startProcessing (and clear the wait lo… #

Patch Set 4 : Pete feedback - clear starting flag in deadbeat timeout case #

Total comments: 2

Messages

Total messages: 24 (15 generated)
dougarnett
4 years, 3 months ago (2016-09-06 22:30:03 UTC) #6
Pete Williamson
https://codereview.chromium.org/2317893002/diff/20001/components/offline_pages/background/request_coordinator.cc File components/offline_pages/background/request_coordinator.cc (right): https://codereview.chromium.org/2317893002/diff/20001/components/offline_pages/background/request_coordinator.cc#newcode349 components/offline_pages/background/request_coordinator.cc:349: if (is_starting_ || is_busy_) Please add a bug to ...
4 years, 3 months ago (2016-09-06 22:56:44 UTC) #9
dougarnett
https://codereview.chromium.org/2317893002/diff/20001/components/offline_pages/background/request_coordinator.cc File components/offline_pages/background/request_coordinator.cc (right): https://codereview.chromium.org/2317893002/diff/20001/components/offline_pages/background/request_coordinator.cc#newcode349 components/offline_pages/background/request_coordinator.cc:349: if (is_starting_ || is_busy_) On 2016/09/06 22:56:44, Pete Williamson ...
4 years, 3 months ago (2016-09-06 23:39:10 UTC) #14
Pete Williamson
mostly looks good, one nit. https://codereview.chromium.org/2317893002/diff/60001/chrome/android/junit/src/org/chromium/chrome/browser/offlinepages/StubBackgroundSchedulerProcessor.java File chrome/android/junit/src/org/chromium/chrome/browser/offlinepages/StubBackgroundSchedulerProcessor.java (right): https://codereview.chromium.org/2317893002/diff/60001/chrome/android/junit/src/org/chromium/chrome/browser/offlinepages/StubBackgroundSchedulerProcessor.java#newcode15 chrome/android/junit/src/org/chromium/chrome/browser/offlinepages/StubBackgroundSchedulerProcessor.java:15: private boolean mDidStartProcessing; Should ...
4 years, 3 months ago (2016-09-07 00:16:31 UTC) #15
dougarnett
https://codereview.chromium.org/2317893002/diff/60001/chrome/android/junit/src/org/chromium/chrome/browser/offlinepages/StubBackgroundSchedulerProcessor.java File chrome/android/junit/src/org/chromium/chrome/browser/offlinepages/StubBackgroundSchedulerProcessor.java (right): https://codereview.chromium.org/2317893002/diff/60001/chrome/android/junit/src/org/chromium/chrome/browser/offlinepages/StubBackgroundSchedulerProcessor.java#newcode15 chrome/android/junit/src/org/chromium/chrome/browser/offlinepages/StubBackgroundSchedulerProcessor.java:15: private boolean mDidStartProcessing; On 2016/09/07 00:16:31, Pete Williamson wrote: ...
4 years, 3 months ago (2016-09-07 00:41:29 UTC) #16
Pete Williamson
lgtm
4 years, 3 months ago (2016-09-07 00:46:38 UTC) #17
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/2317893002/60001
4 years, 3 months ago (2016-09-07 16:26:44 UTC) #21
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 3 months ago (2016-09-07 16:33:13 UTC) #22
commit-bot: I haz the power
4 years, 3 months ago (2016-09-07 16:34:37 UTC) #24
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/81356643cfe6ffe145741fb4b8fef53a3db86a50
Cr-Commit-Position: refs/heads/master@{#416957}

Powered by Google App Engine
This is Rietveld 408576698