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

        Bill Havanki created issue -
        Christopher Tubbs made changes -
        Field Original Value New Value
        Affects Version/s 1.5.1 [ 12324399 ]
        Affects Version/s 1.6.0 [ 12322468 ]
        Affects Version/s 1.7.0 [ 12324607 ]
        Christopher Tubbs made changes -
        Fix Version/s 1.5.2 [ 12326272 ]
        Fix Version/s 1.6.0 [ 12322468 ]
        Sean Busbey made changes -
        Attachment ACCUMULO-1897.1.patch.txt [ 12638441 ]
        Sean Busbey made changes -
        Assignee Sean Busbey [ busbey ]
        Sean Busbey made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Mike Drob made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Josh Elser made changes -
        Link This issue breaks ACCUMULO-3726 [ ACCUMULO-3726 ]
        Josh Elser made changes -
        Link This issue breaks ACCUMULO-3726 [ ACCUMULO-3726 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development