hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zheng Hu (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HBASE-19972) Should rethrow the RetriesExhaustedWithDetailsException when failed to apply the batch in ReplicationSink
Date Sun, 11 Feb 2018 06:08:00 GMT
Zheng Hu created HBASE-19972:
--------------------------------

             Summary: 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
            Reporter: Zheng Hu
            Assignee: Zheng Hu


As [~Apache9] saided in HBASE-12091. 

In ReplicationSink#batch,we swallow the RetriesExhaustedWithDetailsException except 

TableNotFoundException,   actually,  should rethrow the exception. 

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

Mime
View raw message