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

Refactor checkTrustAndSend in SaslDataTransferClient to make it cleaner

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.3.0
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: