Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-19972

Should rethrow the RetriesExhaustedWithDetailsException when failed to apply the batch in ReplicationSink

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.0-beta-2, 1.4.2, 2.0.0
    • Component/s: Replication
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      As [~Apache9] said in HBASE-12091

      In ReplicationSink#batch,we swallow the RetriesExhaustedWithDetailsException except 

      TableNotFoundException,   actually,  should rethrow the exception. 

      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+"'");
              }
            }
          } 
      

        Attachments

        1. HBASE-19972-branch-1.4.patch
          4 kB
          Zheng Hu
        2. HBASE-19972.v1.patch
          5 kB
          Zheng Hu
        3. HBASE-19972.v1.patch
          5 kB
          Zheng Hu

          Issue Links

            Activity

              People

              • Assignee:
                openinx Zheng Hu
                Reporter:
                openinx Zheng Hu
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: