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

index is not incremented in PutSortReducer#reduce()

    XMLWordPrintableJSON

Details

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

    Description

      Starting at line 76:

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

      index is a variable inside while loop that is never incremented.
      The condition "index > 0" cannot be true.

      Attachments

        1. HBASE-10417.patch
          0.6 kB
          Gustavo Anatoly

        Activity

          People

            gustavoanatoly Gustavo Anatoly
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: