Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-17934

NullPointerException when no HTTP response set on AbfsRestOperation

    XMLWordPrintableJSON

Details

    Description

      Seen when running HBase 2.2 on top of ABFS with Hadoop 3.1ish:

      Caused by: java.lang.NullPointerException
              at org.apache.hadoop.fs.azurebfs.services.AbfsClient.renameIdempotencyCheckOp(AbfsClient.java:382)
              at org.apache.hadoop.fs.azurebfs.services.AbfsClient.renamePath(AbfsClient.java:348)
              at org.apache.hadoop.fs.azurebfs.AzureBlobFileSystemStore.rename(AzureBlobFileSystemStore.java:722)
              at org.apache.hadoop.fs.azurebfs.AzureBlobFileSystem.rename(AzureBlobFileSystem.java:327)
              at org.apache.hadoop.fs.FilterFileSystem.rename(FilterFileSystem.java:249)
              at org.apache.hadoop.hbase.regionserver.HRegionFileSystem.rename(HRegionFileSystem.java:1115) 

      Digging in, it looks like the AbfsHttpOperation inside of AbfsRestOperation may sometimes be null, but AbfsClient will try to unwrap it (and read the status code from the HTTP call). I'm not sure why we sometimes get the null HttpOperation but it seems pretty straightforward to not get the NPE.

      HBase got wedged after this, but I'm not sure if it's because of this NPE or (perhaps) we weren't getting any responses from ABFS itself (i.e. there was some ABFS outage/unavailability or the node itself couldn't talk to ABFS).

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 3h 50m
                  3h 50m