Skip to content

Commit 1d704a7

Browse files
authored
HBASE-27969 TableReplicationQueueStorage.hasData does not work as expected (#5321)
Signed-off-by: Liangjun He <[email protected]>
1 parent b2e2abe commit 1d704a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hbase-replication/src/main/java/org/apache/hadoop/hbase/replication/TableReplicationQueueStorage.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ public Set<String> getAllHFileRefs() throws ReplicationException {
533533
@Override
534534
public boolean hasData() throws ReplicationException {
535535
try {
536-
return conn.getAdmin().getDescriptor(tableName) != null;
536+
return conn.getAdmin().tableExists(tableName);
537537
} catch (IOException e) {
538538
throw new ReplicationException("failed to get replication queue table", e);
539539
}

0 commit comments

Comments
 (0)