keith-turner commented on code in PR #5553:
URL: https://github.com/apache/accumulo/pull/5553#discussion_r2096387059


##########
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:
   The interruptFlag is something that is shared across many iterators and its 
expected that the the thread that sets it will differ from the thread that 
reads.  All the other instance variables are private and the iterator code does 
not expect multiple threads to use it. 



-- 
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]

Reply via email to