浏览代码

dashboard: fix CountDownLatch wait timeout in MetricFetcher when machine is dead (#645)

master
luoxiangnan Eric Zhao 5 年前
父节点
当前提交
4b0960c942
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. +1
    -0
      sentinel-dashboard/src/main/java/com/alibaba/csp/sentinel/dashboard/metric/MetricFetcher.java

+ 1
- 0
sentinel-dashboard/src/main/java/com/alibaba/csp/sentinel/dashboard/metric/MetricFetcher.java 查看文件

@@ -195,6 +195,7 @@ public class MetricFetcher {
for (final MachineInfo machine : machines) {
// auto remove
if (machine.isDead()) {
latch.countDown();
appManagement.getDetailApp(app).removeMachine(machine.getIp(), machine.getPort());
logger.info("Dead machine removed: {}:{} of {}", machine.getIp(), machine.getPort(), app);
continue;


正在加载...
取消
保存