HBase
  1. HBase
  2. HBASE-10417

index is not incremented in PutSortReducer#reduce()

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor 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.

      1. HBASE-10417.patch
        0.6 kB
        Gustavo Anatoly

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Gustavo Anatoly
            Reporter:
            Ted Yu
          • Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development