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

Issue 222480044: Add support for non-incremental groups push. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
8 years, 12 months ago by myk
Modified:
8 years, 11 months ago
Reviewers:
pjo, ondrejnovak
CC:
connector-cr_google.com
Visibility:
Public.

Description

Add support for non-incremental groups push.

Patch Set 1 #

Total comments: 16

Patch Set 2 : Addressed PJ's comments from Patch Set 1. #

Total comments: 10

Patch Set 3 : Addressed PJ's and Ondra's comments from Patch Set 2 #

Patch Set 4 : Addressed PJ's and Ondra's comments from Patch Set 2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+287 lines, -20 lines) Patch
M src/com/google/enterprise/adaptor/DocIdPusher.java View 1 2 2 chunks +72 lines, -4 lines 0 comments Download
M src/com/google/enterprise/adaptor/DocIdSender.java View 1 2 3 6 chunks +38 lines, -7 lines 0 comments Download
M src/com/google/enterprise/adaptor/GsaFeedFileSender.java View 2 chunks +5 lines, -3 lines 0 comments Download
M src/com/google/enterprise/adaptor/WrapperAdaptor.java View 1 2 chunks +18 lines, -1 line 0 comments Download
M test/com/google/enterprise/adaptor/AccumulatingDocIdPusher.java View 1 1 chunk +19 lines, -1 line 0 comments Download
M test/com/google/enterprise/adaptor/DocIdSenderTest.java View 2 chunks +94 lines, -1 line 0 comments Download
M test/com/google/enterprise/adaptor/GsaFeedFileSenderTest.java View 4 chunks +41 lines, -3 lines 0 comments Download

Messages

