Pārlūkot izejas kodu

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

master
luoxiangnan Eric Zhao pirms 5 gadiem
vecāks
revīzija
4b0960c942
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  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 Parādīt failu

@@ -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;


Notiek ielāde…
Atcelt
Saglabāt