dlmarion commented on code in PR #3091:
URL: https://github.com/apache/accumulo/pull/3091#discussion_r1044729362
##########
core/src/main/java/org/apache/accumulo/core/clientImpl/ScannerImpl.java:
##########
@@ -152,6 +153,16 @@ public synchronized int getBatchSize() {
@Override
public synchronized Iterator<Entry<Key,Value>> iterator() {
ensureOpen();
+
+ if (getConsistencyLevel() == ConsistencyLevel.IMMEDIATE) {
+ try {
+ String tableName = context.getTableName(tableId);
+ context.requireNotOffline(tableId, tableName);
+ } catch (TableNotFoundException e) {
+ throw new RuntimeException("Table not found", e);
Review Comment:
Created UncheckedAccumuloException in 5b98e2a
##########
core/src/main/java/org/apache/accumulo/core/clientImpl/ThriftScanner.java:
##########
@@ -559,6 +580,11 @@ public Map<String,String> getHints() {
"For tablet {} scan server selector chose scan_server:{}
delay:{} busyTimeout:{}",
loc.tablet_extent, scanServer, delay, scanState.busyTimeout);
} else {
+ try {
+ context.requireNotOffline(scanState.tableId,
context.getTableName(scanState.tableId));
+ } catch (TableNotFoundException e) {
+ throw new RuntimeException("Error scanning for table: " +
scanState.tableId, e);
Review Comment:
Created UncheckedAccumuloException in 5b98e2a
--
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]