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

Scanner with all results filtered out results in NPE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 1.1.0
    • 0.98.14, 1.0.2, 1.2.0, 1.1.1, 2.0.0
    • Client
    • None
    • Reviewed

    Description

      Saw a failure during some testing with region_mover.rb

      NativeException: java.lang.NullPointerException: null
              __ensure__ at /usr/hdp/current/hbase-master/bin/region_mover.rb:110
        isSuccessfulScan at /usr/hdp/current/hbase-master/bin/region_mover.rb:109
        isSuccessfulScan at /usr/hdp/current/hbase-master/bin/region_mover.rb:104
           unloadRegions at /usr/hdp/current/hbase-master/bin/region_mover.rb:328
      

      To try to get a real stacktrace, I wrote a simple test. Turns out, it was really simple to just produce the NPE within ClientScanner.

      java.lang.NullPointerException: null
      	at org.apache.hadoop.hbase.client.ClientScanner.getResultsToAddToCache(ClientScanner.java:576)
      	at org.apache.hadoop.hbase.client.ClientScanner.loadCache(ClientScanner.java:492)
      	at org.apache.hadoop.hbase.client.ClientScanner.next(ClientScanner.java:364)
      

      Patch with fix and test incoming.

      Attachments

        1. HBASE-13892.patch
          3 kB
          Josh Elser

        Activity

          People

            elserj Josh Elser
            elserj Josh Elser
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: