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: 129
Show newest version
????4m)com/groupbyinc/flux/index/shard/ShardPathjava/lang/ObjectShardPath.java0com/groupbyinc/flux/env/NodeEnvironment$NodePath'com/groupbyinc/flux/env/NodeEnvironmentNodePathINDEX_FOLDER_NAMELjava/lang/String;index
TRANSLOG_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/ShardId+id()I-.
,/java/lang/Integer1(I)Ljava/lang/String;'3
24java/lang/String6equals(Ljava/lang/Object;)Z89
7:java/lang/AssertionError<java/lang/StringBuilder>
?0dataPath must end with the shard ID but didn't: Aappend-(Ljava/lang/String;)Ljava/lang/StringBuilder;CD
?E
?)(Ljava/lang/Object;)VH
=I6shardStatePath must end with the shard ID but didn't: K	getParentM$"NgetIndex#()Lcom/groupbyinc/flux/index/Index;PQ
,Rcom/groupbyinc/flux/index/IndexTgetUUIDV(
UW1dataPath must end with index path id but didn't: Y7shardStatePath must end with index path id but didn't: [":"java/lang/IllegalArgumentException^Pshard state path must be different to the data path when using custom data paths`(Ljava/lang/String;)Vb
_c	e	g	i	kthis+Lcom/groupbyinc/flux/index/shard/ShardPath;dataPathresolveTranslogresolve((Ljava/lang/String;)Ljava/nio/file/Path;qr"sresolveIndexgetDataPathexists()Zjava/nio/file/LinkOptionyjava/nio/file/Files{2(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Zw}
|~
getShardId+()Lcom/groupbyinc/flux/index/shard/ShardId;getShardStatePathgetRootDataPathv$
?noIndexShardIdgetRootStatePath?$
?
loadShardPath?(Lcom/groupbyinc/flux/common/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?
?WavailableShardPaths@(Lcom/groupbyinc/flux/index/shard/ShardId;)[Ljava/nio/file/Path;??
	?6com/groupbyinc/flux/common/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?(Lcom/groupbyinc/flux/common/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;C?
??  index UUID in shard state was: ? expected: ? on shard path: ?
?c  more than one shard state found?hasCustomDataPath?x
??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;	statePathlogger8Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger;env)Lcom/groupbyinc/flux/env/NodeEnvironment;
indexSettings)Lcom/groupbyinc/flux/index/IndexSettings;paths
loadedPathdeleteLeftoverShardDirectory?(Lcom/groupbyinc/flux/common/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??
	?5com/groupbyinc/flux/common/apache/lucene/util/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;q?
?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!
"?	compareTo(Ljava/math/BigInteger;)I&'
(
=	gget&(Ljava/lang/Object;)Ljava/lang/Object;,-.intValue0.
21multiply3
4subtract6
7nodePath2Lcom/groupbyinc/flux/env/NodeEnvironment$NodePath;usableBytescountLjava/lang/Integer;totFreeSpaceestShardSizeInBytesbestPathmaxUsableBytesavgShardSizeInBytesJdataPathToShardCount8Ljava/util/Map;Ljava/util/Map;getClass()Ljava/lang/Class;GH
I
,:oLjava/lang/Object;	shardPathhashCodeO."P
,PresultIShardPath{path=U, shard=W(C)Ljava/lang/StringBuilder;CY
?Zjava/lang/Class]desiredAssertionStatus_x
^`
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;
SourceFileInnerClasses1bbc?8*?? ?<,?&?*?0?5?;?#?=Y??Y?@B?F,?*?F?G?J?? ?<-?&?*?0?5?;?#?=Y??Y?@L?F,?*?F?G?J?? ?A,?O?&?*?S?X?;?#?=Y??Y?@Z?F,?*?F?G?J?? ?A-?O?&?*?S?X?;?#?=Y??Y?@\?F,?*?F?G?J??,-?]?
?_Ya?d?*?f*,?h*?j*-?l?d48mn88o88e2-.C/?0?1
23"5'6,72879f?C"",>?C?Cp$c6*?h?t?dmne<u$c6*?h?t?dmne@v$c/*?h?dmneDwxc6*?h?z??dmneH??c/*?j?dmneL?$c/*?l?dmneP?$ck!*???O?OL*?f?+?	+?O?d!mn?e
XYf?"E"?$c>*???O?O?O?dmneaxc/*?f?dmneh	??cZ-??:+,??:::?66		??	2:
??*???"Y
S????:?????;?R????;?E*?,
????Y??Y?@,????F???F??F?F??F
???G????

:???Y??Y?@,??öF?G????	??O??:-?ƙ+-,??:?:*?,???Y-??,?ҰdzB???*?
?o?o?4???????	?
????eVqr
st*vBwGxaylz?|?}??t????????????????f]?
?	,?7?"???"????"?	?	,?7?"""g?	??c??-??:+,???::?66??2:	??*???"Y	S????:

?k
???;?^?
???;?Q*?,??	??? ?+	?z???=Y??Y?@	???F?G?J?-???"Y	S????j?dRBm??
*?	?????????????????e2???*?B?G?a?o?????????f/?	?	??7????"???g?	??c#%,?ƙ*,+??:*??2+??:???:*??:		?6
6
?"	2:?
???:????!??? ?#:	*??:
:$?:
:

?66?|
2:?
:??:? ???)??=Y?*??+?/?2:?	?2???5?8:?
?)?::????+??::?Y,??+?Ұd?o??9:?e
?[;?1<=?l9:#?>k??	q??
t?@:|?A%??%%??%BC%DFo?h%DEef????#???Q?W?k?q?t?|???????????????????????f?
?	,?	?%?0	,?		?7?*2?	,?		??	,?""g?ij89c?c*+??+?*?J+?J??+?M*?j?*?j,?j?K??
,?j??*?h?*?h,?h?]??
,?h???d cmncLMFNne*
??????<?>?_?a?f	?O.c?/*?h?*?h?Q?<h*?j?
*?j?R?`<?d/mnSTe??-?f@??'(cT*??Y?@V?F*?h??X?F*?j??}?[?G?d*mne?\c4?a??? ?e$f@kl
	
	




© 2015 - 2025 Weber Informatics LLC | Privacy Policy