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

com.groupbyinc.flux.index.IndexService.class Maven / Gradle / Ivy

There is a newer version: 59
Show newest version
????3?&com/groupbyinc/flux/index/IndexService?Lcom/groupbyinc/flux/index/AbstractIndexComponent;Lcom/groupbyinc/flux/index/IndexComponent;Ljava/lang/Iterable;0com/groupbyinc/flux/index/AbstractIndexComponent(com/groupbyinc/flux/index/IndexComponentjava/lang/IterableIndexService.java=com/groupbyinc/flux/index/IndexService$FieldDataCacheListenerFieldDataCacheListener:com/groupbyinc/flux/index/IndexService$BitsetCacheListenerBitsetCacheListener9com/groupbyinc/flux/index/IndexService$StoreCloseListenerStoreCloseListener=com/groupbyinc/flux/index/IndexService$IndexShardInjectorPairIndexShardInjectorPair(com/groupbyinc/flux/index/IndexService$2(com/groupbyinc/flux/index/IndexService$1@com/groupbyinc/flux/index/fielddata/IndexFieldDataCache$Listener7com/groupbyinc/flux/index/fielddata/IndexFieldDataCacheListenerAcom/groupbyinc/flux/index/cache/bitset/BitsetFilterCache$Listener 8com/groupbyinc/flux/index/cache/bitset/BitsetFilterCache"-com/groupbyinc/flux/index/store/Store$OnClose$%com/groupbyinc/flux/index/store/Store&OnCloseinjector,Lcom/groupbyinc/flux/common/inject/Injector;pluginsService,Lcom/groupbyinc/flux/plugins/PluginsService;indicesLifecycle6Lcom/groupbyinc/flux/indices/InternalIndicesLifecycle;analysisService4Lcom/groupbyinc/flux/index/analysis/AnalysisService;
mapperService0Lcom/groupbyinc/flux/index/mapper/MapperService;queryParserService9Lcom/groupbyinc/flux/index/query/IndexQueryParserService;similarityService8Lcom/groupbyinc/flux/index/similarity/SimilarityService;aliasesService7Lcom/groupbyinc/flux/index/aliases/IndexAliasesService;
indexCache,Lcom/groupbyinc/flux/index/cache/IndexCache;indexFieldData;Lcom/groupbyinc/flux/index/fielddata/IndexFieldDataService;bitsetFilterCache:Lcom/groupbyinc/flux/index/cache/bitset/BitsetFilterCache;settingsService9Lcom/groupbyinc/flux/index/settings/IndexSettingsService;nodeEnv)Lcom/groupbyinc/flux/env/NodeEnvironment;indicesServices,Lcom/groupbyinc/flux/indices/IndicesService;shards?Lcom/groupbyinc/flux/common/google/common/collect/ImmutableMap;?Lcom/groupbyinc/flux/common/google/common/collect/ImmutableMap;closed+Ljava/util/concurrent/atomic/AtomicBoolean;deleted?(Lcom/groupbyinc/flux/common/inject/Injector;Lcom/groupbyinc/flux/index/Index;Lcom/groupbyinc/flux/env/NodeEnvironment;Lcom/groupbyinc/flux/index/analysis/AnalysisService;Lcom/groupbyinc/flux/index/mapper/MapperService;Lcom/groupbyinc/flux/index/query/IndexQueryParserService;Lcom/groupbyinc/flux/index/similarity/SimilarityService;Lcom/groupbyinc/flux/index/aliases/IndexAliasesService;Lcom/groupbyinc/flux/index/cache/IndexCache;Lcom/groupbyinc/flux/index/settings/IndexSettingsService;Lcom/groupbyinc/flux/index/fielddata/IndexFieldDataService;Lcom/groupbyinc/flux/index/cache/bitset/BitsetFilterCache;Lcom/groupbyinc/flux/indices/IndicesService;)V*Lcom/groupbyinc/flux/common/inject/Inject;7com/groupbyinc/flux/index/settings/IndexSettingsServiceNgetSettings0()Lcom/groupbyinc/flux/common/settings/Settings;PQ
ORR(Lcom/groupbyinc/flux/index/Index;Lcom/groupbyinc/flux/common/settings/Settings;)VKT
U=com/groupbyinc/flux/common/google/common/collect/ImmutableMapWofA()Lcom/groupbyinc/flux/common/google/common/collect/ImmutableMap;YZ
X[EF	])java/util/concurrent/atomic/AtomicBoolean_(Z)VKa
`bHI	dJI	f)*	h/0	j12	l34	n56	p78	r9:	t;<	v?@	x=>	z*com/groupbyinc/flux/plugins/PluginsService|*com/groupbyinc/flux/common/inject/Injector~getInstance%(Ljava/lang/Class;)Ljava/lang/Object;???+,	?CD	?,com/groupbyinc/flux/indices/IndicesLifecycle?4com/groupbyinc/flux/indices/InternalIndicesLifecycle?-.	?S(Lcom/groupbyinc/flux/index/IndexService;Lcom/groupbyinc/flux/index/IndexService;)VK?
?9com/groupbyinc/flux/index/fielddata/IndexFieldDataService?setListenerE(Lcom/groupbyinc/flux/index/fielddata/IndexFieldDataCache$Listener;)V??
??U(Lcom/groupbyinc/flux/index/IndexService;Lcom/groupbyinc/flux/index/IndexService$1;)VK?
?F(Lcom/groupbyinc/flux/index/cache/bitset/BitsetFilterCache$Listener;)V??
#?AB	?this(Lcom/groupbyinc/flux/index/IndexService;index!Lcom/groupbyinc/flux/index/Index;bitSetFilterCachenumberOfShards()Isize??
X?8()Lcom/groupbyinc/flux/indices/InternalIndicesLifecycle;iterator()Ljava/util/Iterator;valuesH()Lcom/groupbyinc/flux/common/google/common/collect/ImmutableCollection;??
X?Dcom/groupbyinc/flux/common/google/common/collect/ImmutableCollection?I()Lcom/groupbyinc/flux/common/google/common/collect/UnmodifiableIterator;??
??+(Lcom/groupbyinc/flux/index/IndexService;)VK?
?:com/groupbyinc/flux/common/google/common/collect/Iterators?	transformb(Ljava/util/Iterator;Lcom/groupbyinc/flux/common/google/common/base/Function;)Ljava/util/Iterator;??
??hasShard(I)Zjava/lang/Integer?valueOf(I)Ljava/lang/Integer;??
??containsKey(Ljava/lang/Object;)Z??
X?shardIdIshard/(I)Lcom/groupbyinc/flux/index/shard/IndexShard;%Lcom/groupbyinc/flux/common/Nullable;get&(Ljava/lang/Object;)Ljava/lang/Object;??
X?
getIndexShard.()Lcom/groupbyinc/flux/index/shard/IndexShard;??
?indexShardInjectorPair?Lcom/groupbyinc/flux/index/IndexService$IndexShardInjectorPair;	shardSafe??
?6com/groupbyinc/flux/index/shard/ShardNotFoundException?'com/groupbyinc/flux/index/shard/ShardId???	?%(Lcom/groupbyinc/flux/index/Index;I)VK?
??,(Lcom/groupbyinc/flux/index/shard/ShardId;)VK?
??*com/groupbyinc/flux/index/shard/IndexShard?
indexShard,Lcom/groupbyinc/flux/index/shard/IndexShard;shardIds()Ljava/util/Set;keySetA()Lcom/groupbyinc/flux/common/google/common/collect/ImmutableSet;??
X?.()Lcom/groupbyinc/flux/common/inject/Injector;;()Lcom/groupbyinc/flux/index/settings/IndexSettingsService;cache.()Lcom/groupbyinc/flux/index/cache/IndexCache;	fieldData=()Lcom/groupbyinc/flux/index/fielddata/IndexFieldDataService;<()Lcom/groupbyinc/flux/index/cache/bitset/BitsetFilterCache;6()Lcom/groupbyinc/flux/index/analysis/AnalysisService;2()Lcom/groupbyinc/flux/index/mapper/MapperService;;()Lcom/groupbyinc/flux/index/query/IndexQueryParserService;:()Lcom/groupbyinc/flux/index/similarity/SimilarityService;9()Lcom/groupbyinc/flux/index/aliases/IndexAliasesService;close(Ljava/lang/String;Z)Vjava/lang/Throwable
compareAndSet(ZZ)Z
`??

java/util/Set??	
java/util/IteratorhasNext()Z
next()Ljava/lang/Object;
intValue?
?removeShard(ILjava/lang/String;)V
java/lang/Stringlogger-Lcom/groupbyinc/flux/common/logging/ESLogger; 	!failed to close shard#java/lang/Object%+com/groupbyinc/flux/common/logging/ESLogger'warn=(Ljava/lang/String;Ljava/lang/Throwable;[Ljava/lang/Object;)V)*(+tLjava/lang/Throwable;$Ljava/util/Set;Ljava/util/Set;reasonLjava/lang/String;deleteZshardInjectorSafe/(I)Lcom/groupbyinc/flux/common/inject/Injector;getInjector7?
8	indexUUID()Ljava/lang/String;
indexSettings<Q
=
index.uuid?_na_A,com/groupbyinc/flux/common/settings/SettingsC8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;?E
DFgetAvgShardSizeInBytes()Jjava/io/IOExceptionJ

store)()Lcom/groupbyinc/flux/index/store/Store;MN
?Ostats.()Lcom/groupbyinc/flux/index/store/StoreStats;QR
'S*com/groupbyinc/flux/index/store/StoreStatsUsizeInBytesWI
VX????????sumJcountcreateShard`(Lcom/groupbyinc/flux/cluster/routing/ShardRouting;)Lcom/groupbyinc/flux/index/shard/IndexShard;java/lang/IllegalStateExceptiona3com/groupbyinc/flux/common/inject/CreationExceptionc0com/groupbyinc/flux/cluster/routing/ShardRoutingeprimaryg
fh+()Lcom/groupbyinc/flux/index/shard/ShardId;?j
fk?
`mjava/lang/StringBuildero()VKq
prCan't create shard tappend-(Ljava/lang/String;)Ljava/lang/StringBuilder;vw
px-(Ljava/lang/Object;)Ljava/lang/StringBuilder;vz
p{, closed}toString;
p?(Ljava/lang/String;)VK?
b?java/util/concurrent/TimeUnit?SECONDSLjava/util/concurrent/TimeUnit;??	??toMillis(J)J??
??'com/groupbyinc/flux/env/NodeEnvironment?	shardLockO(Lcom/groupbyinc/flux/index/shard/ShardId;J)Lcom/groupbyinc/flux/env/ShardLock;??
??beforeIndexShardCreatedZ(Lcom/groupbyinc/flux/index/shard/ShardId;Lcom/groupbyinc/flux/common/settings/Settings;)V??
??)com/groupbyinc/flux/index/shard/ShardPath?
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;??
??!com/groupbyinc/flux/env/ShardLock?7{} failed to load shard path, trying to remove leftover?((Ljava/lang/String;[Ljava/lang/Object;)V)?(?deleteLeftoverShardDirectory?(Lcom/groupbyinc/flux/common/logging/ESLogger;Lcom/groupbyinc/flux/env/NodeEnvironment;Lcom/groupbyinc/flux/env/ShardLock;Lcom/groupbyinc/flux/common/settings/Settings;)V??
??
addSuppressed(Ljava/lang/Throwable;)V??
?java/util/HashMap?
?r
java/util/Map?	shardPath-()Lcom/groupbyinc/flux/index/shard/ShardPath;??
??getRootStatePath()Ljava/nio/file/Path;??
????java/nio/file/Path?put8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;????getExpectedShardSize?I
f?HI
?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;??
??!{} creating using a new path [{}]?debug??(?'{} creating using an existing path [{}]?id??
??:com/groupbyinc/flux/index/IndexShardAlreadyExistsException? already exists?
??creating shard_id {}?2com/groupbyinc/flux/cluster/metadata/IndexMetaData?isOnSharedFilesystem1(Lcom/groupbyinc/flux/common/settings/Settings;)Z??
??0com/groupbyinc/flux/common/inject/ModulesBuilder?
?rshardModulesF(Lcom/groupbyinc/flux/common/settings/Settings;)Ljava/util/Collection;??
}?java/util/Collection??
(com/groupbyinc/flux/common/inject/Module?add_([Lcom/groupbyinc/flux/common/inject/Module;)Lcom/groupbyinc/flux/common/inject/ModulesBuilder;??
??0com/groupbyinc/flux/index/shard/IndexShardModule?[(Lcom/groupbyinc/flux/index/shard/ShardId;ZLcom/groupbyinc/flux/common/settings/Settings;)VK?
??+com/groupbyinc/flux/index/store/StoreModule?*com/groupbyinc/flux/index/store/IndexStore?shardDirectory()Ljava/lang/Class;??
??java/io/CloseableT(Lcom/groupbyinc/flux/index/IndexService;Lcom/groupbyinc/flux/index/shard/ShardId;)VK
i(Lcom/groupbyinc/flux/index/IndexService;Lcom/groupbyinc/flux/index/shard/ShardId;Z[Ljava/io/Closeable;)VK
?(Ljava/lang/Class;Lcom/groupbyinc/flux/env/ShardLock;Lcom/groupbyinc/flux/index/store/Store$OnClose;Lcom/groupbyinc/flux/index/shard/ShardPath;)VK	
?
=com/groupbyinc/flux/index/deletionpolicy/DeletionPolicyModule

rprocessModules(Ljava/lang/Iterable;)V
}createChildInjectorZ(Lcom/groupbyinc/flux/common/inject/Injector;)Lcom/groupbyinc/flux/common/inject/Injector;
?*com/groupbyinc/flux/ElasticsearchExceptionfailed to create shard+com/groupbyinc/flux/common/inject/InjectorsgetFirstErrorFailureL(Lcom/groupbyinc/flux/common/inject/CreationException;)Ljava/lang/Throwable;
K*
!setShard#?
$
shard created&indexShardStateChangedr(Lcom/groupbyinc/flux/index/shard/IndexShard;Lcom/groupbyinc/flux/index/shard/IndexShardState;Ljava/lang/String;)V()
?*afterIndexShardCreated/(Lcom/groupbyinc/flux/index/shard/IndexShard;)V,-
?.updateRoutingEntry6(Lcom/groupbyinc/flux/cluster/routing/ShardRouting;Z)V01
?2-com/groupbyinc/flux/common/collect/MapBuilder4
newMapBuilder@(Ljava/util/Map;)Lcom/groupbyinc/flux/common/collect/MapBuilder;67
58[(Lcom/groupbyinc/flux/index/shard/IndexShard;Lcom/groupbyinc/flux/common/inject/Injector;)VK:
;U(Ljava/lang/Object;Ljava/lang/Object;)Lcom/groupbyinc/flux/common/collect/MapBuilder;?=
5>immutableMap@Z
5A5com/groupbyinc/flux/common/apache/lucene/util/IOUtilsCcloseWhileHandlingException([Ljava/io/Closeable;)VEF
DGinitialization failedIcloseShardInjector?(Ljava/lang/String;Lcom/groupbyinc/flux/index/shard/ShardId;Lcom/groupbyinc/flux/common/inject/Injector;Lcom/groupbyinc/flux/index/shard/IndexShard;)VKL
Mpath+Lcom/groupbyinc/flux/index/shard/ShardPath;ex!Ljava/lang/IllegalStateException;dataPathLjava/nio/file/Path;curCountLjava/lang/Integer;dataPathToShardCount8Ljava/util/Map;Ljava/util/Map;pluginModule*Lcom/groupbyinc/flux/common/inject/Module;,Lcom/groupbyinc/flux/ElasticsearchException;e5Lcom/groupbyinc/flux/common/inject/CreationException;canDeleteShardContentmodules2Lcom/groupbyinc/flux/common/inject/ModulesBuilder;Ljava/io/IOException;routing2Lcom/groupbyinc/flux/cluster/routing/ShardRouting;.Lcom/groupbyinc/flux/common/settings/Settings;)Lcom/groupbyinc/flux/index/shard/ShardId;lock#Lcom/groupbyinc/flux/env/ShardLock;success
shardInjector[{}] closing... (reason: [{}])k5com/groupbyinc/flux/common/google/common/collect/Mapsm
newHashMap$(Ljava/util/Map;)Ljava/util/HashMap;op
nqremoves?
?tcopyOfP(Ljava/util/Map;)Lcom/groupbyinc/flux/common/google/common/collect/ImmutableMap;vw
Xx[{}] closed (reason: [{}])zsIdtmpShardsMapgLjava/util/HashMap;Ljava/util/HashMap;beforeIndexShardClosed?(Lcom/groupbyinc/flux/index/shard/ShardId;Lcom/groupbyinc/flux/index/shard/IndexShard;Lcom/groupbyinc/flux/common/settings/Settings;)V??
??
shardServices()Ljava/util/Collection;??
}?java/lang/Class??q?.[{}] failed to clean plugin shard service [{}]??*(?2com/groupbyinc/flux/index/translog/TranslogService?closeInjectorOptionalResourcei(Lcom/groupbyinc/flux/index/shard/ShardId;Lcom/groupbyinc/flux/common/inject/Injector;Ljava/lang/Class;)Z??
???
?? [{}] failed to close index shard?4com/groupbyinc/flux/index/shard/StoreRecoveryService?closeInjectorResourcej(Lcom/groupbyinc/flux/index/shard/ShardId;Lcom/groupbyinc/flux/common/inject/Injector;[Ljava/lang/Class;)V??
?afterIndexShardClosed??
??
'?:[{}] failed to close store on shard removal (reason: [{}])?	closeable'Ljava/lang/Class<+Ljava/io/Closeable;>;Ljava/lang/Class;flushEngine[Ljava/lang/Class;?1[{}] no instance available for [{}], ignoring... ?
getSimpleName?;
??toClose([Ljava/lang/Class<+Ljava/io/Closeable;>;?F
D?{} failed to close {}?"com/groupbyinc/flux/common/Strings?toUnderscoreCase&(Ljava/lang/String;)Ljava/lang/String;??
??instanceLjava/io/Closeable;onShardClose'(Lcom/groupbyinc/flux/env/ShardLock;Z)V
getShardId?j
??beforeIndexShardDeleted??
??delete index?*com/groupbyinc/flux/indices/IndicesService?deleteShardStoref(Ljava/lang/String;Lcom/groupbyinc/flux/env/ShardLock;Lcom/groupbyinc/flux/common/settings/Settings;)V??
??afterIndexShardDeleted??
??addPendingDelete??
??7[{}] failed to delete shard content - scheduled a retry?	ownsShard
access$100V(Lcom/groupbyinc/flux/index/IndexService;)Lcom/groupbyinc/flux/common/inject/Injector;x0
access$200O(Lcom/groupbyinc/flux/index/IndexService;Lcom/groupbyinc/flux/env/ShardLock;Z)V??
?x1x2	SignatureCodeLocalVariableTableLineNumberTableRuntimeVisibleAnnotationsD()Ljava/util/Iterator;
StackMapTable&()Ljava/util/Set;LocalVariableTypeTable
Exceptions?(Lcom/groupbyinc/flux/index/shard/ShardId;Lcom/groupbyinc/flux/common/inject/Injector;[Ljava/lang/Class<+Ljava/io/Closeable;>;)V(Lcom/groupbyinc/flux/index/shard/ShardId;Lcom/groupbyinc/flux/common/inject/Injector;Ljava/lang/Class<+Ljava/io/Closeable;>;)Z
SourceFileInnerClasses!	)*+,-./0123456789:;<=>?@ABCDBEF?GHIJIKL???*,
?S?V*?\?^*?`Y?c?e*?`Y?c?g*+?i*?k*?m*?o*?q*?s*	?u*?w*
?y*?{*+}???}??*
??*+????????Y**?????Y*????*-?????????)*????AB?/0?12?34?56?78?9:	??@
?;<??>?CD
?V?
i}~)?.?4?:?@?F?L?R?X?^?d?s?y??????????M???2*?^????????-??/*???????????@*?^?????Y*???????????????@*?^?Ŷɬ??????????r*?^?Ŷ??M,?,?ְ?? ??????????????????x *??M,???Y??Y*?????,??  ?? ???????
????????2*?^?????????)??/*?i?????????/*?y?????????/*?u?????????/*?w??????=??/*?{??????/??/*?k??????1??/*?m??????3??/*?o??????5??/*?q??????7??/*?s??????!???'^*?e??T*?g?W*?N-?:??3????6*+??:*?"$?&?,??ɱ<CF?>H-.<??B?0^??^12^34?B?/?*
????<?C?F?H?Z]?)?#	
?"	
??56??,*?^?Ŷ??M,???Y??Y*?????,?9?? ,??,?????	
'??':;?8*?>@B?G?????HI??A	@>*?L:??#???:?P?T?Ya@?????Z??m??* ??A???\]=^??&	 .148<??

?)?K!_`???+?i=*?>N+?l:*?e?n?&?bY?pY?su?y?|~?y?????:6:*?????????:*??-??*?"*??-??:?G:	*?"??&YS??*?"*??-??*?"*??-??:?:

	??
?????Y??:	*?L:

??I
???:????:	????:

?	??:
	
?`?Ź?W???*??-+??Z??
*?ȧ+??	??:*?"??&YSYS???*?"??&YSYS??*?^?ָŶə ??Y?pY?s?|ڶy???ۿ*?"??&YS??-???-???6	??Y??:
*??-???:??!???:
??YS??W???
??Y??Y-??S??W
??Y??Y*?i???????Y*	?Y?Y*?S??S??W
??Y?
Y?S??W*??
?
*?i?:?B:?Y? ?&?":?%?:?Y?&?":?%?????:*??'?+*???/+?3**?^?9?ָŻY?O#$
%+,=.@/C0F2Z3d6t@w7y8?:?;???<?=?>?B?G?H?I?J?KLNOPCR]S`TzW?X?[?]?^?_?abcd/evl?n?q?z?r?s?t?u?v?w?x?y?|?}?~??/?2?6?;?G?L?Z?g?j?l?~????????????????e?=D??9fD??b?7
fD??b?	fD?????
?8????
fD?????
fD??????D?
fD??????D?#.&@??
?'??d`?????fD??K]?2fD??!?G???Y*????N*?^?Ŷɚ?*?"l?&Y??SY,S??*?^?r:?Ŷu?:??:?9:*?y?^*,-?N*?"{?&Y??SY,S????R???????12
~|f\/j*U6??@K}N=???@K}~?2?
???7?@?N?U?\?e?o??????KL?
,??6*?>:*??,??*??????:??F???:-??????$:	*?"?	?&Y??SYS?????*,-???W?E*?g?n?*?e?n??6+???:*?"??&Y??S??*,-??Y?S??*??,????:
*??????:??F???:-??????$:
*?"?
?&Y??SYS?????*,-???W?E*?g?n?*?e?n??6+???:*?"??&Y??S??*,-??Y?S??*??,??
?-'???'???\:*?"??&Y??SY+S?,?9:-'???'???#:*?"??&Y??SY+S?,??
<LO????	Oru????????????????Q].	<4????4?].].
	4??j?4w].?].?].??12|fj*????<e?<4??	4????.????<?L?O?Q?p?s?}???????????????????	????=?@?J?O?j?r?u?w??????????????????????????????&D
?(	??D
?? ?&@L^???D
?(
??D
?? ?&@L???DPb???D???D?????G-:?66?72:*+,???*?"??&Y+SY??S?????ȱ?4'??G??G?fGj*G???'??G?????$?@?F????4??????F,-???:???YS???%:*?"??&Y+SY-????S???""?>??$ -.F??F?fFj*F???F???"?????"?$?D??????!?????J?*?g?n??*?>N?G*??+??-??*???+-??*??+??-?ѧ :*???+-??*??+??-????0:*??+??-??*?"??&Y+?öָ?S???::<:WZK?4\+]bx<e????gh??4?:?
????+?7?:?H?W?Z?\?h?????:?DBK?,<Q?2*?y?S????????/*?i?????L???E*+?ޱ? ???h?4?L??
?J	

	!#	%'(	




© 2015 - 2025 Weber Informatics LLC | Privacy Policy