This is an automated email from the ASF dual-hosted git repository.
xiangfu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pinot.git
The following commit(s) were added to refs/heads/master by this push:
new 9abf15fd6d Fix metadata push mode in IngestionUtils (#8802)
9abf15fd6d is described below
commit 9abf15fd6dee3323f90a1c6594ca68ebafd8c858
Author: Lars-Kristian Svenøy <[email protected]>
AuthorDate: Wed Jun 1 11:21:06 2022 +0100
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
---
.../main/java/org/apache/pinot/segment/local/utils/IngestionUtils.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/pinot-segment-local/src/main/java/org/apache/pinot/segment/local/utils/IngestionUtils.java
b/pinot-segment-local/src/main/java/org/apache/pinot/segment/local/utils/IngestionUtils.java
index 1a4695f9a0..450d8bea93 100644
---
a/pinot-segment-local/src/main/java/org/apache/pinot/segment/local/utils/IngestionUtils.java
+++
b/pinot-segment-local/src/main/java/org/apache/pinot/segment/local/utils/IngestionUtils.java
@@ -240,7 +240,7 @@ public final class IngestionUtils {
}
PinotFS outputFileFS = getOutputPinotFS(batchConfig,
outputSegmentDirURI);
Map<String, String> segmentUriToTarPathMap =
SegmentPushUtils.getSegmentUriToTarPathMap(outputSegmentDirURI,
- segmentUploadSpec.getPushJobSpec(), new String[] {
segmentTarURIs.toString() });
+ segmentUploadSpec.getPushJobSpec(),
segmentTarURIStrs.toArray(new String[0]));
SegmentPushUtils.sendSegmentUriAndMetadata(segmentUploadSpec,
outputFileFS, segmentUriToTarPathMap);
} catch (RetriableOperationException | AttemptsExceededException e) {
throw new RuntimeException(String
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]