platinumhamburg commented on code in PR #2469:
URL: https://github.com/apache/fluss/pull/2469#discussion_r2726204032
##########
fluss-server/src/main/java/org/apache/fluss/server/kv/snapshot/PeriodicSnapshotManager.java:
##########
@@ -79,6 +80,9 @@ public class PeriodicSnapshotManager implements Closeable {
/** Whether snapshot is started. */
private volatile boolean started = false;
+ /** The scheduled snapshot task. */
+ private volatile ScheduledFuture<?> scheduledTask = null;
Review Comment:
Because all reads and writes of this variable are protected by synchronized,
the volatile modifier may no longer be necessary.
--
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]