You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Duo Zhang (Jira)" <ji...@apache.org> on 2025/10/28 14:28:00 UTC
[jira] [Created] (HBASE-29690) Fix typo in TableReplicationQueueStorage.removeAllQueues
Duo Zhang created HBASE-29690:
---------------------------------
Summary: Fix typo in TableReplicationQueueStorage.removeAllQueues
Key: HBASE-29690
URL: https://issues.apache.org/jira/browse/HBASE-29690
Project: HBase
Issue Type: Bug
Components: Replication
Reporter: Duo Zhang
{code}
@Override
public void removeAllQueues(String peerId) throws ReplicationException {
Scan scan = new Scan().setStartStopRowForPrefixScan(ReplicationQueueId.getScanPrefix(peerId))
.addFamily(QUEUE_FAMILY).setFilter(new KeyOnlyFilter());
try (Table table = conn.getTable(tableName); ResultScanner scanner = table.getScanner(scan)) {
for (;;) {
Result result = scanner.next();
if (result == null) {
break;
}
table.delete(new Delete(result.getRow()));
}
} catch (IOException e) {
throw new ReplicationException("failed to listAllQueueIds, peerId=" + peerId, e);
}
}
{code}
The message in the exception message should be `removeAllQueues` instead of `listAllQueueIds`.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)