fredia commented on code in PR #20217:
URL: https://github.com/apache/flink/pull/20217#discussion_r939852338
##########
flink-runtime/src/main/java/org/apache/flink/runtime/state/ChangelogTaskLocalStateStore.java:
##########
@@ -97,6 +101,47 @@ private void updateReference(long checkpointId,
TaskStateSnapshot localState) {
}
}
+ public static Path
getLocalTaskOwnedDirectory(LocalRecoveryDirectoryProvider provider) {
+ File outDir = provider.selectAllocationBaseDirectory(0);
Review Comment:
Yes, it should be rotated.
I updated it with reference to :
```
public File allocationBaseDirectory(long checkpointId) {
return selectAllocationBaseDirectory(
(((int) checkpointId) & Integer.MAX_VALUE) %
allocationBaseDirs.length);
}
```
--
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]