Skip to content

Conversation

@guluo2016
Copy link
Contributor

Details see: HBASE-29683

}
if (locations == null || locations.isEmpty()) {
future.completeExceptionally(new TableNotFoundException(tableName));
return;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

In here, return early to prevent further execution when locations is null

Copy link
Contributor

Choose a reason for hiding this comment

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

This should be a separated bug? We can fix this first?

});
List<ColumnFamilyDescriptor> mobColumnFamilies =
Arrays.stream(tableDesc.getColumnFamilies())
.filter(ColumnFamilyDescriptor::isMobEnabled).toList();
Copy link
Contributor

Choose a reason for hiding this comment

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

I do not think toList is available in java 8?

future.complete(null);
return;
}
if (columnFamily == null) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Seems here we added bunch of code related to MOB feature? What is the implementation on branch-2 for sync HBaseAdmin?

}
if (locations == null || locations.isEmpty()) {
future.completeExceptionally(new TableNotFoundException(tableName));
return;
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be a separated bug? We can fix this first?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants