Skip to content
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

Cooperative Rebalance Question / Implementation Help Needed #964

Closed
robinfehr opened this issue Jul 5, 2022 · 1 comment
Closed

Cooperative Rebalance Question / Implementation Help Needed #964

robinfehr opened this issue Jul 5, 2022 · 1 comment

Comments

@robinfehr
Copy link

Hi,

I’m currently implementing the cooperative incremental rebalances (or what's missing here: #907)

I’ve added all the missing e2e tests and the assignment_lost fn.

The last step I’m currently struggling with is testing the assignment_lost fn.

I would like to write an E2E test that returns true for assignment_lost.
I’ve tried to mimic this test as an E2E test in JS:
/deps/librdkafka/tests/0113-cooperative_rebalance.cpp:1673

But fail to get a rebalance when I delete a topic thus won’t ever reach a return value that is true.
(revoke never makes it into the consumer)

How would you test the assignment_lost fn? Would you take a different approach?
I tried a lot of options already and seem to be a bit stuck.

This is the current one i have that won't trigger the rebalance:
https://gist.github.com/robinfehr/941611f2b94c164ba087149961fad127

Your help would be much appreciated.

@robinfehr
Copy link
Author

Can be closed. the only thing missing was

      'topic.metadata.refresh.interval.ms': 3000

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

No branches or pull requests

1 participant