
com.groupbyinc.flux.index.store.Store.class Maven / Gradle / Ivy
???? 3? %com/groupbyinc/flux/index/store/Store ;com/groupbyinc/flux/index/shard/AbstractIndexShardComponent java/io/Closeable 5com/groupbyinc/flux/common/util/concurrent/RefCounted
Store.java 5com/groupbyinc/flux/index/store/Store$StoreStatsCache
StoreStatsCache -com/groupbyinc/flux/index/store/Store$OnClose
OnClose 9com/groupbyinc/flux/index/store/Store$VerifyingIndexInput VerifyingIndexInput @com/groupbyinc/flux/index/store/Store$LuceneVerifyingIndexOutput LuceneVerifyingIndexOutput 5com/groupbyinc/flux/index/store/Store$LegacyChecksums LegacyChecksums 2com/groupbyinc/flux/index/store/Store$RecoveryDiff RecoveryDiff 6com/groupbyinc/flux/index/store/Store$MetadataSnapshot MetadataSnapshot 4com/groupbyinc/flux/index/store/Store$StoreDirectory StoreDirectory 'com/groupbyinc/flux/index/store/Store$2 " 'com/groupbyinc/flux/index/store/Store$1 $ java/util/Map$Entry &
java/util/Map ( Entry Ncom/groupbyinc/flux/index/store/LegacyVerification$Adler32VerifyingIndexOutput + 2com/groupbyinc/flux/index/store/LegacyVerification - Adler32VerifyingIndexOutput Mcom/groupbyinc/flux/index/store/LegacyVerification$LengthVerifyingIndexOutput 0 LengthVerifyingIndexOutput :java/util/concurrent/locks/ReentrantReadWriteLock$ReadLock 3 1java/util/concurrent/locks/ReentrantReadWriteLock 5 ReadLock ;java/util/concurrent/locks/ReentrantReadWriteLock$WriteLock 8 WriteLock CODEC Ljava/lang/String; store = VERSION_WRITE_THROWABLE I VERSION_STACK_TRACE
VERSION_START VERSION CORRUPTED
corrupted_ H "INDEX_STORE_STATS_REFRESH_INTERVAL "index.store.stats_refresh_interval K isClosed +Ljava/util/concurrent/atomic/AtomicBoolean; directory 6Lcom/groupbyinc/flux/index/store/Store$StoreDirectory; metadataLock 3Ljava/util/concurrent/locks/ReentrantReadWriteLock; shardLock #Lcom/groupbyinc/flux/env/ShardLock; onClose /Lcom/groupbyinc/flux/index/store/Store$OnClose;
statsCache 3Lcom/groupbyinc/flux/common/util/SingleObjectCache; aLcom/groupbyinc/flux/common/util/SingleObjectCache;
refCounter ?Lcom/groupbyinc/flux/common/util/concurrent/AbstractRefCounted; CHECKSUMS_PREFIX _checksums- ] $assertionsDisabled Z ?(Lcom/groupbyinc/flux/index/shard/ShardId;Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/index/store/DirectoryService;Lcom/groupbyinc/flux/env/ShardLock;)V java/io/IOException c EMPTY e V f ?(Lcom/groupbyinc/flux/index/shard/ShardId;Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/index/store/DirectoryService;Lcom/groupbyinc/flux/env/ShardLock;Lcom/groupbyinc/flux/index/store/Store$OnClose;)V a h
i this 'Lcom/groupbyinc/flux/index/store/Store; shardId )Lcom/groupbyinc/flux/index/shard/ShardId;
indexSettings .Lcom/groupbyinc/flux/common/settings/Settings; directoryService 2Lcom/groupbyinc/flux/index/store/DirectoryService; ?(Lcom/groupbyinc/flux/index/shard/ShardId;Lcom/groupbyinc/flux/index/settings/IndexSettingsService;Lcom/groupbyinc/flux/index/store/DirectoryService;Lcom/groupbyinc/flux/env/ShardLock;Lcom/groupbyinc/flux/index/store/Store$OnClose;)V *Lcom/groupbyinc/flux/common/inject/Inject; 7com/groupbyinc/flux/index/settings/IndexSettingsService u getSettings 0()Lcom/groupbyinc/flux/common/settings/Settings; w x
v y indexSettingsService 9Lcom/groupbyinc/flux/index/settings/IndexSettingsService; Z(Lcom/groupbyinc/flux/index/shard/ShardId;Lcom/groupbyinc/flux/common/settings/Settings;)V a }
~ )java/util/concurrent/atomic/AtomicBoolean ? (Z)V a ?
? ? M N ? ()V a ?
6 ? Q R ? <(Lcom/groupbyinc/flux/index/store/Store;Ljava/lang/String;)V a ?
% ? Z [ ? 0com/groupbyinc/flux/index/store/DirectoryService ? newDirectory <()Lcom/groupbyinc/flux/common/apache/lucene/store/Directory; ? ?
? ? index.store.deletes ? java/lang/String ? *com/groupbyinc/flux/common/logging/Loggers ? getLogger ?(Ljava/lang/String;Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/index/shard/ShardId;[Ljava/lang/String;)Lcom/groupbyinc/flux/common/logging/ESLogger; ? ?
? ? j(Lcom/groupbyinc/flux/common/apache/lucene/store/Directory;Lcom/groupbyinc/flux/common/logging/ESLogger;)V a ?
? O P ? S T ? U V ?
)com/groupbyinc/flux/common/unit/TimeValue ? timeValueSeconds .(J)Lcom/groupbyinc/flux/common/unit/TimeValue; ? ?
? ? ,com/groupbyinc/flux/common/settings/Settings ? getAsTime j(Ljava/lang/String;Lcom/groupbyinc/flux/common/unit/TimeValue;)Lcom/groupbyinc/flux/common/unit/TimeValue; ? ?
? ? ?(Lcom/groupbyinc/flux/common/unit/TimeValue;Lcom/groupbyinc/flux/common/apache/lucene/store/Directory;Lcom/groupbyinc/flux/index/store/DirectoryService;)V a ?
? W X ? logger -Lcom/groupbyinc/flux/common/logging/ESLogger; ? ? ? 4store stats are refreshed with refresh_interval [{}] ? java/lang/Object ? +com/groupbyinc/flux/common/logging/ESLogger ? debug ((Ljava/lang/String;[Ljava/lang/Object;)V ? ? ? ? _ ` ? java/lang/AssertionError ?
? ? 'com/groupbyinc/flux/index/shard/ShardId ? !com/groupbyinc/flux/env/ShardLock ?
getShardId +()Lcom/groupbyinc/flux/index/shard/ShardId; ? ?
? ? equals (Ljava/lang/Object;)Z ? ?
? ? refreshInterval +Lcom/groupbyinc/flux/common/unit/TimeValue;
ensureOpen ? ?
? readLastCommittedSegmentsInfo ?()Lcom/groupbyinc/flux/common/apache/lucene/index/SegmentInfos; Dcom/groupbyinc/flux/common/apache/lucene/index/CorruptIndexException ? failIfCorrupted ? ?
? O ?
? readSegmentsInfo ?(Lcom/groupbyinc/flux/common/apache/lucene/index/IndexCommit;Lcom/groupbyinc/flux/common/apache/lucene/store/Directory;)Lcom/groupbyinc/flux/common/apache/lucene/index/SegmentInfos; ? ?
? markStoreCorrupted (Ljava/io/IOException;)V ? ?
? ex FLcom/groupbyinc/flux/common/apache/lucene/index/CorruptIndexException; java/io/EOFException ? java/lang/Exception ? :com/groupbyinc/flux/common/apache/lucene/index/IndexCommit ? getDirectory ? ?
? ? (com/groupbyinc/flux/common/lucene/Lucene ? readSegmentInfos y(Lcom/groupbyinc/flux/common/apache/lucene/store/Directory;)Lcom/groupbyinc/flux/common/apache/lucene/index/SegmentInfos; ?
? {(Lcom/groupbyinc/flux/common/apache/lucene/index/IndexCommit;)Lcom/groupbyinc/flux/common/apache/lucene/index/SegmentInfos; ?
? ;com/groupbyinc/flux/common/apache/lucene/index/SegmentInfos )Read past EOF while reading segment infos java/lang/StringBuilder
? commit(
append -(Ljava/lang/String;)Ljava/lang/StringBuilder;
-(Ljava/lang/Object;)Ljava/lang/StringBuilder;
) toString ()Ljava/lang/String;
<(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V a
? 4Hit unexpected exception while reading segment infos eof Ljava/io/EOFException; exception Ljava/io/IOException; Ljava/lang/Exception; commit