ctubbsii commented on a change in pull request #1379: Improved metadata table
consitency checking and testing
URL: https://github.com/apache/accumulo/pull/1379#discussion_r329660501
##########
File path:
server/base/src/main/java/org/apache/accumulo/server/util/TabletIterator.java
##########
@@ -101,6 +102,20 @@ public boolean hasNext() {
currentTabletKeys = scanToPrevEndRow();
if (currentTabletKeys.size() == 0) {
+ if (lastTablet != null) {
+ KeyExtent lastExtent = new KeyExtent(lastTablet, (Text) null);
+
+ if (lastExtent.getEndRow() != null) {
+
+ Text defaultTabletRow =
TabletsSection.getRow(lastExtent.getTableId(), null);
+ if (range.contains(new Key(defaultTabletRow))) {
+ throw new IllegalStateException(
+ "Scan range incudled default tablet, but did not see default
tablet. Last tablet seen : "
Review comment:
```suggestion
"Scan range included default tablet, but did not see
default tablet. Last tablet seen : "
```
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services