flink
flink copied to clipboard
[FLINK-34050][state] Clean up useless files in deleted ranges during rescaling for RocksdbStateBackend
What is the purpose of the change
This pull request cleans up useless sst files within rocksdb during rescaling, which reclaims local disk space, reducing the space amplification problem caused by deleteRange.
Brief change log
- Invoke Rocksdb.deleteFilesInRanges api to delele useless files during rescaling
Verifying this change
This change is already covered by existing tests, such as RocksDBIncrementalCheckpointUtilsTest and RocksIncrementalCheckpointRescalingTest.
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: yes
- The S3 file system connector: no
Documentation
- Does this pull request introduce a new feature? no
CI report:
- 19742db7e5b5c7091d26228ea49c1e8202774a54 Azure: SUCCESS
Bot commands
The @flinkbot bot supports the following commands:@flinkbot run azurere-run the last Azure build
@flinkbot run azure