You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by GitBox <gi...@apache.org> on 2019/04/24 17:55:36 UTC

[GitHub] [incubator-pinot] npawar commented on a change in pull request #4159: Add multiple locks which can be obtained based on segment name in lookupOrCreateFSM

npawar commented on a change in pull request #4159: Add multiple locks which can be obtained based on segment name in lookupOrCreateFSM
URL: https://github.com/apache/incubator-pinot/pull/4159#discussion_r278248183
 
 

 ##########
 File path: pinot-controller/src/main/java/org/apache/pinot/controller/helix/core/realtime/SegmentCompletionManager.java
 ##########
 @@ -90,6 +95,8 @@ public SegmentCompletionManager(HelixManager helixManager, PinotLLCRealtimeSegme
     _controllerLeadershipManager = controllerLeadershipManager;
     SegmentCompletionProtocol
         .setMaxSegmentCommitTimeMs(TimeUnit.MILLISECONDS.convert(segmentCommitTimeoutSeconds, TimeUnit.SECONDS));
+    _fsmLocks = new Lock[NUM_FSM_LOCKS];
+    Arrays.fill(_fsmLocks, new ReentrantLock());
 
 Review comment:
   Thanks for catching that! changed

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org