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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 1.5.1
    • 1.5.2, 1.6.0
    • test
    • 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

            faganm Mike Fagan
            faganm Mike Fagan
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: