com.groupbyinc.flux.discovery.zen.MasterFaultDetection.class Maven / Gradle / Ivy
???? 4k 6com/groupbyinc/flux/discovery/zen/MasterFaultDetection 0com/groupbyinc/flux/discovery/zen/FaultDetection MasterFaultDetection.java 8com/groupbyinc/flux/discovery/zen/MasterFaultDetection$1 Qcom/groupbyinc/flux/discovery/zen/MasterFaultDetection$MasterPingResponseResponse MasterPingResponseResponse Hcom/groupbyinc/flux/discovery/zen/MasterFaultDetection$MasterPingRequest MasterPingRequest Ocom/groupbyinc/flux/discovery/zen/MasterFaultDetection$MasterPingRequestHandler MasterPingRequestHandler Xcom/groupbyinc/flux/discovery/zen/MasterFaultDetection$NodeDoesNotExistOnMasterException !NodeDoesNotExistOnMasterException bcom/groupbyinc/flux/discovery/zen/MasterFaultDetection$ThisIsNotTheMasterYouAreLookingForException +ThisIsNotTheMasterYouAreLookingForException Ccom/groupbyinc/flux/discovery/zen/MasterFaultDetection$MasterPinger MasterPinger ?com/groupbyinc/flux/discovery/zen/MasterFaultDetection$Listener Listener /com/groupbyinc/flux/threadpool/ThreadPool$Names )com/groupbyinc/flux/threadpool/ThreadPool Names %java/lang/invoke/MethodHandles$Lookup " java/lang/invoke/MethodHandles $ Lookup MASTER_PING_ACTION_NAME Ljava/lang/String; %internal:discovery/zen/fd/master_ping )
masterService 3Lcom/groupbyinc/flux/cluster/service/MasterService; clusterStateSupplier Ljava/util/function/Supplier; ILjava/util/function/Supplier; listeners +Ljava/util/concurrent/CopyOnWriteArrayList; nLjava/util/concurrent/CopyOnWriteArrayList; masterPinger ELcom/groupbyinc/flux/discovery/zen/MasterFaultDetection$MasterPinger; masterNodeMutex Ljava/lang/Object;
masterNode 0Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;
retryCount I notifiedMasterFailure +Ljava/util/concurrent/atomic/AtomicBoolean; (Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/threadpool/ThreadPool;Lcom/groupbyinc/flux/transport/TransportService;Ljava/util/function/Supplier;Lcom/groupbyinc/flux/cluster/service/MasterService;Lcom/groupbyinc/flux/cluster/ClusterName;)V ?(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/threadpool/ThreadPool;Lcom/groupbyinc/flux/transport/TransportService;Lcom/groupbyinc/flux/cluster/ClusterName;)V = ?
@ )java/util/concurrent/CopyOnWriteArrayList B ()V = D
C E 0 1 G java/lang/Object I
J E 5 6 L )java/util/concurrent/atomic/AtomicBoolean N
O E ; < Q - . S + , U logger 8Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger; W X Y F[master] uses ping_interval [{}], ping_timeout [{}], ping_retries [{}] [ pingInterval +Lcom/groupbyinc/flux/common/unit/TimeValue; ] ^ _ pingRetryTimeout a ^ b pingRetryCount d : e java/lang/Integer g valueOf (I)Ljava/lang/Integer; i j
h k 6com/groupbyinc/flux/common/apache/logging/log4j/Logger m debug K(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V o p n q "java/lang/invoke/LambdaMetafactory s metafactory ?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite; u v
t w x ()Ljava/lang/Object; z
E | L()Lcom/groupbyinc/flux/discovery/zen/MasterFaultDetection$MasterPingRequest; ~ get ()Ljava/util/function/Supplier; ? ? ? same ? u(Lcom/groupbyinc/flux/discovery/zen/MasterFaultDetection;Lcom/groupbyinc/flux/discovery/zen/MasterFaultDetection$1;)V = ?
? .com/groupbyinc/flux/transport/TransportService ? registerRequestHandler }(Ljava/lang/String;Ljava/util/function/Supplier;Ljava/lang/String;ZZLcom/groupbyinc/flux/transport/TransportRequestHandler;)V ? ?
? ? this 8Lcom/groupbyinc/flux/discovery/zen/MasterFaultDetection; settings .Lcom/groupbyinc/flux/common/settings/Settings;
threadPool +Lcom/groupbyinc/flux/threadpool/ThreadPool; transportService 0Lcom/groupbyinc/flux/transport/TransportService; clusterName )Lcom/groupbyinc/flux/cluster/ClusterName; 2()Lcom/groupbyinc/flux/cluster/node/DiscoveryNode; 7 8 ? addListener D(Lcom/groupbyinc/flux/discovery/zen/MasterFaultDetection$Listener;)V add (Ljava/lang/Object;)Z ? ?
C ? listener ALcom/groupbyinc/flux/discovery/zen/MasterFaultDetection$Listener; removeListener remove ? ?
C ? restart E(Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;Ljava/lang/String;)V isDebugEnabled ()Z ? ? n ? D[master] restarting fault detection against master [{}], reason [{}] ? 9(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V o ? n ? innerStop ? D
?
innerStart 3(Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;)V ? ?
? java/lang/Throwable ? reason 9 : ? set (Z)V ? ?
O ? 3 4 ? stop ? D
?
? ? ? ? schedule y(Lcom/groupbyinc/flux/common/unit/TimeValue;Ljava/lang/String;Ljava/lang/Runnable;)Ljava/util/concurrent/ScheduledFuture; ? ?
? (Ljava/lang/String;)V B[master] stopping fault detection against master [{}], reason [{}] ? close ? D
? closing ? ? ?
? clear ? D
C ? handleTransportDisconnect java/lang/Exception ? .com/groupbyinc/flux/cluster/node/DiscoveryNode ? equals ? ?
? ? connectOnNetworkDisconnect Z ? ? ? ? ? ?
connectToNode ? ?
? ? )com/groupbyinc/flux/common/unit/TimeValue ? timeValueMillis .(J)Lcom/groupbyinc/flux/common/unit/TimeValue; ? ?
? ? <[master] [{}] transport disconnected (with verified connect) ? trace '(Ljava/lang/String;Ljava/lang/Object;)V ? ? n ? .transport disconnected (with verified connect) ? notifyMasterFailure Z(Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;Ljava/lang/Throwable;Ljava/lang/String;)V ? ?
? $[master] [{}] transport disconnected ? transport disconnected e Ljava/lang/Exception; node Gcom/groupbyinc/flux/common/util/concurrent/EsRejectedExecutionException
compareAndSet (ZZ)Z
O
generic (()Ljava/util/concurrent/ExecutorService;
D lambda$notifyMasterFailure$0 ?
run ?(Lcom/groupbyinc/flux/discovery/zen/MasterFaultDetection;Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;Ljava/lang/Throwable;Ljava/lang/String;)Ljava/lang/Runnable; $java/util/concurrent/ExecutorService execute (Ljava/lang/Runnable;)V Vmaster failure notification was rejected, it's highly likely the node is shutting down error *(Ljava/lang/String;Ljava/lang/Throwable;)V!" n# java/lang/StringBuilder%
&