[
https://issues.apache.org/jira/browse/HBASE-29690?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Nihal Jain resolved HBASE-29690.
--------------------------------
Hadoop Flags: Reviewed
Resolution: Fixed
Thank you [~droudy] for your contribution here. Thank you [~zhangduo] for
reporting.
> Correct typo in TableReplicationQueueStorage.removeAllQueues exception message
> ------------------------------------------------------------------------------
>
> Key: HBASE-29690
> URL: https://issues.apache.org/jira/browse/HBASE-29690
> Project: HBase
> Issue Type: Bug
> Components: Replication
> Reporter: Duo Zhang
> Assignee: Daniel Roudnitsky
> Priority: Major
> Labels: beginner, pull-request-available, trivial
> Fix For: 3.0.0-beta-2
>
>
> {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)