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

MockTableOperations.deleteRow does not handle null for start or end keys

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.5.1
    • Fix Version/s: 1.5.2, 1.6.0
    • Component/s: test
    • Labels:
    • Environment:

      OSX Mavericks

      Description

      The deleteRow function does not check for null values for start or end keys.
      These null values are passed down into key constructor which will throw a NullPointerException:
      java.lang.NullPointerException
      at org.apache.accumulo.core.data.Key.<init>(Key.java:103)
      at org.apache.accumulo.core.client.mock.MockTableOperations.deleteRows(MockTableOperations.java:315)

      The API semantics dictate:
      if (start == null ) then start == Text()
      if (end == null ) then end == maxKey()

        Attachments

        1. ACCUMULO-2748.patch
          4 kB
          Mike Fagan

          Activity

            People

            • Assignee:
              faganm Mike Fagan
              Reporter:
              faganm Mike Fagan
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: