cryptoe commented on code in PR #13960:
URL: https://github.com/apache/druid/pull/13960#discussion_r1146285777
##########
processing/src/main/java/org/apache/druid/frame/util/DurableStorageUtils.java:
##########
@@ -121,4 +120,14 @@ public static String getOutputsFileNameForPath(
path
);
}
+
+ /**
+ * Tries to parse out the controller taskID from the input path.
+ * <br></br>
+ * For eg: for input path <b>controller_query_id/task/123</b> <br/>the
function will return <b>controller_query_id</b>
+ */
+ public static String getControllerTaskIdWithPrefixFromPath(String path)
+ {
+ return path.split("/", 1)[0];
Review Comment:
I added more java docs and test cases to this method.
We cannot throw an error for this since we need method to return whatever is
found before "/" so that the durable storage cleaner can take further
decisions.
--
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]