Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-831

committing BatchUpdate with no row should complain

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.2.0
    • 0.2.1, 0.18.0
    • None
    • None

    Description

      Running this code:

      BatchUpdate update = new BatchUpdate();
      update.put(key, value);
      table.commit(update);

      Down in getRegionServer, this triggers an NPE because the row is null (which I saw because I was running in a debugger); this NPE gets retried somewhere in the bowels of IPC. Instead, we should either remove the zero-arg BatchUpdate constructor, or have table.commit throw a runtimeexception if the row is null.

      Attachments

        1. 831.patch
          1 kB
          Andrew Kyle Purtell
        2. 831-v2-shortertimeouts.patch
          2 kB
          Michael Stack

        Activity

          People

            apurtell Andrew Kyle Purtell
            bien Michael Bieniosek
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: