zoltar9264 opened a new pull request, #24933:
URL: https://github.com/apache/flink/pull/24933
## What is the purpose of the change
Clean up useless file-merging managed directory (which never be include in
any checkpoint) on exit of TM.
## Brief change log
1. Normalize file-merging sub dir
- format file-merging subtask dir to
`job_{jobId}_op_{operatorId}_{subtaskIndex}_{parallelism}`
- format file-merging exclusive dir to `job_{jobId}_tm_{tmResourceId}`
2. Track managed directory reference and clean up useless one when exit.
## Verifying this change
Normalize file-merging sub dir can be verified by
*FileMergingSnapshotManagerTestBase#testCreateFileMergingSnapshotManager*.
And useless file-merging managed dir clean up can be verified by tests add
in this change : *FileMergingSnapshotManagerTestBase#testManagedDirCleanup*.
## Does this pull request potentially affect one of the following parts:
- Dependencies (does it add or upgrade a dependency): (no)
- The public API, i.e., is any changed class annotated with
`@Public(Evolving)`: (no)
- The serializers: (no)
- The runtime per-record code paths (performance sensitive): (no)
- Anything that affects deployment or recovery: JobManager (and its
components), Checkpointing, Kubernetes/Yarn, ZooKeeper: (no)
- The S3 file system connector: (no)
## Documentation
- Does this pull request introduce a new feature? (no)
Please help review this change @Zakelly , thanks.
--
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]