All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.groupbyinc.flux.discovery.zen.PendingClusterStatesQueue.class Maven / Gradle / Ivy

There is a newer version: 198
Show newest version
????42;com/groupbyinc/flux/discovery/zen/PendingClusterStatesQueuejava/lang/ObjectPendingClusterStatesQueue.javaOcom/groupbyinc/flux/discovery/zen/PendingClusterStatesQueue$ClusterStateContextClusterStateContextRcom/groupbyinc/flux/discovery/zen/PendingClusterStatesQueue$StateProcessedListener	StateProcessedListener
pendingStatesLjava/util/ArrayList;hLjava/util/ArrayList;logger!Lorg/apache/logging/log4j/Logger;maxQueueSizeI$assertionsDisabledZ%(Lorg/apache/logging/log4j/Logger;I)V()V
java/util/ArrayList

			!this=Lcom/groupbyinc/flux/discovery/zen/PendingClusterStatesQueue;
addPending-(Lcom/groupbyinc/flux/cluster/ClusterState;)V&
'add(Ljava/lang/Object;)Z)*
+size()I-.
/remove(I)Ljava/lang/Object;12
3;dropping pending state [{}]. more than [{}] pending states.5java/lang/Integer7valueOf(I)Ljava/lang/Integer;9:
8;org/apache/logging/log4j/Logger=warn9(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V?@>A	committed()ZCD
ElistenerTLcom/groupbyinc/flux/discovery/zen/PendingClusterStatesQueue$StateProcessedListener;GH	I*com/groupbyinc/flux/ElasticsearchExceptionK&too many pending states ([{}] pending)M((Ljava/lang/String;[Ljava/lang/Object;)VO
LPonNewClusterStateFailed(Ljava/lang/Exception;)VRS
TcontextQLcom/groupbyinc/flux/discovery/zen/PendingClusterStatesQueue$ClusterStateContext;state*Lcom/groupbyinc/flux/cluster/ClusterState;markAsCommitted?(Ljava/lang/String;Lcom/groupbyinc/flux/discovery/zen/PendingClusterStatesQueue$StateProcessedListener;)Lcom/groupbyinc/flux/cluster/ClusterState;	findStatee(Ljava/lang/String;)Lcom/groupbyinc/flux/discovery/zen/PendingClusterStatesQueue$ClusterStateContext;\]
^java/lang/IllegalStateException`java/lang/StringBuilderb
c'can't resolve cluster state with uuid [eappend-(Ljava/lang/String;)Ljava/lang/StringBuilder;gh
ci] to commitktoString()Ljava/lang/String;mn
co(Ljava/lang/String;)Vq
arcluster state with uuid [t] is already committedvW(Lcom/groupbyinc/flux/discovery/zen/PendingClusterStatesQueue$StateProcessedListener;)VZx
yXY	{	stateUUIDLjava/lang/String;markAsFailedB(Lcom/groupbyinc/flux/cluster/ClusterState;Ljava/lang/Exception;)V(com/groupbyinc/flux/cluster/ClusterState?}n
??"java/lang/IllegalArgumentException?.can't resolve failed cluster state with uuid [?], version [?version()J??
??(J)Ljava/lang/StringBuilder;g?
c?]?
?r&failed cluster state is not committed ?-(Ljava/lang/Object;)Ljava/lang/StringBuilder;g?
c?get?2
?equals?*
?
supersedes-(Lcom/groupbyinc/flux/cluster/ClusterState;)Z??
??1failing committed state {} together with state {}?debug?@>?	removeAll(Ljava/util/Collection;)Z??
?	?java/lang/AssertionError?Estate was marked as processed but can still be found in pending list ?(Ljava/lang/Object;)V?
??pendingContextpendingStateindexreasonLjava/lang/Exception;
failedContextstatesToRemovemarkAsProcessed1can't resolve processed cluster state with uuid [?nodes3()Lcom/groupbyinc/flux/cluster/node/DiscoveryNodes;??
??/com/groupbyinc/flux/cluster/node/DiscoveryNodes?
getMasterNode2()Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;??
??,processed cluster state mast have a master. ?.com/groupbyinc/flux/cluster/node/DiscoveryNode?java/util/Objects?'(Ljava/lang/Object;Ljava/lang/Object;)Z??
??{received a cluster state (uuid[{}]/v[{}]) from a different master than the current one, rejecting (received {}, current {})?java/lang/Long?(J)Ljava/lang/Long;9?
??](Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V??>?Pcluster state from a different master than the current one, rejecting (received ?
, current ?)?iremoving non-committed state with uuid[{}]/v[{}] from [{}] - a state from [{}] was successfully processed?trace??>?java/lang/String?
??)processed cluster state is not committed ?onNewClusterStateProcessed?
?Jprocessing pending state uuid[{}]/v[{}] together with state uuid[{}]/v[{}]?pendingMasterNode0Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;
currentMastercontextsToRemove
?ifailAllStatesAndCleariterator()Ljava/util/Iterator;??
?java/util/Iterator?hasNext?D?next()Ljava/lang/Object;?clear
getNextClusterStateToProcess,()Lcom/groupbyinc/flux/cluster/ClusterState;isEmptyD
2should only return committed cluster state. found potentialStatestateToProcesspendingClusterStates-()[Lcom/groupbyinc/flux/cluster/ClusterState;toArray(([Ljava/lang/Object;)[Ljava/lang/Object;
+[Lcom/groupbyinc/flux/cluster/ClusterState;statesALjava/util/ArrayList;stats>()Lcom/groupbyinc/flux/discovery/zen/PendingClusterStateStats;:com/groupbyinc/flux/discovery/zen/PendingClusterStateStats(III)V 
!clusterStatsContextjava/lang/Class%desiredAssertionStatus'D
&(	SignatureCodeLocalVariableTableLineNumberTable
StackMapTableLocalVariableTypeTable
SourceFileInnerClasses!
*+h*?*?Y??*+? *?"?, #$-@<ABC!%&+?e*??Y+?(?,W*??0*?"?I*??4?M*? 6,*?"??Y?L*???M,??,??N+-?|?,W???++?0?????, #	VW>#$6
/6-??#,/.???!+?C<*???M,??,??N-?F?????Y*??0*??0d?"?, 
#WC#$AC-+,-$.'0*2.
?
??$+4?)?????-3.@01





© 2015 - 2024 Weber Informatics LLC | Privacy Policy