This is an automated email from the ASF dual-hosted git repository.

apucher pushed a commit to branch fix-segment-gen-push-auth-token
in repository https://gitbox.apache.org/repos/asf/pinot.git

commit 65dd5767d6fcc80d3720d964021747cda01acb3b
Author: Alexander Pucher <apuc...@apache.org>
AuthorDate: Wed Sep 22 11:23:17 2021 -0700

    fix auth token injection in SegmentGenerationAndPushTaskExecutor
---
 .../SegmentGenerationAndPushTaskExecutor.java                         | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 
a/pinot-plugins/pinot-minion-tasks/pinot-minion-builtin-tasks/src/main/java/org/apache/pinot/plugin/minion/tasks/segmentgenerationandpush/SegmentGenerationAndPushTaskExecutor.java
 
b/pinot-plugins/pinot-minion-tasks/pinot-minion-builtin-tasks/src/main/java/org/apache/pinot/plugin/minion/tasks/segmentgenerationandpush/SegmentGenerationAndPushTaskExecutor.java
index bde5938..59e8e05 100644
--- 
a/pinot-plugins/pinot-minion-tasks/pinot-minion-builtin-tasks/src/main/java/org/apache/pinot/plugin/minion/tasks/segmentgenerationandpush/SegmentGenerationAndPushTaskExecutor.java
+++ 
b/pinot-plugins/pinot-minion-tasks/pinot-minion-builtin-tasks/src/main/java/org/apache/pinot/plugin/minion/tasks/segmentgenerationandpush/SegmentGenerationAndPushTaskExecutor.java
@@ -216,6 +216,8 @@ public class SegmentGenerationAndPushTaskExecutor extends 
BaseTaskExecutor {
     spec.setPushJobSpec(pushJobSpec);
     spec.setTableSpec(tableSpec);
     spec.setPinotClusterSpecs(pinotClusterSpecs);
+    spec.setAuthToken(taskConfigs.get(BatchConfigProperties.AUTH_TOKEN));
+
     return spec;
   }
 
@@ -274,7 +276,7 @@ public class SegmentGenerationAndPushTaskExecutor extends 
BaseTaskExecutor {
     
recordReaderSpec.setConfigClassName(taskConfigs.get(BatchConfigProperties.RECORD_READER_CONFIG_CLASS));
     taskSpec.setRecordReaderSpec(recordReaderSpec);
 
-    String authToken = taskConfigs.get(BatchConfigProperties.AUTH_TOKEN); // 
TODO
+    String authToken = taskConfigs.get(BatchConfigProperties.AUTH_TOKEN);
 
     String tableNameWithType = 
taskConfigs.get(BatchConfigProperties.TABLE_NAME);
     Schema schema;

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org
For additional commands, e-mail: commits-h...@pinot.apache.org

Reply via email to