[ 
https://issues.apache.org/jira/browse/HBASE-19972?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16360742#comment-16360742
 ] 

Hudson commented on HBASE-19972:
--------------------------------

FAILURE: Integrated in Jenkins build HBase-Trunk_matrix #4571 (See 
[https://builds.apache.org/job/HBase-Trunk_matrix/4571/])
HBASE-19972 Should rethrow the RetriesExhaustedWithDetailsException when 
(openinx: rev 629eaf8b74a443fb9f6c5c99b5b3174bc91514ba)
* (edit) 
hbase-server/src/test/java/org/apache/hadoop/hbase/replication/regionserver/TestReplicationSink.java
* (edit) 
hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSink.java


> Should rethrow  the RetriesExhaustedWithDetailsException when failed to apply 
> the batch in ReplicationSink
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: HBASE-19972
>                 URL: https://issues.apache.org/jira/browse/HBASE-19972
>             Project: HBase
>          Issue Type: Bug
>          Components: Replication
>            Reporter: Zheng Hu
>            Assignee: Zheng Hu
>            Priority: Critical
>             Fix For: 1.5.0, 2.0.0-beta-2, 1.4.2
>
>         Attachments: HBASE-19972-branch-1.4.patch, HBASE-19972.v1.patch, 
> HBASE-19972.v1.patch
>
>
> As [~Apache9] said in HBASE-12091. 
> In ReplicationSink#batch,we swallow the RetriesExhaustedWithDetailsException 
> except 
> TableNotFoundException,   actually,  should rethrow the exception. 
> {code:java}
> try {
>       Connection connection = getConnection();
>       table = connection.getTable(tableName);
>       for (List<Row> rows : allRows) {
>         table.batch(rows);
>       }
>     } catch (RetriesExhaustedWithDetailsException rewde) {
>       for (Throwable ex : rewde.getCauses()) {
>         if (ex instanceof TableNotFoundException) {
>           throw new TableNotFoundException("'"+tableName+"'");
>         }
>       }
>     } 
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to