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

[COST] make sure all brokers have cost #1456

Merged
merged 2 commits into from
Jan 23, 2023

Conversation

chia7712
Copy link
Contributor

基於node的成本會在節點沒有對應指標時回傳“空”的成本,這會導致該節點無法被納入評估,因此這隻PR賦予所有“沒有指標”的節點最基本的分數 - max cost,代表該些節點也應該被考慮,但不是最佳優先

@@ -32,7 +31,7 @@
public interface ClusterBean {
ClusterBean EMPTY = ClusterBean.of(Map.of());

static ClusterBean of(Map<Integer, Collection<HasBeanObject>> allBeans) {
static ClusterBean of(Map<Integer, ? extends Collection<? extends HasBeanObject>> allBeans) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

方便讓我們用不同集合建立ClusterBean

@chia7712 chia7712 merged commit be296c9 into opensource4you:main Jan 23, 2023
@chia7712 chia7712 deleted the make_all_brokers_has_cost branch March 27, 2023 13:18
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.

1 participant