Skip to content

Commit

Permalink
HBASE-27969 TableReplicationQueueStorage.hasData does not work as exp…
Browse files Browse the repository at this point in the history
…ected (#5321)

Signed-off-by: Liangjun He <heliangjun@apache.org>
(cherry picked from commit 1d704a7)
  • Loading branch information
Apache9 committed Jul 11, 2023
1 parent 4c7698f commit cb0540c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ public Set<String> getAllHFileRefs() throws ReplicationException {
@Override
public boolean hasData() throws ReplicationException {
try {
return conn.getAdmin().getDescriptor(tableName) != null;
return conn.getAdmin().tableExists(tableName);
} catch (IOException e) {
throw new ReplicationException("failed to get replication queue table", e);
}
Expand Down

0 comments on commit cb0540c

Please sign in to comment.