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

The stale ssl engine factory is not closed after reconfigure

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.6.0
    • Component/s: None
    • Labels:
      None

      Description

          @Override
          public void reconfigure(Map<String, ?> newConfigs) throws KafkaException {
              SslEngineFactory newSslEngineFactory = createNewSslEngineFactory(newConfigs);
              if (newSslEngineFactory != this.sslEngineFactory) {
                  this.sslEngineFactory = newSslEngineFactory; // we should close the older one
                  log.info("Created new {} SSL engine builder with keystore {} truststore {}", mode,
                          newSslEngineFactory.keystore(), newSslEngineFactory.truststore());
              }
          }
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                chia7712 Chia-Ping Tsai
                Reporter:
                chia7712 Chia-Ping Tsai
                Reviewer:
                Rajini Sivaram
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: