[ 
https://issues.apache.org/jira/browse/HBASE-29690?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nihal Jain updated HBASE-29690:
-------------------------------
    Summary: Correct typo in TableReplicationQueueStorage.removeAllQueues 
exception message  (was: Fix typo in 
TableReplicationQueueStorage.removeAllQueues)

> 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
>
> {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)

Reply via email to