com.groupbyinc.flux.discovery.zen.NodeJoinController.class Maven / Gradle / Ivy
???? 4G 4com/groupbyinc/flux/discovery/zen/NodeJoinController 6com/groupbyinc/flux/common/component/AbstractComponent NodeJoinController.java Ecom/groupbyinc/flux/discovery/zen/NodeJoinController$JoinTaskExecutor JoinTaskExecutor Ecom/groupbyinc/flux/discovery/zen/NodeJoinController$JoinTaskListener JoinTaskListener Dcom/groupbyinc/flux/discovery/zen/NodeJoinController$ElectionContext ElectionContext Ecom/groupbyinc/flux/discovery/zen/NodeJoinController$ElectionCallback ElectionCallback 6com/groupbyinc/flux/discovery/zen/NodeJoinController$3 6com/groupbyinc/flux/discovery/zen/NodeJoinController$2 6com/groupbyinc/flux/discovery/zen/NodeJoinController$1 ?com/groupbyinc/flux/discovery/zen/MembershipAction$JoinCallback 2com/groupbyinc/flux/discovery/zen/MembershipAction JoinCallback
masterService 3Lcom/groupbyinc/flux/cluster/service/MasterService; allocationService BLcom/groupbyinc/flux/cluster/routing/allocation/AllocationService; electMaster 6Lcom/groupbyinc/flux/discovery/zen/ElectMasterService; joinTaskExecutor GLcom/groupbyinc/flux/discovery/zen/NodeJoinController$JoinTaskExecutor; electionContext FLcom/groupbyinc/flux/discovery/zen/NodeJoinController$ElectionContext; BECOME_MASTER_TASK 0Lcom/groupbyinc/flux/cluster/node/DiscoveryNode; FINISH_ELECTION_TASK $assertionsDisabled Z ?(Lcom/groupbyinc/flux/cluster/service/MasterService;Lcom/groupbyinc/flux/cluster/routing/allocation/AllocationService;Lcom/groupbyinc/flux/discovery/zen/ElectMasterService;Lcom/groupbyinc/flux/common/settings/Settings;)V 1(Lcom/groupbyinc/flux/common/settings/Settings;)V , .
/ 9(Lcom/groupbyinc/flux/discovery/zen/NodeJoinController;)V , 1
2 # $ 4 % & 6 8 : ! " < this 6Lcom/groupbyinc/flux/discovery/zen/NodeJoinController; settings .Lcom/groupbyinc/flux/common/settings/Settings; waitToBeElectedAsMaster v(ILcom/groupbyinc/flux/common/unit/TimeValue;Lcom/groupbyinc/flux/discovery/zen/NodeJoinController$ElectionCallback;)V java/lang/InterruptedException D java/lang/Exception F #java/util/concurrent/CountDownLatch H (I)V , J
I K ?(Lcom/groupbyinc/flux/discovery/zen/NodeJoinController;Ljava/util/concurrent/CountDownLatch;Lcom/groupbyinc/flux/discovery/zen/NodeJoinController$ElectionCallback;)V , M
N * + P java/lang/AssertionError R ?waitToBeElectedAsMaster is called we are not accumulating joins T (Ljava/lang/Object;)V , V
S W )com/groupbyinc/flux/common/unit/TimeValue Y java/lang/Object [ onAttemptToBeElected K(ILcom/groupbyinc/flux/discovery/zen/NodeJoinController$ElectionCallback;)V ] ^
_ !checkPendingJoinsAndElectIfNeeded ()V a b
c java/lang/Throwable e millis ()J g h
Z i java/util/concurrent/TimeUnit k MILLISECONDS Ljava/util/concurrent/TimeUnit; m n l o await #(JLjava/util/concurrent/TimeUnit;)Z q r
I s logger 8Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger; u v w 6com/groupbyinc/flux/common/apache/logging/log4j/Logger y isTraceEnabled ()Z { | z } getPendingMasterJoinsCount ()I ?
? Ltimed out waiting to be elected. waited [{}]. pending master node joins [{}] ? java/lang/Integer ? valueOf (I)Ljava/lang/Integer; ? ?
? ? trace 9(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V ? ? z ? timed out waiting to be elected ? failContextIfNeeded [(Lcom/groupbyinc/flux/discovery/zen/NodeJoinController$ElectionContext;Ljava/lang/String;)V ? ?
? 3unexpected failure while waiting for incoming joins ? error *(Ljava/lang/String;Ljava/lang/Throwable;)V ? ? z ? java/lang/StringBuilder ? , b
? ? 4unexpected failure while waiting for pending joins [ ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ?
getMessage ()Ljava/lang/String; ? ?
G ? ] ? toString ? ?
? ? pendingNodes I e Ljava/lang/Exception; requiredMasterJoins timeValue +Lcom/groupbyinc/flux/common/unit/TimeValue; callback GLcom/groupbyinc/flux/discovery/zen/NodeJoinController$ElectionCallback; done %Ljava/util/concurrent/CountDownLatch; wrapperCallback myElectionContext stopElectionContext (Ljava/lang/String;)V ? ?
? context reason Ljava/lang/String; startElectionContext 3starting an election context, will accumulate joins ? ? ? z ? #double startElectionContext() calls ?
2 stopping election ([{}]) ? '(Ljava/lang/String;Ljava/lang/Object;)V ? ? z ? 1stopElectionContext() called but not accumulating ? closeAndProcessPending ? ?
? handleJoinRequest t(Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;Lcom/groupbyinc/flux/discovery/zen/MembershipAction$JoinCallback;)V addIncomingJoin ? ?
? zen-disco-node-join ? #com/groupbyinc/flux/common/Priority ? URGENT %Lcom/groupbyinc/flux/common/Priority; ? ? ? ? 2com/groupbyinc/flux/cluster/ClusterStateTaskConfig ? build [(Lcom/groupbyinc/flux/common/Priority;)Lcom/groupbyinc/flux/cluster/ClusterStateTaskConfig; ? ? ? ? |(Lcom/groupbyinc/flux/discovery/zen/MembershipAction$JoinCallback;Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger;)V , ?
? 1com/groupbyinc/flux/cluster/service/MasterService ? submitStateUpdateTask ?(Ljava/lang/String;Ljava/lang/Object;Lcom/groupbyinc/flux/cluster/ClusterStateTaskConfig;Lcom/groupbyinc/flux/cluster/ClusterStateTaskExecutor;Lcom/groupbyinc/flux/cluster/ClusterStateTaskListener;)V ? ?
? ? node ALcom/groupbyinc/flux/discovery/zen/MembershipAction$JoinCallback; .election check requested but no active context ? isEnoughPendingJoins (I)Z ? ?
? 6not enough joins for election. Got [{}], required [{}] ?
access$000 I(Lcom/groupbyinc/flux/discovery/zen/NodeJoinController$ElectionContext;)I ? ?
? 7have enough joins for election. Got [{}], required [{}] ? closeAndBecomeMaster b
pendingMasterJoins
access$100 2()Lcom/groupbyinc/flux/cluster/node/DiscoveryNode; ' (
access$200 ) (
access$300 (Lcom/groupbyinc/flux/discovery/zen/NodeJoinController;)Lcom/groupbyinc/flux/discovery/zen/NodeJoinController$JoinTaskExecutor; x0
access$400 k(Lcom/groupbyinc/flux/discovery/zen/NodeJoinController;)Lcom/groupbyinc/flux/cluster/service/MasterService;
access$700 p(Lcom/groupbyinc/flux/discovery/zen/NodeJoinController;)Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger;
access$800
access$900 access$1000 z(Lcom/groupbyinc/flux/discovery/zen/NodeJoinController;)Lcom/groupbyinc/flux/cluster/routing/allocation/AllocationService; access$1100 access$1200 access$1300 n(Lcom/groupbyinc/flux/discovery/zen/NodeJoinController;)Lcom/groupbyinc/flux/discovery/zen/ElectMasterService; java/lang/Class desiredAssertionStatus |
_BECOME_MASTER_TASK_ 5com/groupbyinc/flux/common/transport/TransportAddress" META_ADDRESS Ljava/net/InetAddress;$% #& (Ljava/net/InetAddress;I)V ,(
#) java/util/Collections+ emptyMap ()Ljava/util/Map;-.
,/ emptySet ()Ljava/util/Set;12
,3 com/groupbyinc/flux/Version5 CURRENT Lcom/groupbyinc/flux/Version;78 69 ?(Ljava/lang/String;Lcom/groupbyinc/flux/common/transport/TransportAddress;Ljava/util/Map;Ljava/util/Set;Lcom/groupbyinc/flux/Version;)V ,;
< _FINISH_ELECTION_>
< Code LocalVariableTable LineNumberTable
StackMapTable
SourceFile InnerClasses ! ! " # $ % &