Total messages: 8
myk
8 years, 12 months ago (2015-04-24 21:12:36 UTC) #1
pjo
Looks close. Tahnk you https://codereview.appspot.com/222480044/diff/1/src/com/google/enterprise/adaptor/DocIdPusher.java File src/com/google/enterprise/adaptor/DocIdPusher.java (right): https://codereview.appspot.com/222480044/diff/1/src/com/google/enterprise/adaptor/DocIdPusher.java#newcode149 src/com/google/enterprise/adaptor/DocIdPusher.java:149: boolean caseSensitive) throws InterruptedException; should ...
8 years, 12 months ago (2015-04-24 21:59:27 UTC) #2
myk
Addressed PJ's comments from Patch Set 1. https://codereview.appspot.com/222480044/diff/1/src/com/google/enterprise/adaptor/DocIdPusher.java File src/com/google/enterprise/adaptor/DocIdPusher.java (right): https://codereview.appspot.com/222480044/diff/1/src/com/google/enterprise/adaptor/DocIdPusher.java#newcode149 src/com/google/enterprise/adaptor/DocIdPusher.java:149: boolean caseSensitive) ...
8 years, 12 months ago (2015-04-24 23:59:06 UTC) #3
pjo
LGTM. Thank you https://codereview.appspot.com/222480044/diff/20001/src/com/google/enterprise/adaptor/DocIdPusher.java File src/com/google/enterprise/adaptor/DocIdPusher.java (right): https://codereview.appspot.com/222480044/diff/20001/src/com/google/enterprise/adaptor/DocIdPusher.java#newcode146 src/com/google/enterprise/adaptor/DocIdPusher.java:146: */ change javadoc to say that ...
8 years, 12 months ago (2015-04-25 18:55:29 UTC) #4
ondrejnovak
https://codereview.appspot.com/222480044/diff/20001/src/com/google/enterprise/adaptor/DocIdSender.java File src/com/google/enterprise/adaptor/DocIdSender.java (right): https://codereview.appspot.com/222480044/diff/20001/src/com/google/enterprise/adaptor/DocIdSender.java#newcode295 src/com/google/enterprise/adaptor/DocIdSender.java:295: final int max = incremental ? config.getFeedMaxUrls() : defs.size(); ...
8 years, 12 months ago (2015-04-27 06:22:27 UTC) #5
myk
Addressed comments from PJ and from Ondra. (Ondra, please take a look at the new ...
8 years, 11 months ago (2015-04-27 22:09:22 UTC) #6
myk
Just a ping -- I'm hoping to submit this today so that I can start ...
8 years, 11 months ago (2015-04-28 16:29:48 UTC) #7
ondrejnovak
8 years, 11 months ago (2015-04-28 21:38:41 UTC) #8
Could you add the data source name in the message. Otherwise it looks good
Dne 28. 4. 2015 5:29 PM napsal uživatel "Marc Kriguer" <myk@google.com>:

> Just a ping -- I'm hoping to submit this today so that I can start on the
> AD side of this.
>             -- Marc
>
> On Mon, Apr 27, 2015 at 3:09 PM, <myk@google.com> wrote:
>
>> Addressed comments from PJ and from Ondra.  (Ondra, please take a look
>> at the new log message.)
>>
>>
>>
>>
https://codereview.appspot.com/222480044/diff/20001/src/com/google/enterprise...
>> File src/com/google/enterprise/adaptor/DocIdPusher.java (right):
>>
>>
>>
https://codereview.appspot.com/222480044/diff/20001/src/com/google/enterprise...
>> src/com/google/enterprise/adaptor/DocIdPusher.java:146: */
>> On 2015/04/25 18:55:28, pjo wrote:
>>
>>> change javadoc to say that push is incremental and refer to new decl
>>>
>>
>> Done.
>>
>>
>>
https://codereview.appspot.com/222480044/diff/20001/src/com/google/enterprise...
>> src/com/google/enterprise/adaptor/DocIdPusher.java:166: */
>> On 2015/04/25 18:55:28, pjo wrote:
>>
>>> change javadoc to say that push is incremental and refer to new decl
>>>
>>
>> Done.
>>
>>
>>
https://codereview.appspot.com/222480044/diff/20001/src/com/google/enterprise...
>> src/com/google/enterprise/adaptor/DocIdPusher.java:221: * the groups
>> specified in <code>defs</code>.
>> On 2015/04/25 18:55:28, pjo wrote:
>>
>>> copy param javadoc from above decl.
>>>
>>
>> Done.
>>
>>
>>
https://codereview.appspot.com/222480044/diff/20001/src/com/google/enterprise...
>> File src/com/google/enterprise/adaptor/DocIdSender.java (right):
>>
>>
>>
https://codereview.appspot.com/222480044/diff/20001/src/com/google/enterprise...
>> src/com/google/enterprise/adaptor/DocIdSender.java:294: // all groups
>> from the given data source), we must do it in a single "batch"
>> On 2015/04/25 18:55:29, pjo wrote:
>>
>>> give the reason: because otherwise a failure in later batch would mean
>>> incomplete state without ability to backout. so one batch in order to
>>>
>> make sure
>>
>>> all or nothing.
>>>
>>
>> Done.
>>
>>
>>
https://codereview.appspot.com/222480044/diff/20001/src/com/google/enterprise...
>> src/com/google/enterprise/adaptor/DocIdSender.java:295: final int max =
>> incremental ? config.getFeedMaxUrls() : defs.size();
>> On 2015/04/27 06:22:27, ondrejnovak wrote:
>>
>>> Building the group XML is a very memory hungry operation, can you log
>>>
>> here
>>
>>  1. that we are doing non-incremental group push
>>> 2. the value of defs.size()
>>>
>>
>>  , so that it's among the last log lines before we run out of memory
>>>
>>
>> Done.  I was considering adding instructions on what-to-do-upon-an-OOM
>> here, but both John Felton and PJ felt this should not occur every time
>> we try this operation.  Please let me know if you are OK with the log
>> message as is.  (Originally, I was going to put this message (about
>> needing lots of memory) in the AD Adaptor, but it's also possible for
>> the SharePoint Adaptor to run out of memory here, so this is the better
>> place for it.
>>
>> https://codereview.appspot.com/222480044/
>>
>
>
Sign in to reply to this message.

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