leventov commented on a change in pull request #7653: Refactor 
SQLMetadataSegmentManager; Change contract of REST methods in 
DataSourcesResource
URL: https://github.com/apache/incubator-druid/pull/7653#discussion_r300857113
 
 

 ##########
 File path: 
server/src/main/java/org/apache/druid/metadata/SQLMetadataSegmentManager.java
 ##########
 @@ -80,52 +87,139 @@
   private static final EmittingLogger log = new 
EmittingLogger(SQLMetadataSegmentManager.class);
 
   /**
-   * Use to synchronize {@link #start()}, {@link #stop()}, {@link #poll()}, 
and {@link #isStarted()}. These methods
-   * should be synchronized to prevent from being called at the same time if 
two different threads are calling them.
-   * This might be possible if a druid coordinator gets and drops leadership 
repeatedly in quick succession.
+   * Marker interface for objects stored in {@link #latestDatabasePoll}. See 
the comment for that field for details.
    */
-  private final ReentrantReadWriteLock startStopLock = new 
ReentrantReadWriteLock();
+  private interface DatabasePoll
 
 Review comment:
   Mainly for the ability to make Javadoc references.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to