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

Refactor checkTrustAndSend in SaslDataTransferClient to make it cleaner

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.3.0
    • Component/s: None
    • Labels:
      None

      Description

      Right now

      private IOStreamPair checkTrustAndSend(InetAddress addr,
      OutputStream underlyingOut, InputStream underlyingIn,
      DataEncryptionKeyFactory encryptionKeyFactory,
      Token<BlockTokenIdentifier> accessToken, DatanodeID datanodeId)

      only provide an API without secretKey paramter for 

      checkTrustAndSend(
      InetAddress addr, OutputStream underlyingOut, InputStream underlyingIn,
      DataEncryptionKeyFactory encryptionKeyFactory,
      Token<BlockTokenIdentifier> accessToken, DatanodeID datanodeId,
      SecretKey secretKey)

      Remove the former API to make it cleaner

        Attachments

        1. HADOOP-16292.001.patch
          2 kB
          Sherwood Zheng

          Activity

            People

            • Assignee:
              zhengxg3 Sherwood Zheng
              Reporter:
              zhengxg3 Sherwood Zheng
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: