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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • None
    • 2.0.0-beta-2, 1.4.2, 2.0.0
    • Replication
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: