tarun11Mavani commented on code in PR #19776:
URL: https://github.com/apache/pinot/pull/19776#discussion_r4385285980


##########
pinot-controller/src/main/java/org/apache/pinot/controller/helix/core/realtime/PinotLLCRealtimeSegmentManager.java:
##########
@@ -622,6 +628,31 @@ private boolean isPeerUrl(String segmentLocation) {
         CommonConstants.Segment.PEER_SEGMENT_DOWNLOAD_SCHEME.length());
   }
 
+  /// Moves the metadata sidecar the server uploaded under a tmp name to 
`<segment>.metadata.tar.gz`, like
+  /// [#moveSegmentFile] does for the segment file. Best effort: a failure is 
logged and counted, and never fails the
+  /// commit.
+  private void moveMetadataTarFile(String realtimeTableName, String 
rawTableName, String segmentName,
+      @Nullable String metadataTarLocation, PinotFS pinotFS) {
+    if (metadataTarLocation == null) {
+      return;
+    }
+    URI uriToMoveTo = createSegmentPath(rawTableName, segmentName + 
METADATA_TAR_GZ_FILE_EXT);

Review Comment:
   Agreed. The two are identical for LLC names, the only producer of these 
sidecars, so I'm leaving it and will align them if that changes.



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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to