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

Issue 2810393002: Fix memory issues with the Data Reduction proxy LevelDB (Closed)

Created:
3 years, 8 months ago by megjablon
Modified:
3 years, 8 months ago
Reviewers:
RyanSturm
CC:
chromium-reviews, tbansal+watch-data-reduction-proxy_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix memory issues with the Data Reduction proxy LevelDB Delete the whole database on DeleteHistoricalDataUsage so that the log file isn't bloated with deletes to entries that don't exist. Also, don't reuse the log on open. Store if there's historical data in a pref and only clear the data usage stats if it's been populated before. BUG=710909 Review-Url: https://codereview.chromium.org/2810393002 Cr-Commit-Position: refs/heads/master@{#464600} Committed: https://chromium.googlesource.com/chromium/src/+/945a5edc332c030923556edde964cce5a4e24795

Patch Set 1 : store if there's historical data in a pref #

Patch Set 2 : delete whole database and don't reuse the log #

Patch Set 3 : fix tests #

Total comments: 4

Patch Set 4 : ryan comments #

Messages

Total messages: 30 (23 generated)
megjablon
Might still have to fix tests, but PTAL at this fix. I should get it ...
3 years, 8 months ago (2017-04-13 19:57:20 UTC) #7
RyanSturm
also talked about prefs offline. https://codereview.chromium.org/2810393002/diff/60001/components/data_reduction_proxy/core/browser/data_store_impl.cc File components/data_reduction_proxy/core/browser/data_store_impl.cc (right): https://codereview.chromium.org/2810393002/diff/60001/components/data_reduction_proxy/core/browser/data_store_impl.cc#newcode152 components/data_reduction_proxy/core/browser/data_store_impl.cc:152: LOG(WARNING) << "Deleting Data ...
3 years, 8 months ago (2017-04-13 21:17:59 UTC) #13
megjablon
https://codereview.chromium.org/2810393002/diff/60001/components/data_reduction_proxy/core/browser/data_store_impl.cc File components/data_reduction_proxy/core/browser/data_store_impl.cc (right): https://codereview.chromium.org/2810393002/diff/60001/components/data_reduction_proxy/core/browser/data_store_impl.cc#newcode152 components/data_reduction_proxy/core/browser/data_store_impl.cc:152: LOG(WARNING) << "Deleting Data Reduction Proxy LevelDB"; On 2017/04/13 ...
3 years, 8 months ago (2017-04-13 21:47:19 UTC) #20
RyanSturm
lgtm % tests if those are necessary.
3 years, 8 months ago (2017-04-13 21:53:37 UTC) #22
megjablon
On 2017/04/13 21:53:37, Ryan Sturm wrote: > lgtm % tests if those are necessary. The ...
3 years, 8 months ago (2017-04-13 22:04:52 UTC) #23
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/2810393002/100001
3 years, 8 months ago (2017-04-13 23:08:26 UTC) #27
commit-bot: I haz the power
3 years, 8 months ago (2017-04-13 23:18:14 UTC) #30
Message was sent while issue was closed.
Committed patchset #4 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/945a5edc332c030923556edde964...

Powered by Google App Engine
This is Rietveld 408576698