Uploaded image for project: 'Accumulo'
  1. Accumulo
  2. ACCUMULO-1897

Bug in MemKeyConversionIterator constructor

    Details

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

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: