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

kfake: Drop topic configuration validation #767

Merged
merged 1 commit into from
Jun 13, 2024

Conversation

jan-g
Copy link
Contributor

@jan-g jan-g commented Jun 13, 2024

This isn't used at the moment; it gets in the way of using kfake to stub out behaviour that mocks custom cluster & topic config.

This isn't used at the moment; it gets in the way of using kfake to stub out behaviour
that mocks custom cluster & topic config.
@@ -102,7 +102,7 @@ func (gs groupState) String() string {

func (c *Cluster) coordinator(id string) *broker {
gen := c.coordinatorGen.Load()
n := hashString(fmt.Sprint("%d", gen)+"\x00\x00"+id) % uint64(len(c.bs))
n := hashString(fmt.Sprintf("%d", gen)+"\x00\x00"+id) % uint64(len(c.bs))
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Linter carp.

@twmb
Copy link
Owner

twmb commented Jun 13, 2024

+1. I might reintroduce some aspects of this later -- e.g. if I ever introduce handling compaction, it'll be worth validating the cleanup.policy. But, it's not worth failing generally for random configs.

@twmb twmb merged commit ee4cbf5 into twmb:master Jun 13, 2024
4 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