com.groupbyinc.flux.cluster.routing.UnassignedInfo.class Maven / Gradle / Ivy
???? 4@ 2com/groupbyinc/flux/cluster/routing/UnassignedInfo java/lang/Object 6com/groupbyinc/flux/common/xcontent/ToXContentFragment .com/groupbyinc/flux/common/io/stream/Writeable UnassignedInfo.java 4com/groupbyinc/flux/cluster/routing/UnassignedInfo$1
Ccom/groupbyinc/flux/cluster/routing/UnassignedInfo$AllocationStatus AllocationStatus 9com/groupbyinc/flux/cluster/routing/UnassignedInfo$Reason Reason 5com/groupbyinc/flux/common/xcontent/ToXContent$Params .com/groupbyinc/flux/common/xcontent/ToXContent Params 4com/groupbyinc/flux/common/settings/Setting$Property +com/groupbyinc/flux/common/settings/Setting Property %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup DEPRECATION_LOGGER 6Lcom/groupbyinc/flux/common/logging/DeprecationLogger; DATE_TIME_FORMATTER 9Lcom/groupbyinc/flux/common/joda/FormatDateTimeFormatter; 'INDEX_DELAYED_NODE_LEFT_TIMEOUT_SETTING -Lcom/groupbyinc/flux/common/settings/Setting; ZLcom/groupbyinc/flux/common/settings/Setting; reason ;Lcom/groupbyinc/flux/cluster/routing/UnassignedInfo$Reason; unassignedTimeMillis J unassignedTimeNanos delayed Z message Ljava/lang/String; failure Ljava/lang/Exception; failedAllocations I lastAllocationStatus ELcom/groupbyinc/flux/cluster/routing/UnassignedInfo$AllocationStatus; $assertionsDisabled P(Lcom/groupbyinc/flux/cluster/routing/UnassignedInfo$Reason;Ljava/lang/String;)V ALLOCATION_FAILED : ) ; java/lang/String = java/lang/System ? nanoTime ()J A B
@ C currentTimeMillis E B
@ F
NO_ATTEMPT H 6
I ?(Lcom/groupbyinc/flux/cluster/routing/UnassignedInfo$Reason;Ljava/lang/String;Ljava/lang/Exception;IJJZLcom/groupbyinc/flux/cluster/routing/UnassignedInfo$AllocationStatus;)V 8 K
L this 4Lcom/groupbyinc/flux/cluster/routing/UnassignedInfo; %Lcom/groupbyinc/flux/common/Nullable; ()V 8 Q
R java/util/Objects T requireNonNull &(Ljava/lang/Object;)Ljava/lang/Object; V W
U X ( ) Z * + \ , + ^ - . ` / 0 b 1 2 d 3 4 f 5 6 h 7 . j java/lang/Exception l java/lang/AssertionError n java/lang/StringBuilder p
q R failedAllocations: s append -(Ljava/lang/String;)Ljava/lang/StringBuilder; u v
q w (I)Ljava/lang/StringBuilder; u y
q z for reason | -(Ljava/lang/Object;)Ljava/lang/StringBuilder; u ~
q toString ()Ljava/lang/String; ? ?
q ? (Ljava/lang/Object;)V 8 ?
o ? 4provide a message if a failure exception is provided ? NODE_LEFT ? ) ? Cshard can only be delayed if it is unassigned due to a node leaving ? 5(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)V java/io/IOException ? values >()[Lcom/groupbyinc/flux/cluster/routing/UnassignedInfo$Reason; ? ?
? 0com/groupbyinc/flux/common/io/stream/StreamInput ? readByte ()B ? ?
? ? readLong ? B
? ? readBoolean ()Z ? ?
? ? readOptionalString ? ?
? ?
readException ()Ljava/lang/Exception; ? ?
? ? readVInt ()I ? ?
? ? readFrom y(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Lcom/groupbyinc/flux/cluster/routing/UnassignedInfo$AllocationStatus; ? ?
? in 2Lcom/groupbyinc/flux/common/io/stream/StreamInput; writeTo 6(Lcom/groupbyinc/flux/common/io/stream/StreamOutput;)V 1com/groupbyinc/flux/common/io/stream/StreamOutput ?
getVersion ()Lcom/groupbyinc/flux/Version; ? ?
? ? com/groupbyinc/flux/Version ?
V_6_0_0_beta2 Lcom/groupbyinc/flux/Version; ? ? ? ? before (Lcom/groupbyinc/flux/Version;)Z ? ?
? ? MANUAL_ALLOCATION ? ) ? ordinal ? ?
? writeByte (B)V ? ?
? ? writeLong (J)V ? ?
? ? writeBoolean (Z)V ? ?
? ? writeOptionalString (Ljava/lang/String;)V ? ?
? ? writeException (Ljava/lang/Throwable;)V ? ?
? ? writeVInt (I)V ? ?
? ? ? ?
? out 3Lcom/groupbyinc/flux/common/io/stream/StreamOutput; h(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Lcom/groupbyinc/flux/cluster/routing/UnassignedInfo; 8 ?
? getNumFailedAllocations isDelayed getReason =()Lcom/groupbyinc/flux/cluster/routing/UnassignedInfo$Reason; getUnassignedTimeInMillis getUnassignedTimeInNanos
getMessage
getFailure
getDetails ?
, failure ? $com/groupbyinc/flux/ExceptionsHelper ? detailedMessage )(Ljava/lang/Throwable;)Ljava/lang/String; ? ?
? ? getLastAllocationStatus G()Lcom/groupbyinc/flux/cluster/routing/UnassignedInfo$AllocationStatus; getRemainingDelay 2(JLcom/groupbyinc/flux/common/settings/Settings;)J % & get B(Lcom/groupbyinc/flux/common/settings/Settings;)Ljava/lang/Object;
)com/groupbyinc/flux/common/unit/TimeValue nanos
B
o R java/lang/Math max (JJ)J
nanoTimeNow
indexSettings .Lcom/groupbyinc/flux/common/settings/Settings; delayTimeoutNanos getNumberOfDelayedUnassigned -(Lcom/groupbyinc/flux/cluster/ClusterState;)I (com/groupbyinc/flux/cluster/ClusterState routingTable 4()Lcom/groupbyinc/flux/cluster/routing/RoutingTable;
5com/groupbyinc/flux/cluster/routing/ShardRoutingState
UNASSIGNED 7Lcom/groupbyinc/flux/cluster/routing/ShardRoutingState;"# !$ 0com/groupbyinc/flux/cluster/routing/RoutingTable& shardsWithState I(Lcom/groupbyinc/flux/cluster/routing/ShardRoutingState;)Ljava/util/List;()
'* java/util/List, iterator ()Ljava/util/Iterator;./-0 java/util/Iterator2 hasNext4 ?35 next ()Ljava/lang/Object;7839 0com/groupbyinc/flux/cluster/routing/ShardRouting; unassignedInfo 6()Lcom/groupbyinc/flux/cluster/routing/UnassignedInfo;=>
<? ? ?
A shard 2Lcom/groupbyinc/flux/cluster/routing/ShardRouting; state *Lcom/groupbyinc/flux/cluster/ClusterState; count findNextDelayedAllocation .(JLcom/groupbyinc/flux/cluster/ClusterState;)J metaData 1()Lcom/groupbyinc/flux/cluster/metadata/MetaData;JK
L??????? -com/groupbyinc/flux/cluster/metadata/MetaDataP index #()Lcom/groupbyinc/flux/index/Index;RS
<T W(Lcom/groupbyinc/flux/index/Index;)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;RV
QW 2com/groupbyinc/flux/cluster/metadata/IndexMetaDataY getSettings 0()Lcom/groupbyinc/flux/common/settings/Settings;[\
Z]
_???????? newComputedLeftDelayNanos currentNanoTime /Lcom/groupbyinc/flux/cluster/metadata/MetaData; 2Lcom/groupbyinc/flux/cluster/routing/RoutingTable; nextDelayNanos shortSummary [reason=i ]k , at[m # $ o 7com/groupbyinc/flux/common/joda/FormatDateTimeFormatterq printer A()Lcom/groupbyinc/flux/common/joda/time/format/DateTimeFormatter;st
ru =com/groupbyinc/flux/common/joda/time/format/DateTimeFormatterw print (J)Ljava/lang/String;yz
x{ , failed_attempts[}
, delayed= (Z)Ljava/lang/StringBuilder; u?
q? ? ?
?
, details[? , allocation_status[? value? ?
? sb Ljava/lang/StringBuilder; details unassigned_info[?h ?
?
toXContent ?(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; unassigned_info? 3com/groupbyinc/flux/common/xcontent/XContentBuilder? startObject I(Ljava/lang/String;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;??
?? ( field [(Ljava/lang/String;Ljava/lang/Object;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;??
?? at? [(Ljava/lang/String;Ljava/lang/String;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;??
?? failed_attempts? J(Ljava/lang/String;I)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;??
?? - J(Ljava/lang/String;Z)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;??
??? allocation_status? endObject 7()Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;??
?? builder 5Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; params 7Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params; equals (Ljava/lang/Object;)Z getClass ()Ljava/lang/Class;??
???
>?
? o Ljava/lang/Object; that hashCode? ?
? java/lang/Boolean? (Z)I??
?? java/lang/Integer? (I)I??
?? java/lang/Long? (J)I??
??
>?
?
? result lambda$static$1 ?(Ljava/lang/String;)Lcom/groupbyinc/flux/common/unit/TimeValue; *index.unassigned.node_left.delayed_timeout? parseTimeValue Q(Ljava/lang/String;Ljava/lang/String;)Lcom/groupbyinc/flux/common/unit/TimeValue;??
? getNanos? B
? ! " ? pNegative values for index.unassigned.node_left.delayed_timeout [{}] are deprecated and should now be set to "0".? 4com/groupbyinc/flux/common/logging/DeprecationLogger?
deprecated ((Ljava/lang/String;[Ljava/lang/Object;)V??
?? s parsedValue +Lcom/groupbyinc/flux/common/unit/TimeValue; lambda$static$0 B(Lcom/groupbyinc/flux/common/settings/Settings;)Ljava/lang/String; timeValueMinutes .(J)Lcom/groupbyinc/flux/common/unit/TimeValue;??
? getStringRep? ?
? java/lang/Class desiredAssertionStatus ?
*com/groupbyinc/flux/common/logging/Loggers getLogger 4(Ljava/lang/Class;)Lorg/apache/logging/log4j/Logger;
$(Lorg/apache/logging/log4j/Logger;)V 8
? dateOptionalTime $com/groupbyinc/flux/common/joda/Joda
forPattern M(Ljava/lang/String;)Lcom/groupbyinc/flux/common/joda/FormatDateTimeFormatter;
"java/lang/invoke/LambdaMetafactory 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;
W??
? apply ()Ljava/util/function/Function;"# $??
&'? $ Dynamic 6Lcom/groupbyinc/flux/common/settings/Setting$Property;+, -
IndexScope/, 0 ?(Ljava/lang/String;Ljava/util/function/Function;Ljava/util/function/Function;[Lcom/groupbyinc/flux/common/settings/Setting$Property;)V 82
3 Signature Code LocalVariableTable LineNumberTable
StackMapTable "RuntimeVisibleParameterAnnotations
Exceptions RuntimeVisibleAnnotations BootstrapMethods
SourceFile InnerClasses 1 ! " # $ % &