Skip to content

Fix ToxiProxy integration for multi-broker Kafka cluster#164

Merged
see-quick merged 6 commits intostrimzi:mainfrom
see-quick:proxy-fix
Nov 24, 2025
Merged

Fix ToxiProxy integration for multi-broker Kafka cluster#164
see-quick merged 6 commits intostrimzi:mainfrom
see-quick:proxy-fix

Conversation

@see-quick
Copy link
Copy Markdown
Member

In this PR, I am fixing the behaviour of ToxiProxy. At the current moment, if one were using a Kafka cluster with a proxy (e.g., latencies, bandwidth limitation), such injections would simply not work. So there were a few issues I have addressed in this PR:

  1. A race condition occurred when we tried to start the proxy container.
  2. Instead of using a free port, directly use the broker network alias
  3. If using a proxy, then return the correct bootstrap servers
  4. and port exposure to proxy ports (also able for external AdminClient/Producer/Consumer) to be able to access those.
  5. updating README.md to only mention StrimziKafkaCluster instead of StrimziKafkaContainer as such class is now removed from public API.

Also, I have added two simple ITs to cover such functionality and avoid those issues in the future.

Signed-off-by: see-quick <maros.orsak159@gmail.com>
Signed-off-by: see-quick <maros.orsak159@gmail.com>
@see-quick see-quick added this to the 0.114.0 milestone Nov 5, 2025
@see-quick see-quick requested a review from a team November 5, 2025 13:21
@see-quick see-quick self-assigned this Nov 5, 2025
…roker/controller

Signed-off-by: see-quick <maros.orsak159@gmail.com>
Signed-off-by: see-quick <maros.orsak159@gmail.com>
Signed-off-by: see-quick <maros.orsak159@gmail.com>
Comment thread src/main/java/io/strimzi/test/container/StrimziKafkaContainer.java Outdated
…ntainer instead doing it in kafkaContainer when its not in public PAI anymore

Signed-off-by: see-quick <maros.orsak159@gmail.com>
@see-quick see-quick merged commit 7572f2a into strimzi:main Nov 24, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants