AlexYinHan commented on code in PR #27040:
URL: https://github.com/apache/flink/pull/27040#discussion_r2380753044
##########
flink-state-backends/flink-statebackend-forst/src/main/java/org/apache/flink/state/forst/ForStResourceContainer.java:
##########
@@ -436,7 +441,7 @@ public void clearDirectories() throws Exception {
}
public void forceClearRemoteDirectories() throws Exception {
- if (remoteBasePath != null) {
+ if (remoteBasePath != null && remotePathNewlyCreated) {
Review Comment:
This is for the situations where we are restoring from a JM failure. In such
cases, we want to reuse the checkpointed files in the existing directory. So we
want to avoid deleting the directory if remotePathNewlyCreated=false.
--
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]