-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resiliency tests #271
Comments
I mainly want to pair with you to set up some initial tests that use Can we also influence internal cluster communication with it, i.e. On Sat, Feb 14, 2015 at 9:45 AM, Simon Eskildsen notifications@github.com
|
@wvanbergen depends, is it possible to change the listening port for Kafka? |
Yeah, but I am not quite sure how it works, because of how it advertises itself in Zookeeper. Might require some experimentation. |
oh yes... that may be a bit complicated then |
I'd prefer we do the toxiproxy tests against mock brokers, as that should be much easier to manage. We're testing Sarama here, not kafka :) |
@eapache Sarama is a client of ZK and Kafka though, how can you be sure the failover etc. logic is implemented correctly unless you test against the real thing? |
Kafka's broker behaviour is very well-defined, and (in many cases) much easier to simulate with mockbrokers than to trigger in a real cluster (e.g. three-way network partition during failover). Testing against that behaviour is all we need to verify Sarama - if the cluster behaves differently, that's a kafka bug. For example, in Which isn't to say that we shouldn't try to be resilient to the kafka cluster behaving outside of spec, but I'm much more comfortable with "best effort" in that scenario (especially since the brokers themselves have been so reliable for us). Tangential point: sarama does not currently talk to zk at all. |
Significant chunks of this have ended up done over the past year, and the rest have been effectively forgotten. The main toxiproxy tests (#444) still haven't been merged because they exposed an upstream kafka bug which hasn't been fixed yet, but our test suite is in a much better spot now regardless. |
It'd be awesome if Sarama has resiliency tests with Toxiproxy. I'm working on a Go client currently which should make it fairly easy. It does put an extra dependency on the tests, but I definitely think it's worth it. It'd make me trust Sarama a lot more.
Tell me how I can make your life easier in terms of Toxiproxy for testing. :-) I'll be working on adding Toxics to the client this weekend, but it supports up/down currently. I'll write a README later for the Go client, however, it shouldn't be too hard to figure out.
(incomplete) to-do list:
Retry.Max
is 0 #294 (test written, just needs a fix)@eapache @wvanbergen @drdee @yagnik
The text was updated successfully, but these errors were encountered: