wirybeaver commented on code in PR #10815: URL: https://github.com/apache/pinot/pull/10815#discussion_r1218415965
########## pinot-core/src/main/java/org/apache/pinot/core/data/manager/realtime/SegmentCompletionUtils.java: ########## @@ -30,6 +31,8 @@ private SegmentCompletionUtils() { private static final Logger LOGGER = LoggerFactory.getLogger(SegmentCompletionUtils.class); // Used to create temporary segment file names private static final String TMP = ".tmp."; + private static final Pattern TMP_FILE = Pattern.compile( + "\\.tmp\\.[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"); Review Comment: maybe switched to `"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"` so that old temp segments created by server also be cleared up? -- 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-unsubscr...@pinot.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org