You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by ap...@apache.org on 2022/12/11 07:28:51 UTC
[pinot] branch master updated: Add back auth token for UploadSegmentCommand (#9960)
This is an automated email from the ASF dual-hosted git repository.
apucher 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 0ca5fcb472 Add back auth token for UploadSegmentCommand (#9960)
0ca5fcb472 is described below
commit 0ca5fcb4727184545fc3913b4a7e7d568fa0985e
Author: Tim Santos <ti...@cortexdata.io>
AuthorDate: Sat Dec 10 23:28:44 2022 -0800
Add back auth token for UploadSegmentCommand (#9960)
---
.../org/apache/pinot/tools/admin/command/UploadSegmentCommand.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/pinot-tools/src/main/java/org/apache/pinot/tools/admin/command/UploadSegmentCommand.java b/pinot-tools/src/main/java/org/apache/pinot/tools/admin/command/UploadSegmentCommand.java
index c721fc3e01..1e610b6f18 100644
--- a/pinot-tools/src/main/java/org/apache/pinot/tools/admin/command/UploadSegmentCommand.java
+++ b/pinot-tools/src/main/java/org/apache/pinot/tools/admin/command/UploadSegmentCommand.java
@@ -186,7 +186,8 @@ public class UploadSegmentCommand extends AbstractBaseAdminCommand implements Co
}
LOGGER.info("Uploading segment tar file: {}", segmentTarFile);
- List<Header> headerList = makeAuthHeaders(_authProvider);
+ List<Header> headerList =
+ makeAuthHeaders(makeAuthProvider(_authProvider, _authTokenUrl, _authToken, _user, _password));
FileInputStream fileInputStream = new FileInputStream(segmentTarFile);
fileUploadDownloadClient.uploadSegment(uploadSegmentHttpURI, segmentTarFile.getName(),
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org