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

Issue 660383002: Docserver: Persist stat cache for versioned file systems (Closed)

Created:
6 years, 2 months ago by Ken Rockot(use gerrit already)
Modified:
6 years, 1 month ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Docserver: Persist stat cache for versioned file systems This encompasses the following changes: * FileSystems can now be versioned * GitilesFileSystem is versioned by commit ID * CachingFileSystem will use a persistent, version-keyed stat cache for versioned file systems. This CL also corrects refresh cycle synchronization so the "master" commit ID used to identify the live instance cache is only updated once all associated refresh tasks have completed. BUG=415309 R=kalman@chromium.org NOTRY=True Committed: https://crrev.com/360062747ecb8079f2c7467bc5c2fef914e1beb9 Cr-Commit-Position: refs/heads/master@{#301236}

Patch Set 1 #

Total comments: 20

Patch Set 2 : change caching strategy, better refresh cycle synchronization #

Total comments: 8

Patch Set 3 : #

Total comments: 33

Patch Set 4 : . #

Patch Set 5 : all the things #

Total comments: 2

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+263 lines, -43 lines) Patch
M chrome/common/extensions/docs/server2/app.yaml View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/extensions/docs/server2/app_yaml_helper_test.py View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/extensions/docs/server2/caching_file_system.py View 1 2 4 chunks +30 lines, -13 lines 0 comments Download
M chrome/common/extensions/docs/server2/caching_file_system_test.py View 1 2 3 4 1 chunk +21 lines, -0 lines 0 comments Download
A chrome/common/extensions/docs/server2/commit_tracker.py View 1 2 3 4 1 chunk +21 lines, -0 lines 0 comments Download
M chrome/common/extensions/docs/server2/cron.yaml View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/common/extensions/docs/server2/cron_servlet.py View 1 2 3 4 3 chunks +20 lines, -4 lines 0 comments Download
M chrome/common/extensions/docs/server2/file_system.py View 1 2 1 chunk +9 lines, -1 line 0 comments Download
M chrome/common/extensions/docs/server2/gitiles_file_system.py View 1 2 3 4 5 1 chunk +11 lines, -7 lines 0 comments Download
M chrome/common/extensions/docs/server2/host_file_system_provider.py View 1 2 4 chunks +8 lines, -6 lines 0 comments Download
M chrome/common/extensions/docs/server2/instance_servlet.py View 1 2 3 chunks +6 lines, -1 line 0 comments Download
M chrome/common/extensions/docs/server2/mock_file_system.py View 1 2 3 4 3 chunks +10 lines, -2 lines 0 comments Download
M chrome/common/extensions/docs/server2/offline_file_system.py View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/common/extensions/docs/server2/queue.yaml View 1 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/common/extensions/docs/server2/refresh_servlet.py View 1 2 3 4 4 chunks +16 lines, -2 lines 0 comments Download
A chrome/common/extensions/docs/server2/refresh_tracker.py View 1 2 3 4 1 chunk +56 lines, -0 lines 0 comments Download
A chrome/common/extensions/docs/server2/refresh_tracker_test.py View 1 2 3 4 1 chunk +45 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (14 generated)
Ken Rockot(use gerrit already)
Here it is - it still needs some work. This breaks a few tests due ...
6 years, 2 months ago (2014-10-17 23:27:31 UTC) #1
not at google - send to devlin
https://codereview.chromium.org/660383002/diff/1/chrome/common/extensions/docs/server2/appengine_url_fetcher.py File chrome/common/extensions/docs/server2/appengine_url_fetcher.py (right): https://codereview.chromium.org/660383002/diff/1/chrome/common/extensions/docs/server2/appengine_url_fetcher.py#newcode45 chrome/common/extensions/docs/server2/appengine_url_fetcher.py:45: deadline=40, Do we know this is failing? https://codereview.chromium.org/660383002/diff/1/chrome/common/extensions/docs/server2/caching_file_system.py File ...
6 years, 2 months ago (2014-10-20 21:06:58 UTC) #2
Ken Rockot(use gerrit already)
OK. Overview of new changes: - FileSystem has a concept of "stable" vs "unstable" identity. ...
6 years, 2 months ago (2014-10-22 03:19:54 UTC) #4
not at google - send to devlin
> (though kinda > weird given that the caching is opaque to fs consumers). Before ...
6 years, 2 months ago (2014-10-22 16:48:37 UTC) #5
not at google - send to devlin
One more pre-review comment. https://codereview.chromium.org/660383002/diff/1/chrome/common/extensions/docs/server2/appengine_url_fetcher.py File chrome/common/extensions/docs/server2/appengine_url_fetcher.py (right): https://codereview.chromium.org/660383002/diff/1/chrome/common/extensions/docs/server2/appengine_url_fetcher.py#newcode45 chrome/common/extensions/docs/server2/appengine_url_fetcher.py:45: deadline=40, On 2014/10/22 03:19:54, Ken ...
6 years, 2 months ago (2014-10-22 16:51:58 UTC) #6
Ken Rockot(use gerrit already)
On 2014/10/22 16:48:37, kalman wrote: > > (though kinda > > weird given that the ...
6 years, 2 months ago (2014-10-22 17:06:19 UTC) #7
not at google - send to devlin
Ok, I'd say I made a light-to-medium depth review of this CL. As I mentioned ...
6 years, 2 months ago (2014-10-22 18:08:48 UTC) #8
Ken Rockot(use gerrit already)
Please take another look https://codereview.chromium.org/660383002/diff/40001/chrome/common/extensions/docs/server2/cache_chain_object_store.py File chrome/common/extensions/docs/server2/cache_chain_object_store.py (right): https://codereview.chromium.org/660383002/diff/40001/chrome/common/extensions/docs/server2/cache_chain_object_store.py#newcode33 chrome/common/extensions/docs/server2/cache_chain_object_store.py:33: for object_store in self._object_stores]) On ...
6 years, 2 months ago (2014-10-23 22:36:16 UTC) #21
not at google - send to devlin
https://codereview.chromium.org/660383002/diff/300001/chrome/common/extensions/docs/server2/caching_file_system.py File chrome/common/extensions/docs/server2/caching_file_system.py (right): https://codereview.chromium.org/660383002/diff/300001/chrome/common/extensions/docs/server2/caching_file_system.py#newcode28 chrome/common/extensions/docs/server2/caching_file_system.py:28: version = file_system.GetVersion() It seems like these changes should ...
6 years, 2 months ago (2014-10-24 00:04:52 UTC) #22
Ken Rockot(use gerrit already)
Thanks for the review. I think I've covered all your comments. https://codereview.chromium.org/660383002/diff/300001/chrome/common/extensions/docs/server2/caching_file_system.py File chrome/common/extensions/docs/server2/caching_file_system.py (right): ...
6 years, 1 month ago (2014-10-24 21:26:54 UTC) #23
not at google - send to devlin
lgtm https://codereview.chromium.org/660383002/diff/300001/chrome/common/extensions/docs/server2/refresh_servlet.py File chrome/common/extensions/docs/server2/refresh_servlet.py (right): https://codereview.chromium.org/660383002/diff/300001/chrome/common/extensions/docs/server2/refresh_servlet.py#newcode129 chrome/common/extensions/docs/server2/refresh_servlet.py:129: refresh_tracker.MarkTaskComplete(commit, path).Get() On 2014/10/24 21:26:54, Ken Rockot wrote: ...
6 years, 1 month ago (2014-10-24 23:36:07 UTC) #24
Ken Rockot(use gerrit already)
https://codereview.chromium.org/660383002/diff/340001/chrome/common/extensions/docs/server2/gitiles_file_system.py File chrome/common/extensions/docs/server2/gitiles_file_system.py (right): https://codereview.chromium.org/660383002/diff/340001/chrome/common/extensions/docs/server2/gitiles_file_system.py#newcode243 chrome/common/extensions/docs/server2/gitiles_file_system.py:243: return ('%s/%s@' % (GITILES_BASE, GITILES_SRC_ROOT)).join( On 2014/10/24 23:36:07, kalman ...
6 years, 1 month ago (2014-10-24 23:43:18 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/660383002/360001
6 years, 1 month ago (2014-10-24 23:51:57 UTC) #27
commit-bot: I haz the power
Committed patchset #6 (id:360001)
6 years, 1 month ago (2014-10-24 23:55:09 UTC) #28
commit-bot: I haz the power
6 years, 1 month ago (2014-10-24 23:55:59 UTC) #29
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/360062747ecb8079f2c7467bc5c2fef914e1beb9
Cr-Commit-Position: refs/heads/master@{#301236}

Powered by Google App Engine
This is Rietveld 408576698