RecoveryMonitor#lastSeenAccessTime should be volatile (#36781)
This local field is accessed on multiple threads and is nonvolatile so theoretically could yield stale values. Not sure it does in practice.
This commit is contained in:
parent
4ded4717fe
commit
cfea2fd68c
|
@ -258,7 +258,7 @@ public class RecoveriesCollection {
|
|||
private final long recoveryId;
|
||||
private final TimeValue checkInterval;
|
||||
|
||||
private long lastSeenAccessTime;
|
||||
private volatile long lastSeenAccessTime;
|
||||
|
||||
private RecoveryMonitor(long recoveryId, long lastSeenAccessTime, TimeValue checkInterval) {
|
||||
this.recoveryId = recoveryId;
|
||||
|
|
Loading…
Reference in New Issue