keith-turner commented on a change in pull request #2342:
URL: https://github.com/apache/accumulo/pull/2342#discussion_r745097805
##########
File path:
test/src/main/java/org/apache/accumulo/test/functional/FunctionalTestUtils.java
##########
@@ -218,4 +219,30 @@ private static FateStatus getFateStatus(ClientContext
context, AccumuloCluster c
throw new RuntimeException(e);
}
}
+
+ static long checkFlushId(AccumuloClient c, String tableName, long
prevFlushID) throws Exception {
+ try (Scanner scanner = c.createScanner(MetadataTable.NAME,
Authorizations.EMPTY)) {
Review comment:
Could use ample for this instead of a scanner. Not sure if the
following compiles or works, just typed it up as a quick example.
```java
try(TabletsMetadata tablets =
((ClientContext)c).getAmple().readTablets(tableId).fetch(FLUSH_ID).build())){
for(TabletMetadata tablet : tablets) {
tablet.getFlushId();
}
}
```
--
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]