nicktelford commented on code in PR #22837:
URL: https://github.com/apache/kafka/pull/22837#discussion_r3587762114
##########
streams/src/main/java/org/apache/kafka/streams/processor/internals/ProcessorStateManager.java:
##########
@@ -684,6 +695,13 @@ else if (exception instanceof StreamsException)
}
stores.clear();
+
+ // Refresh the task directory's modification time so the state
directory cleaner does
+ // not treat the just-released directory as obsolete before it can
be reassigned.
+ if (!startupTask && baseDir.exists() &&
!baseDir.setLastModified(time.milliseconds())) {
+ log.debug("{}Failed to update modification time of state
directory {} for task {}",
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]