StefanRRichter commented on code in PR #24119:
URL: https://github.com/apache/flink/pull/24119#discussion_r1457349158
##########
flink-state-backends/flink-statebackend-rocksdb/src/main/java/org/apache/flink/contrib/streaming/state/StateHandleDownloadSpec.java:
##########
@@ -53,7 +53,9 @@ public IncrementalLocalKeyedStateHandle
createLocalStateHandleForDownloadedState
return new IncrementalLocalKeyedStateHandle(
stateHandle.getBackendIdentifier(),
stateHandle.getCheckpointId(),
- new DirectoryStateHandle(downloadDestination),
+ // This handle is just temporary and will the directory size
will never be used for
+ // metrics, so we just fill it in as 0.
+ new DirectoryStateHandle(downloadDestination, 0L),
Review Comment:
Need to double check if that would do the right thing, I didn't care much
because none of that is every reported, but yeah...if it works it's nicer.
--
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]