
com.groupbyinc.flux.discovery.zen.NodeJoinController.class Maven / Gradle / Ivy
???? 3t 4com/groupbyinc/flux/discovery/zen/NodeJoinController 6com/groupbyinc/flux/common/component/AbstractComponent NodeJoinController.java Ecom/groupbyinc/flux/discovery/zen/NodeJoinController$ProcessJoinsTask ProcessJoinsTask 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 Jcom/groupbyinc/flux/discovery/zen/membership/MembershipAction$JoinCallback =com/groupbyinc/flux/discovery/zen/membership/MembershipAction JoinCallback clusterService ,Lcom/groupbyinc/flux/cluster/ClusterService; routingService 4Lcom/groupbyinc/flux/cluster/routing/RoutingService; discoverySettings 1Lcom/groupbyinc/flux/discovery/DiscoverySettings; accumulateJoins +Ljava/util/concurrent/atomic/AtomicBoolean; electionContext -Ljava/util/concurrent/atomic/AtomicReference; uLjava/util/concurrent/atomic/AtomicReference; pendingJoinRequests Ljava/util/Map; ?Ljava/util/Map;>; $assertionsDisabled Z ?(Lcom/groupbyinc/flux/cluster/ClusterService;Lcom/groupbyinc/flux/cluster/routing/RoutingService;Lcom/groupbyinc/flux/discovery/DiscoverySettings;Lcom/groupbyinc/flux/common/settings/Settings;)V 1(Lcom/groupbyinc/flux/common/settings/Settings;)V * ,
- )java/util/concurrent/atomic/AtomicBoolean / (Z)V * 1
0 2 ! 4 +java/util/concurrent/atomic/AtomicReference 6 ()V * 8
7 9 " # ; java/util/HashMap =
> 9 % & @ B D F 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 N java/lang/Throwable P ( ) R get ()Z T U
0 V java/lang/AssertionError X ?waitToBeElectedAsMaster is called we are not accumulating joins Z (Ljava/lang/Object;)V * \
Y ] #java/util/concurrent/CountDownLatch _ (I)V * a
` b ?(Lcom/groupbyinc/flux/discovery/zen/NodeJoinController;Lcom/groupbyinc/flux/discovery/zen/NodeJoinController$ElectionCallback;ILcom/groupbyinc/flux/cluster/ClusterService;Ljava/util/concurrent/CountDownLatch;)V * d
e
compareAndSet '(Ljava/lang/Object;Ljava/lang/Object;)Z g h
7 i java/lang/IllegalStateException k double waiting for election m (Ljava/lang/String;)V * o
l p failContext ^(Lcom/groupbyinc/flux/discovery/zen/NodeJoinController$ElectionContext;Ljava/lang/Throwable;)V r s
t !checkPendingJoinsAndElectIfNeeded v 8
w )com/groupbyinc/flux/common/unit/TimeValue y millis ()J { |
z } java/util/concurrent/TimeUnit MILLISECONDS Ljava/util/concurrent/TimeUnit; ? ? ? ? await #(JLjava/util/concurrent/TimeUnit;)Z ? ?
` ? logger -Lcom/groupbyinc/flux/common/logging/ESLogger; ? ? ? +com/groupbyinc/flux/common/logging/ESLogger ? isTraceEnabled ? U ? ?
java/util/Map ? size ()I ? ? ? ? java/lang/Object ? Etimed out waiting to be elected. waited [{}]. pending node joins [{}] ? java/lang/Integer ? valueOf (I)Ljava/lang/Integer; ? ?
? ? trace ((Ljava/lang/String;[Ljava/lang/Object;)V ? ? ? ? 1com/groupbyinc/flux/ElasticsearchTimeoutException ? timed out waiting to be elected ? * ?
? ? 3unexpected failure while waiting for incoming joins ? error =(Ljava/lang/String;Ljava/lang/Throwable;[Ljava/lang/Object;)V ? ? ? ? 2unexpected failure while waiting for pending joins ? p(Lcom/groupbyinc/flux/discovery/zen/NodeJoinController$ElectionContext;Ljava/lang/String;Ljava/lang/Throwable;)V r ?
? pendingNodes I t Ljava/lang/Throwable; requiredMasterJoins timeValue +Lcom/groupbyinc/flux/common/unit/TimeValue; callback GLcom/groupbyinc/flux/discovery/zen/NodeJoinController$ElectionCallback; done %Ljava/util/concurrent/CountDownLatch;
newContext FLcom/groupbyinc/flux/discovery/zen/NodeJoinController$ElectionContext;
getMessage ()Ljava/lang/String; ? ?
Q ? context throwable java/lang/StringBuilder ?
? 9 zen-disco-join(failure [ ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? ]) ? toString ? ?
? ? #com/groupbyinc/flux/common/Priority ? IMMEDIATE %Lcom/groupbyinc/flux/common/Priority; ? ? ? ? ?(Lcom/groupbyinc/flux/discovery/zen/NodeJoinController;Lcom/groupbyinc/flux/common/Priority;Lcom/groupbyinc/flux/discovery/zen/NodeJoinController$ElectionContext;Ljava/lang/Throwable;Ljava/lang/String;)V * ?
? *com/groupbyinc/flux/cluster/ClusterService ? submitStateUpdateTask I(Ljava/lang/String;Lcom/groupbyinc/flux/cluster/ClusterStateUpdateTask;)V ? ? ? ? reason Ljava/lang/String; startAccumulatingJoins starting to accumulate joins ? getAndSet (Z)Z ? ?
0 ? %double startAccumulatingJoins() calls ? ()Ljava/lang/Object; T ?
7 ? IstartAccumulatingJoins() called, but there is an ongoing election context ? b stopAccumulatingJoins !stopping join accumulation ([{}]) ? HstopAccumulatingJoins() called, but there is an ongoing election context ? 3stopAccumulatingJoins() called but not accumulating ? 'pending joins after accumulation stop [ ? ] processJoins o
handleJoinRequest (Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;Lcom/groupbyinc/flux/discovery/zen/membership/MembershipAction$JoinCallback;)V &(Ljava/lang/Object;)Ljava/lang/Object; T ? java/util/List java/util/ArrayList
9 put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; ? add (Ljava/lang/Object;)Z .com/groupbyinc/flux/cluster/node/DiscoveryNode join from node[ -(Ljava/lang/Object;)Ljava/lang/StringBuilder; ?
?
nodeCallbacks ^Ljava/util/List; Ljava/util/List; node 0Lcom/groupbyinc/flux/cluster/node/DiscoveryNode; LLcom/groupbyinc/flux/discovery/zen/membership/MembershipAction$JoinCallback; :election check requested but we are not accumulating joins% keySet ()Ljava/util/Set;'( ?)
java/util/Set+ iterator ()Ljava/util/Iterator;-.,/ java/util/Iterator1 hasNext3 U24 next6 ?27 isMasterNode9 U
:
access$100 I(Lcom/groupbyinc/flux/discovery/zen/NodeJoinController$ElectionContext;)I<=
> pendingSetAsMasterTask@ !
A 6not enough joins for election. Got [{}], required [{}]C 5elected as master task already submitted, ignoring...E #zen-disco-join(elected_as_master, [G (I)Ljava/lang/StringBuilder; ?I
?J ] joins received)L ?(Lcom/groupbyinc/flux/discovery/zen/NodeJoinController;Lcom/groupbyinc/flux/common/Priority;Lcom/groupbyinc/flux/discovery/zen/NodeJoinController$ElectionContext;)V *N
O pendingMasterJoins source zen-disco-join(S )U URGENTW ? ?X ^(Lcom/groupbyinc/flux/discovery/zen/NodeJoinController;Lcom/groupbyinc/flux/common/Priority;)V *Z
[
access$000 e(Lcom/groupbyinc/flux/discovery/zen/NodeJoinController;)Lcom/groupbyinc/flux/common/logging/ESLogger; x0
access$200
access$300
access$400
access$500
access$600
access$700 java/lang/Classg desiredAssertionStatusi U
hj Signature Code LocalVariableTable LineNumberTable
StackMapTable LocalVariableTypeTable
SourceFile InnerClasses ! ! " # l $ % &