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

[BUG]1.8.5 dashbaord 集群流控使用外部token server是 获取tokenserverinfo 还是查询的客户端?导致页面显示不出来 #3493

Open
csxchls opened this issue Jan 23, 2025 · 0 comments

Comments

@csxchls
Copy link

csxchls commented Jan 23, 2025

public CompletableFuture getClusterUniversalState(String app, String ip, int port) {
return sentinelApiClient.fetchClusterMode(ip, port)
.thenApply(e -> new ClusterUniversalStateVO().setStateInfo(e))
.thenCompose(vo -> {
if (vo.getStateInfo().getClientAvailable()) {
return sentinelApiClient.fetchClusterClientInfoAndConfig(ip, port)
.thenApply(cc -> vo.setClient(new ClusterClientStateVO().setClientConfig(cc)));
} else {
return CompletableFuture.completedFuture(vo);
}
}).thenCompose(vo -> {
if (vo.getStateInfo().getServerAvailable()) {
return sentinelApiClient.fetchClusterServerBasicInfo(ip, port) //这个ip 和 port还是客户端的?
.thenApply(vo::setServer);
} else {
return CompletableFuture.completedFuture(vo);
}
});
}

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

No branches or pull requests

1 participant