Dabz / kafka-boom-boom

An attempt to break kafka. Some people love building stuff, me I like to crush dreams <3
66 stars 19 forks source link

Fixes for block_host(), timeout issues and typo fix for read_message function #2

Closed vdesabou closed 4 years ago

vdesabou commented 4 years ago

These are small fixes that I needed to do while running the scenarios

vdesabou commented 4 years ago

For block_host() function, I noticed that it was not working as expected.

Example from scenario 2:

docker exec -it scenario-2_kafka-1_1 bash
root@kafka-1:/# ping kafka-2
PING kafka-2 (172.26.0.4) 56(84) bytes of data.
From kafka-1 (172.26.0.3) icmp_seq=1 Destination Host Unreachable

Whereas kafka-1 is supposed to be able to connect to kafka-2.

With the fix (see details here):

docker exec -it scenario-2_kafka-1_1 bash
root@kafka-1:/# ping kafka-2
PING kafka-2 (172.28.0.4) 56(84) bytes of data.
64 bytes from scenario-2_kafka-2_1.scenario-2_default (172.28.0.4): icmp_seq=1 ttl=64 time=0.728 ms
Dabz commented 4 years ago

Sorry for the delay. I am planning to update this project to do some test on Multi-Region implemented on 5.4, Merging to have a better source code base ;)