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

com.groupbyinc.flux.index.shard.ShardPath.class Maven / Gradle / Ivy

There is a newer version: 198
Show newest version
????4?)com/groupbyinc/flux/index/shard/ShardPathjava/lang/ObjectShardPath.java0com/groupbyinc/flux/env/NodeEnvironment$NodePath'com/groupbyinc/flux/env/NodeEnvironmentNodePath%java/lang/invoke/MethodHandles$Lookupjava/lang/invoke/MethodHandles
LookupINDEX_FOLDER_NAMELjava/lang/String;indexTRANSLOG_FOLDER_NAMEtranslogpathLjava/nio/file/Path;shardId)Lcom/groupbyinc/flux/index/shard/ShardId;shardStatePathisCustomDataPathZ$assertionsDisabledU(ZLjava/nio/file/Path;Ljava/nio/file/Path;Lcom/groupbyinc/flux/index/shard/ShardId;)V()V!
"	$java/nio/file/Path&getFileName()Ljava/nio/file/Path;()'*toString()Ljava/lang/String;,-'.'com/groupbyinc/flux/index/shard/ShardId0id()I23
14java/lang/Integer6(I)Ljava/lang/String;,8
79java/lang/String;equals(Ljava/lang/Object;)Z=>
<?java/lang/AssertionErrorAjava/lang/StringBuilderC
D"0dataPath must end with the shard ID but didn't: Fappend-(Ljava/lang/String;)Ljava/lang/StringBuilder;HI
DJ
D.(Ljava/lang/Object;)VM
BN6shardStatePath must end with the shard ID but didn't: P	getParentR)'SgetIndex#()Lcom/groupbyinc/flux/index/Index;UV
1Wcom/groupbyinc/flux/index/IndexYgetUUID[-
Z\1dataPath must end with index path id but didn't: ^7shardStatePath must end with index path id but didn't: `'?"java/lang/IllegalArgumentExceptioncPshard state path must be different to the data path when using custom data pathse(Ljava/lang/String;)Vg
dh	j	l	n	pthis+Lcom/groupbyinc/flux/index/shard/ShardPath;dataPathresolveTranslogresolve((Ljava/lang/String;)Ljava/nio/file/Path;vw'xresolveIndexgetDataPathexists()Zjava/nio/file/LinkOption~java/nio/file/Files?2(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z|?
??
getShardId+()Lcom/groupbyinc/flux/index/shard/ShardId;getShardStatePathgetRootDataPath{)
?noIndexShardIdgetRootStatePath?)
?
loadShardPath?(Lorg/apache/logging/log4j/Logger;Lcom/groupbyinc/flux/env/NodeEnvironment;Lcom/groupbyinc/flux/index/shard/ShardId;Lcom/groupbyinc/flux/index/IndexSettings;)Lcom/groupbyinc/flux/index/shard/ShardPath;java/io/IOException?'com/groupbyinc/flux/index/IndexSettings?
?\availableShardPaths@(Lcom/groupbyinc/flux/index/shard/ShardId;)[Ljava/nio/file/Path;??
	?org/apache/logging/log4j/Logger?[Ljava/nio/file/Path;?2com/groupbyinc/flux/index/shard/ShardStateMetaData?FORMAT1Lcom/groupbyinc/flux/gateway/MetaDataStateFormat;??	??9com/groupbyinc/flux/common/xcontent/NamedXContentRegistry?EMPTY;Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry;??	??/com/groupbyinc/flux/gateway/MetaDataStateFormat?loadLatestState?(Lorg/apache/logging/log4j/Logger;Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry;[Ljava/nio/file/Path;)Ljava/lang/Object;??
??	indexUUID?	??_na_??{} found shard on path: [{}] with a different index UUID - this shard seems to be leftover from a different index with the same name. Remove the leftover shard in order to reuse the path with the current index?warn9(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V????java/lang/IllegalStateException?-(Ljava/lang/Object;)Ljava/lang/StringBuilder;H?
D?  index UUID in shard state was: ? expected: ? on shard path: ?
?h  more than one shard state found?hasCustomDataPath?}
??resolveCustomLocationh(Lcom/groupbyinc/flux/index/IndexSettings;Lcom/groupbyinc/flux/index/shard/ShardId;)Ljava/nio/file/Path;??
	?){} loaded data path [{}], state path [{}]?debugK(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V???? 
?load4Lcom/groupbyinc/flux/index/shard/ShardStateMetaData;	statePathlogger!Lorg/apache/logging/log4j/Logger;env)Lcom/groupbyinc/flux/env/NodeEnvironment;
indexSettings)Lcom/groupbyinc/flux/index/IndexSettings;paths
loadedPathdeleteLeftoverShardDirectory?(Lorg/apache/logging/log4j/Logger;Lcom/groupbyinc/flux/env/NodeEnvironment;Lcom/groupbyinc/flux/env/ShardLock;Lcom/groupbyinc/flux/index/IndexSettings;)V!com/groupbyinc/flux/env/ShardLock???
??D{} deleting leftover shard on path: [{}] with a different index UUID?isDirectory??
?? is not a directory?acquireFSLockForPathsA(Lcom/groupbyinc/flux/index/IndexSettings;[Ljava/nio/file/Path;)V??
	?,com/groupbyinc/flux/core/internal/io/IOUtils?rm([Ljava/nio/file/Path;)V??
??lock#Lcom/groupbyinc/flux/env/ShardLock;selectNewPathForShard?(Lcom/groupbyinc/flux/env/NodeEnvironment;Lcom/groupbyinc/flux/index/shard/ShardId;Lcom/groupbyinc/flux/index/IndexSettings;JLjava/util/Map;)Lcom/groupbyinc/flux/index/shard/ShardPath;	nodePaths5()[Lcom/groupbyinc/flux/env/NodeEnvironment$NodePath;??
	?(Lcom/groupbyinc/flux/index/shard/ShardId;)Ljava/nio/file/Path;v
java/math/BigIntegerZEROLjava/math/BigInteger;		
java/util/Map3[Lcom/groupbyinc/flux/env/NodeEnvironment$NodePath;
	fileStoreLjava/nio/file/FileStore;	java/nio/file/FileStoregetUsableSpace()J
valueOf(J)Ljava/math/BigInteger;
add.(Ljava/math/BigInteger;)Ljava/math/BigInteger;
divide#
$max&
'getPathWithMostFreeSpace](Lcom/groupbyinc/flux/env/NodeEnvironment;)Lcom/groupbyinc/flux/env/NodeEnvironment$NodePath;)*
+getNumberOfShards-3
?.java/lang/Math0floorDiv(II)I23
14shardCountPerPath2(Lcom/groupbyinc/flux/index/Index;)Ljava/util/Map;67
	8java/util/HashMap:(I)V<
;=put8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;?@Ajava/util/ArraysCstream.([Ljava/lang/Object;)Ljava/util/stream/Stream;EF
DG"java/lang/invoke/LambdaMetafactoryImetafactory?(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;KL
JMN>lambda$selectNewPathForShard$0Z(Ljava/util/Map;Ljava/math/BigInteger;Lcom/groupbyinc/flux/env/NodeEnvironment$NodePath;)ZQR
ST5(Lcom/groupbyinc/flux/env/NodeEnvironment$NodePath;)ZVtestE(Ljava/util/Map;Ljava/math/BigInteger;)Ljava/util/function/Predicate;XYZjava/util/stream/Stream\filter9(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;^_]`'(Ljava/lang/Object;Ljava/lang/Object;)Iblambda$selectNewPathForShard$1?(Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Lcom/groupbyinc/flux/env/NodeEnvironment$NodePath;Lcom/groupbyinc/flux/env/NodeEnvironment$NodePath;)Ide
fgg(Lcom/groupbyinc/flux/env/NodeEnvironment$NodePath;Lcom/groupbyinc/flux/env/NodeEnvironment$NodePath;)IicompareE(Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;)Ljava/util/Comparator;klmsorted1(Ljava/util/Comparator;)Ljava/util/stream/Stream;op]q	findFirst()Ljava/util/Optional;st]ujava/util/OptionalworElse&(Ljava/lang/Object;)Ljava/lang/Object;yz
x{nodePath2Lcom/groupbyinc/flux/env/NodeEnvironment$NodePath;usableBytes
shardCountImaxShardsPerPathpathToShardCountSLjava/util/Map;Ljava/util/Map;pathsToSpaceYLjava/util/Map;totFreeSpaceestShardSizeInBytesbestPathavgShardSizeInBytesJdataPathToShardCount8Ljava/util/Map;? usable bytes must be >= 0, got: ?(J)Ljava/lang/StringBuilder;H?
D?maxUsableBytesgetClass()Ljava/lang/Class;??
?
1?oLjava/lang/Object;	shardPathhashCode?3'?
1?resultShardPath{path=?, shard=?(C)Ljava/lang/StringBuilder;H?
D?java/lang/Long?(J)Ljava/lang/Long;?
??getOrDefault?@?	longValue?
??(JJ)Ik?
??	l(I)Ljava/lang/Integer;?
7?intValue?3
7?k3
7?get?z?	compareTo(Ljava/math/BigInteger;)I??
?p1p2cmpsubtract?
?java/lang/Class?desiredAssertionStatus?}
??
ConstantValueCodeLocalVariableTableLineNumberTable
StackMapTable
ExceptionsLocalVariableTypeTable	Signature?(Lcom/groupbyinc/flux/env/NodeEnvironment;Lcom/groupbyinc/flux/index/shard/ShardId;Lcom/groupbyinc/flux/index/IndexSettings;JLjava/util/Map;)Lcom/groupbyinc/flux/index/shard/ShardPath;BootstrapMethods
SourceFileInnerClasses1?? ??8*?#?%?<,?+?/?5?:?@?#?BY?DY?EG?K,?/?K?L?O??%?<-?+?/?5?:?@?#?BY?DY?EQ?K,?/?K?L?O??%?A,?T?+?/?X?]?@?#?BY?DY?E_?K,?/?K?L?O??%?A-?T?+?/?X?]?@?#?BY?DY?Ea?K,?/?K?L?O??,-?b?
?dYf?i?*?k*,?m*?o*-?q??48rs88t88?2/0C1?2?3
45"7'8,92:7;??C''1>?C?Cu)?6*?m?y??rs?>z)?6*?m?y??rs?B{)?/*?m??rs?F|}?6*?m?????rs?J???/*?o??rs?N?)?/*?q??rs?R?)?k!*???T?TL*?k?+?	+?T??!rs??
Z[??'E'?)?>*???T?T?T??rs?c}?/*?k??rs?j	???Z-??:+,??:::?66		??	2:
??*???'Y
S????:?????@?R????@?E*?,
????Y?DY?E,????K???KöK?KŶK
???L?ƿ?

:???Y?DY?E,??ȶK?L?ƿ?	??O??:-?˙+-,??:?:*?,???Y-??,?װ?zB???*?
?t?t?4???????	?
?????Vst
uv*xByGza{l|?~????v?????????????????]?
?	1?<?'???'????'?	?	1?<?'''??	?????-??:+,???::?66??2:	??*???'Y	S????:

?k
???@?^?
???@?Q*?,??	???%?+	????BY?DY?E	???K?L?O?-???'Y	S?????j??RBm??
*?	??????????????????2???*?B?G?a?o??????????/?	?	??<????'?????	?????,?˙*,+??:*?2+?:??
:*?:		?6
6
?"	2:???? :????!?!??%?(:	*?:
*?,:
???,?/6
??5
?p??`6
*+?X?9:?;Y
??>:
:?66?-2:?:??:?BW????
?H	?[?a?n?r?v?|?:+?::?Y,??+?װ??t??}~???}~????????
?{???o??#?k??	q??

w??~?????????????.t*?? ?{???o??????r????#???Q?W?k?q?w?~????????????????????????"?*?.???	?	1??%?A	1??	1??$	1??0?1	1??	1?''????)*?6u*?LM?B+:?66?Y2:?:		?7
?%?'
	?? ?BY?DY?E??K
???L?O?,?

!??	
BM????,??H+B	2;?
$I}~u??p?
n?~j???2????$?+?2?\?gjm?s?)?	?E
????=>??c*+??+?*??+????+?M*?o?*?o,?o????
,?o??*?m?*?m,?m?b??
,?m???? crsc??F?s?*
	

<>_a?	??3??/*?m?*?m???<h*?o?
*?o???`<??/rs???-?@??,-?T*?DY?E??K*?m????K*?o??}???L??*rs?#
de?}*-	????????*	??????????6?P+-???????7??+???????7????6?,???,-?????6??>}??}??}??}?~}?~(U???"?(?-?H?V?[?`?z???z
QR?f*,???+?β
?Ȟ??? ???~???@?!?4?Ԛ??%??&?@?OPUWOchj??	
	




© 2015 - 2024 Weber Informatics LLC | Privacy Policy