Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CASSANDRA-20074][4.0] AbstractCommitLogService#lastSyncedAt initialized with currentTimeMillis() but later compared and updated with System.nanoTime() #3674

Open
wants to merge 1 commit into
base: cassandra-4.0
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public abstract class AbstractCommitLogService
private volatile boolean shutdown = false;

// all Allocations written before this time will be synced
protected volatile long lastSyncedAt = System.currentTimeMillis();
protected volatile long lastSyncedAt = MonotonicClock.preciseTime.now();

// counts of total written, and pending, log messages
private final AtomicLong written = new AtomicLong(0);
Expand Down