[
https://issues.apache.org/jira/browse/HBASE-29690?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Duo Zhang updated HBASE-29690:
------------------------------
Labels: beginner trivial (was: )
> 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
> Priority: Major
> Labels: beginner, trivial
>
> {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)