Chromium Code Reviews
DescriptionChange database scheme - add state and start tracking
To be able to individually pause requests, we need a "PAUSED" state.
It needs to be persisted, so we need to store it in our RequestQueue,
which is the only persistent storage the BackgroundOfflining system has.
While we are changing the schema, we are also adding a new field to
keep track of how often a request has been started. If a request
casues the pre-reneder to crash, we don't have code to detect the crash,
and we will just retry later. To avoid getting stuck in an infinite
crashing loop, we only allow requests to start so many times.
Currently, we can't tell the difference between a crash and chromium
getting swapped out of memory, so this will have some false positives,
which is why we chose the limit to be higher than the completed limit.
We split the existing attempt count field into started_attempt_count
and completed_attempt_count.
BUG=610521
Committed: https://crrev.com/47cd270d10b49ebdaea567566f8044ae5a89ef9e
Cr-Commit-Position: refs/heads/master@{#410521}
Patch Set 1 #Patch Set 2 : Delete old database if any #
Total comments: 38
Patch Set 3 : CR feedback per FGorski and Chili #Patch Set 4 : remove comment #Patch Set 5 : Stop clearing last request time #
Total comments: 2
Messages
Total messages: 30 (16 generated)
|