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

Issue 2682913006: [Android WebView] Always schedule new upload job after copying minidump. (Closed)

Created:
3 years, 10 months ago by gsennton
Modified:
3 years, 10 months ago
CC:
chromium-reviews, kalyank, sadrul, android-webview-reviews_chromium.org, agrieve+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Android WebView] Always schedule new upload job after copying minidump. When we copy a minidump from an app directory to WebView's directory we schedule a new minidump-uploading job. Before this CL we would only schedule such a job if no previous job was running - but doing so means there are cases where the old job might be finishing up, while we are in the process of determining whether to run the new job. In such cases we wouldn't schedule a new job for the new minidump - thus postponing the upload of the new minidump until the next time a crash occurs and a new job is scheduled. Synchronizing the job-starting code and the code running in the jobs themselves would add complexity to the current code - instead we schedule a new job unconditionally. Note that a drawback with this new approach is that if we schedule new jobs too often we might never run our jobs (since scheduling a new job cancels the old one). Though as long as a job starts it will try to upload at least one minidump, ensuring we make progress in that case. Add a test for the cancellation behaviour, and fix a previous cancellation test that wasn't waiting for the upload-code to run before asserting that a file hadn't been uploaded. BUG=687993 Review-Url: https://codereview.chromium.org/2682913006 Cr-Commit-Position: refs/heads/master@{#450924} Committed: https://chromium.googlesource.com/chromium/src/+/0699e0240d57d5b557b59c5d4060cf86d2b46f17

Patch Set 1 #

Total comments: 12

Patch Set 2 : Added inline comments explaining the new (non-)cancellation behaviour. #

Messages

Total messages: 24 (9 generated)
gsennton
isherman@chromium.org: ptal at minidump_uploader/ Adding both Torne and Toby since we have all been discussing ...
3 years, 10 months ago (2017-02-09 15:02:53 UTC) #2
Tobias Sargeant
On 2017/02/09 15:02:53, gsennton wrote: > mailto:isherman@chromium.org: ptal at minidump_uploader/ > > Adding both Torne ...
3 years, 10 months ago (2017-02-09 17:29:24 UTC) #3
Torne
Yeah, the general approach here LGTM.
3 years, 10 months ago (2017-02-09 17:36:16 UTC) #4
Ilya Sherman
Oof, the test file is getting pretty hairy. I don't have any concrete suggestions on ...
3 years, 10 months ago (2017-02-11 01:00:47 UTC) #5
gsennton
I completely agree that the test-file is getting hairy. I think one way of making ...
3 years, 10 months ago (2017-02-13 10:46:55 UTC) #6
Ilya Sherman
https://codereview.chromium.org/2682913006/diff/1/android_webview/java/src/org/chromium/android_webview/crash/CrashReceiverService.java File android_webview/java/src/org/chromium/android_webview/crash/CrashReceiverService.java (right): https://codereview.chromium.org/2682913006/diff/1/android_webview/java/src/org/chromium/android_webview/crash/CrashReceiverService.java#newcode78 android_webview/java/src/org/chromium/android_webview/crash/CrashReceiverService.java:78: scheduleNewJob(); On 2017/02/13 10:46:55, gsennton wrote: > On 2017/02/11 ...
3 years, 10 months ago (2017-02-13 22:28:15 UTC) #7
gsennton
https://codereview.chromium.org/2682913006/diff/1/android_webview/java/src/org/chromium/android_webview/crash/CrashReceiverService.java File android_webview/java/src/org/chromium/android_webview/crash/CrashReceiverService.java (right): https://codereview.chromium.org/2682913006/diff/1/android_webview/java/src/org/chromium/android_webview/crash/CrashReceiverService.java#newcode78 android_webview/java/src/org/chromium/android_webview/crash/CrashReceiverService.java:78: scheduleNewJob(); On 2017/02/13 22:28:15, Ilya Sherman wrote: > On ...
3 years, 10 months ago (2017-02-14 16:49:41 UTC) #8
Ilya Sherman
LGTM -- thanks for bearing with me. I do think it would be good to ...
3 years, 10 months ago (2017-02-15 00:21:05 UTC) #9
gsennton
No worries Ilya, thanks for following up on this. It's always good to double-check this ...
3 years, 10 months ago (2017-02-15 10:26:58 UTC) #10
Torne
On 2017/02/15 10:26:58, gsennton wrote: > Also, we could just as well be cancelled just ...
3 years, 10 months ago (2017-02-15 11:14:35 UTC) #11
Ilya Sherman
LGTM, thanks!
3 years, 10 months ago (2017-02-16 00:42:11 UTC) #12
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/2682913006/20001
3 years, 10 months ago (2017-02-16 00:43:36 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_daisy_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) linux_chromium_asan_rel_ng on ...
3 years, 10 months ago (2017-02-16 02:47:32 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/2682913006/20001
3 years, 10 months ago (2017-02-16 10:16:33 UTC) #21
commit-bot: I haz the power
3 years, 10 months ago (2017-02-16 10:27:46 UTC) #24
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/0699e0240d57d5b557b59c5d4060...

Powered by Google App Engine
This is Rietveld 408576698