dlmarion commented on issue #4756: URL: https://github.com/apache/accumulo/issues/4756#issuecomment-2250303108
Looking at the javadoc for `Thread.interrupt` it looks like there is a case where an InterruptedException (or some other type of exception) is not thrown, but the thread's interrupted state is set. I'm thinking that `SortedKeyValueIterator.hasTop`, `SortedKeyValueIterator.seek` and `SortedKeyValueIterator.next` should check this via `Thread.interrupted` and if the result is `true`, then it should throw an Exception. If we changed these SKVI interface methods to have a default implementation that performed these checks, I'm not sure that there is a way to force all subclasses to call the superclass method. -- 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]
