Skip to content

Commit 9abf15f

Browse files
authored
Fix metadata push mode in IngestionUtils (#8802)
* Fix bug in IngestionUtils creating segment uri to tar map * Use new String[0] instead of static method reference
1 parent b597226 commit 9abf15f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pinot-segment-local/src/main/java/org/apache/pinot/segment/local/utils/IngestionUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ public static void uploadSegment(String tableNameWithType, BatchConfig batchConf
240240
}
241241
PinotFS outputFileFS = getOutputPinotFS(batchConfig, outputSegmentDirURI);
242242
Map<String, String> segmentUriToTarPathMap = SegmentPushUtils.getSegmentUriToTarPathMap(outputSegmentDirURI,
243-
segmentUploadSpec.getPushJobSpec(), new String[] { segmentTarURIs.toString() });
243+
segmentUploadSpec.getPushJobSpec(), segmentTarURIStrs.toArray(new String[0]));
244244
SegmentPushUtils.sendSegmentUriAndMetadata(segmentUploadSpec, outputFileFS, segmentUriToTarPathMap);
245245
} catch (RetriableOperationException | AttemptsExceededException e) {
246246
throw new RuntimeException(String

0 commit comments

Comments
 (0)