HBase
  1. HBase
  2. HBASE-10417

index is not incremented in PutSortReducer#reduce()

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      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.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Ted Yu
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:

              Development