Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2769)

Issue 316140043: FS Fix b/27579240: Feed large directory listings asynchronously to avoid timeouts. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
7 years, 3 months ago by Brett
Modified:
7 years, 3 months ago
Reviewers:
JohnL
CC:
connector-cr_google.com, Brett Johnson
Visibility:
Public.

Description

This change returns at most maxHtmlSize links in the generated HTML of a directory listing. If the directory has more than maxHtmlSize entries, the directory stream is closed and the generated HTML is returned as the response. A separate thread will then be launched to push the directory entries via the DocIdPusher. This should avoid getDocContent timeouts reading large directories.

Patch Set 1 #

Patch Set 2 : Clean up tests #

Total comments: 9

Patch Set 3 : Review Feedback #

Total comments: 12

Patch Set 4 : Review Feedback #

Patch Set 5 : Review Feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+134 lines, -87 lines) Patch
M src/com/google/enterprise/adaptor/fs/FsAdaptor.java View 1 2 3 10 chunks +87 lines, -72 lines 0 comments Download
M src/com/google/enterprise/adaptor/fs/HtmlResponseWriter.java View 1 2 2 chunks +17 lines, -2 lines 0 comments Download
M test/com/google/enterprise/adaptor/fs/FsAdaptorTest.java View 1 2 3 4 3 chunks +30 lines, -13 lines 0 comments Download

Messages

Total messages: 13
Brett
7 years, 3 months ago (2017-01-10 02:36:29 UTC) #1
Brett
Clean up tests
7 years, 3 months ago (2017-01-10 08:13:03 UTC) #2
JohnL
Minor suggestions and questions. John L https://codereview.appspot.com/316140043/diff/20001/src/com/google/enterprise/adaptor/fs/FsAdaptor.java File src/com/google/enterprise/adaptor/fs/FsAdaptor.java (right): https://codereview.appspot.com/316140043/diff/20001/src/com/google/enterprise/adaptor/fs/FsAdaptor.java#newcode1096 src/com/google/enterprise/adaptor/fs/FsAdaptor.java:1096: DocId docId = ...
7 years, 3 months ago (2017-01-11 00:09:20 UTC) #3
Brett
https://codereview.appspot.com/316140043/diff/20001/src/com/google/enterprise/adaptor/fs/FsAdaptor.java File src/com/google/enterprise/adaptor/fs/FsAdaptor.java (right): https://codereview.appspot.com/316140043/diff/20001/src/com/google/enterprise/adaptor/fs/FsAdaptor.java#newcode1096 src/com/google/enterprise/adaptor/fs/FsAdaptor.java:1096: DocId docId = delegate.newDocId(file); On 2017/01/11 00:09:20, JohnL wrote: ...
7 years, 3 months ago (2017-01-11 06:07:01 UTC) #4
Brett
https://codereview.appspot.com/316140043/diff/20001/src/com/google/enterprise/adaptor/fs/FsAdaptor.java File src/com/google/enterprise/adaptor/fs/FsAdaptor.java (right): https://codereview.appspot.com/316140043/diff/20001/src/com/google/enterprise/adaptor/fs/FsAdaptor.java#newcode1101 src/com/google/enterprise/adaptor/fs/FsAdaptor.java:1101: log.log(Level.FINE, "Directory listing for {0} exceeds maxHtmlSize " On ...
7 years, 3 months ago (2017-01-11 23:05:20 UTC) #5
Brett
Review Feedback
7 years, 3 months ago (2017-01-11 23:06:14 UTC) #6
JohnL
Minor comments. John L https://codereview.appspot.com/316140043/diff/40001/src/com/google/enterprise/adaptor/fs/FsAdaptor.java File src/com/google/enterprise/adaptor/fs/FsAdaptor.java (right): https://codereview.appspot.com/316140043/diff/40001/src/com/google/enterprise/adaptor/fs/FsAdaptor.java#newcode1115 src/com/google/enterprise/adaptor/fs/FsAdaptor.java:1115: "Directory listing for {0} exceeds ...
7 years, 3 months ago (2017-01-12 22:17:47 UTC) #7
Brett
Review Feedback
7 years, 3 months ago (2017-01-12 23:02:52 UTC) #8
Brett
https://codereview.appspot.com/316140043/diff/40001/src/com/google/enterprise/adaptor/fs/FsAdaptor.java File src/com/google/enterprise/adaptor/fs/FsAdaptor.java (right): https://codereview.appspot.com/316140043/diff/40001/src/com/google/enterprise/adaptor/fs/FsAdaptor.java#newcode1115 src/com/google/enterprise/adaptor/fs/FsAdaptor.java:1115: "Directory listing for {0} exceeds maxHtmlSize of {1}. " ...
7 years, 3 months ago (2017-01-12 23:03:13 UTC) #9
Brett
Review Feedback
7 years, 3 months ago (2017-01-12 23:15:56 UTC) #10
Brett
https://codereview.appspot.com/316140043/diff/40001/test/com/google/enterprise/adaptor/fs/FsAdaptorTest.java File test/com/google/enterprise/adaptor/fs/FsAdaptorTest.java (right): https://codereview.appspot.com/316140043/diff/40001/test/com/google/enterprise/adaptor/fs/FsAdaptorTest.java#newcode1240 test/com/google/enterprise/adaptor/fs/FsAdaptorTest.java:1240: ImmutableList.Builder<Record> builder = ImmutableList.builder(); On 2017/01/12 22:17:47, JohnL wrote: ...
7 years, 3 months ago (2017-01-12 23:16:17 UTC) #11
JohnL
LGTM John L
7 years, 3 months ago (2017-01-12 23:27:22 UTC) #12
Brett
7 years, 3 months ago (2017-01-12 23:30:24 UTC) #13
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b