Skip to content

Commit

Permalink
kfake: add DropControl, SleepOutOfOrder, CoordinatorFor, RehashCoordi…
Browse files Browse the repository at this point in the history
…nators

* Sleeping was a bit limited because if two requests came in on the same
  connection, you could not really chain logic. Sleeping out of order
allows you to at least run some logic to gate how requests behave with
each other. It's not the most obvious, so it is not the default.

* Adds SleepOutOfOrder

* Adds CoordinatorFor so you can see which "broker" a coordinator
  request will go to

* Adds RehashCoordinators to change where requests are hashed to

The latter two allow you to loop rehashing until a coordinator for your
key changes, if you want to force NotCoordinator requests.
  • Loading branch information
twmb committed Dec 20, 2023
1 parent b8b065d commit b7a335a
Show file tree
Hide file tree
Showing 3 changed files with 260 additions and 62 deletions.
Loading

0 comments on commit b7a335a

Please sign in to comment.