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

index is not incremented in PutSortReducer#reduce()

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.99.0, 0.98.3
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: