Ta-Chun Shen
03/17/2023, 4:04 AMlast-state upgrade mode. After the job was restored, I noticed that the full checkpoint size drastically increased from 600GB to 900GB. To investigate this issue, I extract the internal RocksDB from one of the operator subtask state and use the ldb tool to dump the database. I find that there are a large number of deleted rows. The following is the command I use:
$ ldb --db=./db --column_family=name idump --hex | grep 'type:1' | wc -l
134529889
$ ldb --db=./db --column_family=name idump --hex | grep 'type:0' | wc -l
33779429
We can see that most of the rows are deleted. Next, I try to manually run compaction on the database and the size decreases from 16GB to 6.6GB. Why could rescaling create so many deleted rows in this case? Is there any configuration to alleviate the size increasing problem or it is just the expected behavior of rescaling?