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

Scanner with all results filtered out results in NPE

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment