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

Bug in MemKeyConversionIterator constructor

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5.0, 1.5.1
    • 1.5.2, 1.6.0
    • tserver
    • 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

        1. ACCUMULO-1897.1.patch.txt
          1 kB
          Sean Busbey

        Activity

          People

            busbey Sean Busbey
            bhavanki Bill Havanki
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: