Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1287,6 +1287,11 @@ private RegionLocations locateRegionInMeta(TableName tableName, byte[] row,
s.setReversed(true);
s.withStartRow(metaKey);

// Adding a filter on CATALOG_FAMILY is necessary for compatibility
// with hbase 2.x and beyond, which adds additional column families.
// See HBASE-26797
s.addFamily(HConstants.CATALOG_FAMILY);

if (this.useMetaReplicas) {
s.setConsistency(Consistency.TIMELINE);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,10 @@ private static Result getClosestRowOrBefore(final Table metaTable, final TableNa
throws IOException {
byte[] searchRow = HRegionInfo.createRegionName(userTableName, row, HConstants.NINES, false);
Scan scan = Scan.createGetClosestRowOrBeforeReverseScan(searchRow);
// Adding a filter on CATALOG_FAMILY is necessary for compatibility
// with hbase 2.x and beyond, which adds additional column families.
// See HBASE-26797
scan.addFamily(HConstants.CATALOG_FAMILY);
Copy link
Contributor Author

@bbeaudreault bbeaudreault Mar 3, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The real error comes from ConnectionManager, but I tried to audit all reads against meta table and this was the only other one (that I could find) which did not have a family specified. I figured I should add it while I'm here even if we haven't hit an issue with this yet.

if (useMetaReplicas) {
scan.setConsistency(Consistency.TIMELINE);
}
Expand Down