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

Check for presence of user Id in SecureBulkLoadEndpoint#secureBulkLoadHFiles() is inaccurate

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.98.7, 0.99.1
    • None
    • None
    • Reviewed

    Description

      Here is the code:

          if (request.getFsToken().hasIdentifier() && request.getFsToken().hasPassword()) {
      

      In test case, request.getFsToken().hasIdentifier() returns false, leading to userToken being null.
      This would make secure bulk load unsuccessful because the body of secureBulkLoadHFiles() is skipped.

      Attachments

        1. 12164.addendum
          0.8 kB
          Ted Yu
        2. 12164-v1.txt
          3 kB
          Ted Yu
        3. 12164-v1.txt
          3 kB
          Ted Yu

        Activity

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

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment