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

HttpDoAsClient should handle failure in retrieving Subject

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

      $ hbase org.apache.hadoop.hbase.thrift.HttpDoAsClient localhost 9095 hbase security=true
      Exception in thread "main" java.util.NoSuchElementException
      	at java.util.LinkedList$ListItr.next(LinkedList.java:890)
      	at javax.security.auth.Subject$SecureSet$1.next(Subject.java:1056)
      	at org.apache.hadoop.hbase.thrift.HttpDoAsClient.main(HttpDoAsClient.java:85)
      

      When Subject cannot be retrieved (e.g. due to empty ticket cache), we shouldn't end up with NoSuchElementException.
      Better error message should be given.

      Attachments

        1. 16745.v1.txt
          1 kB
          Ted Yu

        Activity

          People

            yuzhihong@gmail.com Ted Yu
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: