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_r379704319
########## File path: pinot-core/src/main/java/org/apache/pinot/core/data/manager/realtime/LLRealtimeSegmentDataManager.java ########## @@ -769,12 +784,21 @@ protected boolean commitSegment(String controllerVipUrl, boolean isSplitCommit) if (!segTarFile.exists()) { throw new RuntimeException("Segment file does not exist:" + segTarFileName); } + // Set the flag to true to prevent the server delete the segment for upload after receiving OFFLINE->ONLINE + // message from helix. + _waitingForUploadToSegmentStore = true; SegmentCompletionProtocol.Response commitResponse = commit(controllerVipUrl, isSplitCommit); if (!commitResponse.getStatus().equals(SegmentCompletionProtocol.ControllerResponseStatus.COMMIT_SUCCESS)) { return false; } - + // Asynchronously upload the segment file to Pinot FS for backup. The upload result does not change the segment + // completion protocol flow. + if (!_indexLoadingConfig.isEnableSegmentUploadToController()) { Review comment: Done. Check the segment store config too before doing upload. ---------------------------------------------------------------- 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: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org