Repository navigation
Conversation
…ous#4840 clusterDefinitions can now take bootstrapServerSelection with the same round-robin/random strategies as the deprecated targetCluster form. Signed-off-by: Abdullah <[email protected]>
k-wall
force-pushed
the
fix-4840-cluster-definition-bootstrap-selection
branch
from
September 15, 2026 13:00
7f772a2 to
2eb7ed0
Compare
k-wall
approved these changes
Sep 15, 2026
Member
There was a problem hiding this comment.
LGTM
I changed my mind. I made a couple of suggestions here: AzazelSensei#1. Could you review and if you are happy, incorporate into your PR.
k-wall
reviewed
Sep 15, 2026
k-wall
reviewed
Sep 15, 2026
k-wall
requested changes
Sep 15, 2026
A named cluster definition is reused by many virtual clusters, so toTargetCluster() now mints a newInstance() instead of sharing the round-robin counter. Also moved the YAML parse test into ConfigParserTest. Co-authored-by: Keith Wall <[email protected]> Signed-off-by: Abdullah <[email protected]>
Contributor
Author
|
Incorporated both suggestions from AzazelSensei#1. |
Signed-off-by: Keith Wall <[email protected]>
k-wall
reviewed
Sep 16, 2026
| * @return a strategy with independent selection state | ||
| */ | ||
| @JsonIgnore | ||
| BootstrapSelectionStrategy newInstance(); |
Member
There was a problem hiding this comment.
This is a ugly, but is okay for the moment. #4921 should clean this up.
k-wall
enabled auto-merge (squash)
September 16, 2026 09:02
|
|
MarkNSweep
pushed a commit
to MarkNSweep/kroxylicious
that referenced
this pull request
Sep 17, 2026
…ous#4840 (kroxylicious#4891) * feat: accept bootstrapServerSelection on clusterDefinitions kroxylicious#4840 clusterDefinitions can now take bootstrapServerSelection with the same round-robin/random strategies as the deprecated targetCluster form. Signed-off-by: Abdullah <[email protected]> * fix: give each target cluster its own bootstrap selection strategy A named cluster definition is reused by many virtual clusters, so toTargetCluster() now mints a newInstance() instead of sharing the round-robin counter. Also moved the YAML parse test into ConfigParserTest. Co-authored-by: Keith Wall <[email protected]> Signed-off-by: Abdullah <[email protected]> --------- Signed-off-by: Abdullah <[email protected]> Signed-off-by: Keith Wall <[email protected]> Co-authored-by: Keith Wall <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Type of change
Description
clusterDefinitionsnow acceptsbootstrapServerSelectionwith the same round-robin (default) and random strategies as the deprecatedtargetClusterform.Without this, moving a config that uses bootstrap-server selection onto
clusterDefinitionsfails to load (UnrecognizedPropertyException).Closes #4840
Additional Context
Keith asked me to split this out of #4800.
Checklist
@SuppressWarningsand a justifying comment).Assisted-by:trailer (see DEV_GUIDE.md).changelog/unreleased/(remember to include changes affecting the API of the test artefacts too). See DEV_GUIDE.md for the entry format.