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

TokenUtil.obtainToken squashes remote exceptions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 2.0.0
    • 2.0.0
    • mapreduce, security
    • None

    Description

      In the changes to protobuf handling in HBASE-15638, our TokenUtil class went from handling remote exception via a method that would throw IOException to one that simply returned it. In doing so, we ended up ignoring the results.

      This causes the obtainToken method to start returning null where it would have previously thrown an IOException. It also causes obtainTokenForJob to still fail with an IOException, but instead of being the underlying remote problem now it's a generic "I didn't get a user token for some reason."

      found via testing Pig with errors.

      Caused by: java.io.IOException: No token returned for user testuser@EXAMPLE.COM
              at org.apache.hadoop.hbase.security.token.TokenUtil.obtainTokenForJob(TokenUtil.java:175)
              at org.apache.pig.backend.hadoop.hbase.HBaseStorage.addHBaseDelegationToken(HBaseStorage.java:887)
      

      Attachments

        1. HBASE-17975.0.patch
          1 kB
          Sean Busbey

        Issue Links

          Activity

            People

              busbey Sean Busbey
              busbey Sean Busbey
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: