chenboat commented on a change in pull request #4914: [POC] By-passing 
deep-store requirement for Realtime segment completion
URL: https://github.com/apache/incubator-pinot/pull/4914#discussion_r378574056
 
 

 ##########
 File path: 
pinot-controller/src/main/java/org/apache/pinot/controller/helix/core/realtime/SegmentCompletionManager.java
 ##########
 @@ -1028,7 +1028,7 @@ private int numReplicasToLookFor() {
       _state = State.COMMITTING;
       // In case of splitCommit, the segment is uploaded to a unique file name 
indicated by segmentLocation,
       // so we need to move the segment file to its permanent location first 
before committing the metadata.
-      if (isSplitCommit) {
+      if (isSplitCommit && reqParams.getSegmentUploadToController()) {
 
 Review comment:
   Only when the server chooses to upload the segment to controller, there is 
still a need for move from tmp location to the final location. This is why I 
add an additional checking here. 
   
   If the server uploads the segment to deep store directly, there is no need 
to move anymore.

----------------------------------------------------------------
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