Fix: intra.broker.goals cannot be configured as default.goals #2221
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.
Summary
default.goals
Expected Behavior
I can add (enable) goals to the
default.goals
list from both the intra and inter broker goalsActual Behavior
Sanity checks ensure the following rules:
goals
and theintra.broker.goals
at the same time)default.goals
should be a subset ofgoals
(As a result of this, we could not add intra broker goal to thedefault.goals
)intra.broker.goals
cant be empty (you could not move all the intra broker roles to the goals)We could not add intra goal to the
default.goals
without a trick (see in the workaround section)Steps to Reproduce
Try to enable an intra broker goal by adding it to the
default. goals
Known Workarounds
You can remove 1 intra broker goal from the
intra.broker.goals
config and add that to thegoals
(keep in mind that the other one should be in theintra.broker.goals
as the list cant be empty) this way you can add that 1 goal to thedefault.goals
and enable itNote that this way we still cant enable both of the currently available intra broker goals as 1 have to be in the intra.broker.goals list to avoid hitting the mentioned sanity check. So only 1 intra goal at a time.
Categorization