ctubbsii commented on code in PR #5553:
URL: https://github.com/apache/accumulo/pull/5553#discussion_r2096322066
##########
server/tserver/src/main/java/org/apache/accumulo/tserver/NativeMap.java:
##########
@@ -572,12 +568,12 @@ public Value getTopValue() {
@Override
public boolean hasTop() {
+ Preconditions.checkState(seeked, "seek() was never called");
Review Comment:
Should `seeked` be volatile or atomic? There is an AtomicBoolean for the
interruptFlag, so that implies there's some multi-threaded access here. If that
also affects this state, then this exception could be thrown under false
positives.
--
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]