nicktelford commented on code in PR #21738:
URL: https://github.com/apache/kafka/pull/21738#discussion_r2940398214


##########
streams/src/main/java/org/apache/kafka/streams/processor/internals/StateDirectory.java:
##########
@@ -444,7 +437,7 @@ boolean directoryForTaskIsEmpty(final TaskId taskId) {
 
     private boolean taskDirIsEmpty(final File taskDir) {
         final File[] storeDirs = taskDir.listFiles(pathname ->
-                !pathname.getName().equals(CHECKPOINT_FILE_NAME));
+                
!pathname.getName().equals(LegacyCheckpointingStateStore.CHECKPOINT_FILE_NAME));

Review Comment:
   Good spot, I also found another place that does a similar check. Both have 
been updated to use `startsWith` instead of `equals`, to handle both legacy and 
per-store checkpoint file names.



-- 
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]

Reply via email to