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

Restore behaviour of MetadataCache.getTopicMetadata when unsupported security protocol is received

    Details

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

      Description

      The behaviour of `MetadataCache.getTopicMetadata` when a security protocol that is not supported by a broker is passed as a parameter was to throw BrokerEndpointNotAvailableException until https://github.com/apache/kafka/commit/764d8ca9eb0aba6099ba289a10f437e72b53ffec when it was accidentally changed to return a response with error code `LeaderNotAvailable` or `ReplicaNotAvailable`.

      The right behaviour is probably to return a new error code, but in the meantime we should restore the existing behavior and add some tests.

      This issue was found by Jason Gustafson.

        Attachments

          Activity

            People

            • Assignee:
              ijuma Ismael Juma
              Reporter:
              ijuma Ismael Juma
              Reviewer:
              Gwen Shapira
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: