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

Fix increment index in KeyValueSortReducer

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.99.0, 0.94.20, 0.98.3
    • None
    • None
    • Reviewed

    Description

      The index is never incremented inside the loop, therefore context.setStatus also is never set.

      int index = 0;
      for (KeyValue kv: map) {
        context.write(row, kv);
        if (index > 0 && index % 100 == 0) context.setStatus("Wrote " + index);
      }
      

      Attachments

        1. HBASE-11212.patch
          0.7 kB
          Gustavo Anatoly

        Activity

          People

            gustavoanatoly Gustavo Anatoly
            gustavoanatoly Gustavo Anatoly
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: