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: 59
Show newest version
????3?)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;	indexUUIDshardId)Lcom/groupbyinc/flux/index/shard/ShardId;shardStatePathisCustomDataPathZ$assertionsDisabledg(ZLjava/nio/file/Path;Ljava/nio/file/Path;Ljava/lang/String;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./
-0java/lang/Integer2(I)Ljava/lang/String;(4
35java/lang/String7equals(Ljava/lang/Object;)Z9:
8;java/lang/AssertionError=java/lang/StringBuilder?
@0dataPath must end with the shard ID but didn't: Bappend-(Ljava/lang/String;)Ljava/lang/StringBuilder;DE
@F
@*(Ljava/lang/Object;)VI
>J6shardStatePath must end with the shard ID but didn't: L	getParentN%#OgetIndexQ)
-R1dataPath must end with index/shardID but didn't: T7shardStatePath must end with index/shardID but didn't: V#;"java/lang/IllegalArgumentExceptionYPshard state path must be different to the data path when using custom data paths[(Ljava/lang/String;)V]
Z^	`	b	d	f	hthis+Lcom/groupbyinc/flux/index/shard/ShardPath;dataPathresolveTranslogresolve((Ljava/lang/String;)Ljava/nio/file/Path;no#presolveIndexgetDataPathexists()Zjava/nio/file/LinkOptionvjava/nio/file/Filesx2(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Ztz
y{getIndexUUID
getShardId+()Lcom/groupbyinc/flux/index/shard/ShardId;getShardStatePathgetRootDataPaths%
?noIndexShardIdgetRootStatePath?%
?
loadShardPath?(Lcom/groupbyinc/flux/common/logging/ESLogger;Lcom/groupbyinc/flux/env/NodeEnvironment;Lcom/groupbyinc/flux/index/shard/ShardId;Lcom/groupbyinc/flux/common/settings/Settings;)Lcom/groupbyinc/flux/index/shard/ShardPath;java/io/IOException?
index.uuid?_na_?,com/groupbyinc/flux/common/settings/Settings?get8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;??
??availableShardPaths@(Lcom/groupbyinc/flux/index/shard/ShardId;)[Ljava/nio/file/Path;??
	?+com/groupbyinc/flux/common/logging/ESLogger?[Ljava/nio/file/Path;?2com/groupbyinc/flux/index/shard/ShardStateMetaData?FORMAT1Lcom/groupbyinc/flux/gateway/MetaDataStateFormat;??	??/com/groupbyinc/flux/gateway/MetaDataStateFormat?loadLatestStateV(Lcom/groupbyinc/flux/common/logging/ESLogger;[Ljava/nio/file/Path;)Ljava/lang/Object;??
??	?d?{} 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?warn((Ljava/lang/String;[Ljava/lang/Object;)V????java/lang/IllegalStateException?-(Ljava/lang/Object;)Ljava/lang/StringBuilder;D?
@?  index UUID in shard state was: ? expected: ? on shard path: ?
?^  more than one shard state found?hasCustomDataPath1(Lcom/groupbyinc/flux/common/settings/Settings;)Z??
	?resolveCustomLocationm(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/index/shard/ShardId;)Ljava/nio/file/Path;??
	?){} loaded data path [{}], state path [{}]?debug????
?load4Lcom/groupbyinc/flux/index/shard/ShardStateMetaData;	statePathlogger-Lcom/groupbyinc/flux/common/logging/ESLogger;env)Lcom/groupbyinc/flux/env/NodeEnvironment;
indexSettings.Lcom/groupbyinc/flux/common/settings/Settings;paths
loadedPathdeleteLeftoverShardDirectory?(Lcom/groupbyinc/flux/common/logging/ESLogger;Lcom/groupbyinc/flux/env/NodeEnvironment;Lcom/groupbyinc/flux/env/ShardLock;Lcom/groupbyinc/flux/common/settings/Settings;)V!com/groupbyinc/flux/env/ShardLock?~
??D{} deleting leftover shard on path: [{}] with a different index UUID?isDirectory?z
y? is not a directory?acquireFSLockForPathsF(Lcom/groupbyinc/flux/common/settings/Settings;[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;getEstimatedReservedBytesO(Lcom/groupbyinc/flux/env/NodeEnvironment;JLjava/lang/Iterable;)Ljava/util/Map;	nodePaths5()[Lcom/groupbyinc/flux/env/NodeEnvironment$NodePath;??
	?java/lang/Iterable?3[Lcom/groupbyinc/flux/env/NodeEnvironment$NodePath;?	fileStoreLjava/nio/file/FileStore;??	?java/nio/file/FileStoregetUsableSpace()J
@4java/lang/Mathmax(JJ)J

	java/util/HashMap
iterator()Ljava/util/Iterator;?
java/util/Mapjava/util/IteratorhasNextunext()Ljava/lang/Object;*com/groupbyinc/flux/index/shard/IndexShard 	shardPath-()Lcom/groupbyinc/flux/index/shard/ShardPath;"#
!$shardStatePathToDataPath*(Ljava/nio/file/Path;)Ljava/nio/file/Path;&'
	(&(Ljava/lang/Object;)Ljava/lang/Object;?*+java/lang/Long-valueOf(J)Ljava/lang/Long;/0
.1	longValue3
.4put8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;678nodePath2Lcom/groupbyinc/flux/env/NodeEnvironment$NodePath;curBytesLjava/lang/Long;shard,Lcom/groupbyinc/flux/index/shard/IndexShard;avgShardSizeInBytesJshardsBLjava/lang/Iterable;Ljava/lang/Iterable;totFreeSpaceestShardSizeInBytes
reservedBytes5Ljava/util/Map;Ljava/util/Map;selectNewPathForShard?(Lcom/groupbyinc/flux/env/NodeEnvironment;Lcom/groupbyinc/flux/index/shard/ShardId;Lcom/groupbyinc/flux/common/settings/Settings;JLjava/util/Map;)Lcom/groupbyinc/flux/index/shard/ShardPath;?(Lcom/groupbyinc/flux/index/shard/ShardId;)Ljava/nio/file/Path;nL
M?	bintValueR/
3SusableBytescountLjava/lang/Integer;bestPathmaxUsableBytesdataPathToShardCount8Ljava/util/Map;getClass()Ljava/lang/Class;\]
^
-;oLjava/lang/Object;hashCodec/#d
8d
-dresultIShardPath{path=j
, indexUUID='l(C)Ljava/lang/StringBuilder;Dn
@o, shard=qjava/lang/ClasstdesiredAssertionStatusvu
uw
ConstantValueCodeLocalVariableTableLineNumberTable
StackMapTable
ExceptionsLocalVariableTypeTable	Signature?(Lcom/groupbyinc/flux/env/NodeEnvironment;JLjava/lang/Iterable;)Ljava/util/Map;?(Lcom/groupbyinc/flux/env/NodeEnvironment;Lcom/groupbyinc/flux/index/shard/ShardId;Lcom/groupbyinc/flux/common/settings/Settings;JLjava/util/Map;)Lcom/groupbyinc/flux/index/shard/ShardPath;
SourceFileInnerClasses1yyz?8*??!?<,?'?+?1?6?Y?@Y?AC?G,?+?G?H?K??!?<-?'?+?1?6?Y?@Y?AM?G,?+?G?H?K??!?>,?P?'?+?S?Y?@Y?AU?G,?+?G?H?K??!?>-?P?'?+?S?Y?@Y?AW?G,?+?G?H?K??,-?X?
?ZY\?_?*?a*,?c*?e*?g*-?i?{>8jk88l888|6
-.C/?0?1235!6&7,8297:}!?C##8->?@?@m%z6*?c?q?{jk|=r%z6*?c?q?{jk|As%z/*?c?{jk|Etuz6*?c?w?|?{jk|I})z/*?e?{jk|M~z/*?g?{jk|Q?%z/*?i?{jk|U?%zk!*???P?PL*?a?+?	+?P?{!jk?|
]^}?#E#?%z>*???P?P?P?{jk|fuz/*?a?{jk|m	??zt)-????:+,??:::?66		??	2:
??*?#Y
S????:?????Y?@Y?A	???G?H?K?-???#Y	S????c?{RCw??
.?	????????????
????|2?
??.?C?H?b?z?????????}/? 	?	??8????#???~?
??z??	7*??:?66?2:		???a7?????o??
7
?Y?:-?:		??M	??!:?%???):

?,?.:?		?2:
?5
a?2?9W????{f

:;	t.l
? <=g;>?????@A?BD?EA@hFA
I_GI?BCI_GH|:???,?2?@?I?g?t???????????}S?	??? ?		??;!#.?		?~???	JKz?,?™*,+??:*??2+?N:??	7*??:

?66?
2:

???a7????!?o??
7*??::
O7:?66?R2:??:?7?Q?,?3:??T?ie7??7:
????
+?N::,????:?Y,??+?Ͱ{?l?=
:;
?;???4UA?#VW?B:;!?EA^|FAdv??gsX;
lnYA????????@A?ZI?l?!???Z[|f????!?=?J?P?^?d?g?l???????????????????????????}??	-??? ?'	-?????	-???3?	-?????	-?##~???9:z?*+??+?*?_+?_??+?M*?g?*?g,?g?`??
,?g??*?e?*?e,?e?]_	?
?
}?c/z?G*?c?*?c?e?<h*?e?
*?e?f?`<h*?g?
*?g?g?`<?{Gjk2hi|-E}-@??V?()zf




© 2015 - 2025 Weber Informatics LLC | Privacy Policy