Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-15156

Update cipherInformation correctly in DefaultChannelMetadataRegistry

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 3.9.0
    • None

    Description

      At https://github.com/apache/kafka/blob/4a61b48d3dca81e28b57f10af6052f36c50a05e3/clients/src/main/java/org/apache/kafka/common/network/DefaultChannelMetadataRegistry.java#L25 

      we do not end up assigning the new value of cipherInformation to the member variable. 

      The code over here, should be the following so that we can update the cipher information.

      if (cipherInformation == null) {     
          throw Illegal exception.
      }
      this.cipherInformation = cipherInformation

       

       
      While this class is only used in tests, we should still fix this. It's a minor bug.

      Attachments

        Activity

          People

            ganesh_6 Ganesh Sadanala
            divijvaidya Divij Vaidya
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 3h
                3h