Inject TaskStateRegistry added in FLINK-23139 into existing state backends and use it there to manage private state.
Should only take effect if changelog.enabled = true.
Related task: prevent RocksDB from re-uploading state if checkpoints weren't confirmed (or were aborted).
(see also FLINK-23461)
Please implement or create a seperate ticket.
An alternative solution that was considered is to analyze the returned snapshot for state to manage.