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

Issue 235910043: Extract a thread-safe implementation of Lister from AdaptorLister (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
8 years, 12 months ago by JohnL
Modified:
8 years, 11 months ago
Reviewers:
Brett, brett.michael.johnson, Srinivas
CC:
connector-cr_google.com
Visibility:
Public.

Description

Extract a thread-safe implementation of Lister from AdaptorLister. The Connector Manager has a race condition when calling start and shutdown. This was fixed in AdaptorLister (then GroupLister) in commit 3d825b0. The intent is for the new AbstractLister abstract class to be moved to Connector Manager as an improvement over the bare Lister interface. I gave up trying to get git diff -C -C to recognize the copies of the extracted files. Instead, I am using multiple patch sets. Patch set 1: AbstractLister.java: an unedited copy of AdaptorLister.java AbstractListerTest.java: a copy of the edited AdaptorListerTest.java AdaptorListerTest.java: edited to cleanup leftovers from commit 9f052d6 Patch set 2: AbstractLister.java: extracted the thread-safe start and shutdown methods AdaptorLister.java: reduced to just the new init, run, and destroy methods AbstractListerTest.java: edited to avoid using an Adaptor for testing AdaptorListerTest.java: no changes

Patch Set 1 #

Patch Set 2 : Extract AbstractLister #

Total comments: 6

Patch Set 3 : Code review comments #

Messages

Total messages: 8
JohnL
8 years, 12 months ago (2015-05-03 04:27:19 UTC) #1
JohnL
Extract AbstractLister
8 years, 12 months ago (2015-05-03 04:36:53 UTC) #2
Brett
https://codereview.appspot.com/235910043/diff/20001/projects/otex-core/source/java/com/google/enterprise/connector/otex/AbstractLister.java File projects/otex-core/source/java/com/google/enterprise/connector/otex/AbstractLister.java (right): https://codereview.appspot.com/235910043/diff/20001/projects/otex-core/source/java/com/google/enterprise/connector/otex/AbstractLister.java#newcode40 projects/otex-core/source/java/com/google/enterprise/connector/otex/AbstractLister.java:40: * {@code run} exits then {@code destroy} will not ...
8 years, 11 months ago (2015-05-05 02:06:28 UTC) #3
JohnL
Addressing Brett's comments. John L https://codereview.appspot.com/235910043/diff/20001/projects/otex-core/source/java/com/google/enterprise/connector/otex/AbstractLister.java File projects/otex-core/source/java/com/google/enterprise/connector/otex/AbstractLister.java (right): https://codereview.appspot.com/235910043/diff/20001/projects/otex-core/source/java/com/google/enterprise/connector/otex/AbstractLister.java#newcode40 projects/otex-core/source/java/com/google/enterprise/connector/otex/AbstractLister.java:40: * {@code run} exits ...
8 years, 11 months ago (2015-05-05 05:26:29 UTC) #4
JohnL
Code review comments
8 years, 11 months ago (2015-05-05 05:27:56 UTC) #5
Brett
LGTM
8 years, 11 months ago (2015-05-05 17:17:24 UTC) #6
Srinivas
On 2015/05/05 17:17:24, Brett wrote: > LGTM LGTM
8 years, 11 months ago (2015-05-27 03:55:12 UTC) #7
JohnL
8 years, 11 months ago (2015-05-29 06:38:06 UTC) #8

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