AmatyaAvadhanula commented on code in PR #13476:
URL: https://github.com/apache/druid/pull/13476#discussion_r1044022840
##########
indexing-service/src/main/java/org/apache/druid/indexing/common/config/TaskConfig.java:
##########
@@ -191,14 +216,35 @@ public String getBaseDir()
}
@JsonProperty
- public File getBaseTaskDir()
+ public String getBaseTaskDir()
{
return baseTaskDir;
}
+ @JsonProperty
+ public List<String> getBaseTaskDirPaths()
+ {
+ return baseTaskDirPaths;
+ }
+
+ public List<File> getBaseTaskDirs()
+ {
+ return baseTaskDirs;
+ }
+
+ public synchronized File getTaskBaseDir(String taskId)
Review Comment:
Done
##########
indexing-service/src/main/java/org/apache/druid/indexing/common/config/TaskConfig.java:
##########
@@ -191,14 +216,35 @@ public String getBaseDir()
}
@JsonProperty
- public File getBaseTaskDir()
+ public String getBaseTaskDir()
{
return baseTaskDir;
}
+ @JsonProperty
+ public List<String> getBaseTaskDirPaths()
+ {
+ return baseTaskDirPaths;
+ }
+
+ public List<File> getBaseTaskDirs()
+ {
+ return baseTaskDirs;
+ }
+
+ public synchronized File getTaskBaseDir(String taskId)
+ {
+ if (!taskToTempDirMap.containsKey(taskId)) {
+ taskToTempDirMap.put(taskId, baseTaskDirs.get(taskDirIndex));
Review Comment:
Done
--
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]