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

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.98.7, 0.99.1
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      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

            People

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

              Dates

              • Created:
                Updated:
                Resolved: