-
Notifications
You must be signed in to change notification settings - Fork 28
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
Orion Broker Set UI Implementation #292
Conversation
private List<List<Integer>> brokersetRanges = new ArrayList<>(); | ||
private List<String> brokerIds; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we keeping redundant information in these two variables? Isn't brokerIds
union of all brokersetRanges
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The ranges are from the configuration. The ids are from the cluster info.
There can be a condition that brokerRange contains a broker that does not exist. Now, that means the brokerset is invalid. Once we have more condition check, there can be other reasons causing this mismatch.
Will add comments for these two variables along with other changes.
return brokersetStatus; | ||
} | ||
|
||
function getStatusColumns() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be getStatsColumns
columns? Are there other places a similar change if needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For brokerset, do we want to use stats or status? I want to display the condition of a brokerset at one time.
https://stackoverflow.com/questions/1162816/naming-conventions-state-versus-status
Code Review Summary: Orion Broker Set UI Implementation
Enhancements to Broker Set Section on Service Page
Improvements to Node Page
Class Updates
The existing
BrokerSet
class is generated from a configuration file every 2 minutes, which means it cannot currently save state information. Additionally, it plays a critical role in the existing topic assignment logic. To avoid disrupting any existing logic during refactoring, a newBrokerSetState
class has been added.Testing
This change has been tested via branch deployment.