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

LocalityGroupUtil.encodeColumnFamily() ignores offset parameter

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.4.5, 1.5.1
    • 1.5.2, 1.6.1, 1.7.0
    • None

    Description

      The method LocalityGroupUtil.encodeColumnFamily(ByteSequence) heeds the current offset and length of the byte sequence, passing them to an private method that does the encoding. However, the private method ignores its offset parameter, and always starts from the beginning of the byte array.

      Fortunately, it appears that there are no callers for the public method, and the other caller of the private method always passes an offset of zero. So, the bug is probably not expressed. The method with the bug should probably just be eliminated.

      Attachments

        1. ACCUMULO-2758.patch
          0.7 kB
          Gary Singh
        2. ACCUMULO-2758-2.patch
          1 kB
          Gary Singh
        3. ACCUMULO-2758-3.patch
          1 kB
          Gary Singh
        4. ACCUMULO-2758-4.patch
          1 kB
          Gary Singh

        Activity

          People

            gary2086 Gary Singh
            bhavanki Bill Havanki
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: