Skip to content
Merged
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
2 changes: 1 addition & 1 deletion src/main/java/com/alipay/oceanbase/hbase/util/OHAdmin.java
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public boolean tableExists(TableName tableName) throws IOException {
int errCode = ((ObTableException) cause).getErrorCode();
// if the original cause is database_not_exist, means namespace in tableName does not exist
// for HBase, namespace not exist will not throw exceptions but will return false
if (errCode == ResultCodes.OB_ERR_BAD_DATABASE.errorCode) {
if (errCode == ResultCodes.OB_KV_HBASE_NAMESPACE_NOT_FOUND.errorCode) {
return false;
}
}
Expand Down