1996fanrui commented on a change in pull request #18852: URL: https://github.com/apache/flink/pull/18852#discussion_r815555714
########## File path: flink-runtime/src/main/java/org/apache/flink/runtime/checkpoint/PendingCheckpoint.java ########## @@ -105,12 +105,12 @@ /** The checkpoint properties. */ private final CheckpointProperties props; - /** Target storage location to persist the checkpoint metadata to. */ - private final CheckpointStorageLocation targetLocation; - /** The promise to fulfill once the checkpoint has been completed. */ private final CompletableFuture<CompletedCheckpoint> onCompletionPromise; + /** Target storage location to persist the checkpoint metadata to. */ + private CheckpointStorageLocation targetLocation; Review comment: Thanks for your reminder. I will add volatile for targetLocation. And I think disposed also should be volatile, because there isn't use lock in `isDisposed` method. How do you think? -- 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: issues-unsubscr...@flink.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org