瀏覽代碼

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) { for (final MachineInfo machine : machines) {
// auto remove // auto remove
if (machine.isDead()) { if (machine.isDead()) {
latch.countDown();
appManagement.getDetailApp(app).removeMachine(machine.getIp(), machine.getPort()); appManagement.getDetailApp(app).removeMachine(machine.getIp(), machine.getPort());
logger.info("Dead machine removed: {}:{} of {}", machine.getIp(), machine.getPort(), app); logger.info("Dead machine removed: {}:{} of {}", machine.getIp(), machine.getPort(), app);
continue; continue;


Loading…
取消
儲存