Accumulo
  1. Accumulo
  2. ACCUMULO-1897

Bug in MemKeyConversionIterator constructor

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.0, 1.5.1
    • Fix Version/s: 1.5.2, 1.6.0
    • Component/s: tserver
    • Labels:
      None

      Description

      The constructor for InMemoryMap.MemKeyConversionIterator which takes a starting key does not correctly clone the key. The parameter to the constructor is startKey, but the code looks at the currKey field to check whether a key is available.

      if (currKey != null)  // <- should be startKey != null
              currKey = (MemKey) startKey.clone();
      

      This class was introduced in version 1.5.0, and is not present in 1.4.x.

        Activity

          People

          • Assignee:
            Sean Busbey
            Reporter:
            Bill Havanki
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development