You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by "jackjlli (via GitHub)" <gi...@apache.org> on 2023/02/08 05:16:46 UTC

[GitHub] [pinot] jackjlli commented on a diff in pull request #10238: Fix race condition on removing aged deleted segments

jackjlli commented on code in PR #10238:
URL: https://github.com/apache/pinot/pull/10238#discussion_r1099666005


##########
pinot-common/src/main/java/org/apache/pinot/common/utils/URIUtils.java:
##########
@@ -70,6 +70,14 @@ public static String getPath(String basePath, String... parts) {
     return stringJoiner.toString();
   }
 
+  /**
+   * Returns the last part for the given path split by the file separator.
+   * If the file separator is not found, returns the whole path as the last part.
+   */
+  public static String getLastPart(String path) {

Review Comment:
   Good catch! Added a few more unit tests.



-- 
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: commits-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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