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

com.groupbyinc.flux.index.translog.TranslogDeletionPolicy.class Maven / Gradle / Ivy

????4}9com/groupbyinc/flux/index/translog/TranslogDeletionPolicyjava/lang/ObjectTranslogDeletionPolicy.java%java/lang/invoke/MethodHandles$Lookupjava/lang/invoke/MethodHandlesLookupopenTranslogRefLjava/util/Map;?Ljava/util/Map;translogRefCountsXLjava/util/Map; minTranslogGenerationForRecoveryJretentionSizeInBytesretentionAgeInMillis$assertionsDisabledZassertNoOpenTranslogRefs()V	
java/util/MapisEmpty()Zjava/lang/AssertionError /not all translog generations have been released"(Ljava/lang/Object;)V$%
!&values()Ljava/util/Collection;()*getClass()Ljava/lang/Class;,-
."java/lang/invoke/LambdaMetafactory0metafactory?(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;23
145%java/lang/Throwable8
addSuppressed(Ljava/lang/Throwable;)V:;
9<=(Ljava/lang/RuntimeException;)V?accept9(Ljava/lang/AssertionError;)Ljava/util/function/Consumer;ABCjava/util/CollectionEforEach (Ljava/util/function/Consumer;)VGHFIeLjava/lang/AssertionError;this;Lcom/groupbyinc/flux/index/translog/TranslogDeletionPolicy;(JJ)V$
Pjava/util/HashMapR
SP	U	W	Y	[com/groupbyinc/flux/Assertions]ENABLED_	^`&java/util/concurrent/ConcurrentHashMapb
cP#setMinTranslogGenerationForRecovery(J)V"java/lang/IllegalArgumentExceptiongjava/lang/StringBuilderi
jP:minTranslogGenerationForRecovery can't go backwards. new [lappend-(Ljava/lang/String;)Ljava/lang/StringBuilder;no
jp(J)Ljava/lang/StringBuilder;nr
js] current [u]wtoString()Ljava/lang/String;yz
j{(Ljava/lang/String;)V$}
h~newGensetRetentionSizeInBytesbytessetRetentionAgeInMillisageInMillisacquireTranslogGen0(J)Lcom/groupbyinc/flux/common/lease/Releasable;java/lang/Long?valueOf(J)Ljava/lang/Long;??
??&(Ljava/lang/Object;)Ljava/lang/Object;?lambda$acquireTranslogGen$0I(Ljava/lang/Long;)Lcom/groupbyinc/flux/common/apache/lucene/util/Counter;??
???apply()Ljava/util/function/Function;???computeIfAbsentC(Ljava/lang/Object;Ljava/util/function/Function;)Ljava/lang/Object;???5com/groupbyinc/flux/common/apache/lucene/util/Counter?	addAndGet(J)J??
??)java/util/concurrent/atomic/AtomicBoolean?
?P	?assertAddTranslogRef(Ljava/lang/Object;)Z??
?
!Plambda$acquireTranslogGen$1/(Ljava/util/concurrent/atomic/AtomicBoolean;J)V??
??close?(Lcom/groupbyinc/flux/index/translog/TranslogDeletionPolicy;Ljava/util/concurrent/atomic/AtomicBoolean;J)Lcom/groupbyinc/flux/common/lease/Releasable;???translogGenclosed+Ljava/util/concurrent/atomic/AtomicBoolean;java/lang/RuntimeException?
?Pput8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;???"double adding of closing reference?*(Ljava/lang/String;Ljava/lang/Throwable;)V$?
!?	referenceLjava/lang/Object;existingLjava/lang/RuntimeException;assertRemoveTranslogRefremove???pendingTranslogRefCount()Isize???releaseTranslogGenget???()J??
??translog gen [?] wasn't acquired?????????current7Lcom/groupbyinc/flux/common/apache/lucene/util/Counter;minTranslogGenRequiredF(Ljava/util/List;Lcom/groupbyinc/flux/index/translog/TranslogWriter;)Jjava/io/IOException? getMinTranslogGenRequiredByLocks??
?currentTime??
?getMinTranslogGenByAgeH(Ljava/util/List;Lcom/groupbyinc/flux/index/translog/TranslogWriter;JJ)J??
?getMinTranslogGenBySizeG(Ljava/util/List;Lcom/groupbyinc/flux/index/translog/TranslogWriter;J)J??
?????????java/lang/Math?max(JJ)J??
??min??
??minByAgeAndSizereadersELjava/util/List;Ljava/util/List;writer3Lcom/groupbyinc/flux/index/translog/TranslogWriter;
minByLocksminByAge	minBySize1com/groupbyinc/flux/index/translog/TranslogWriter
sizeInBytes?


getGeneration?
java/util/List?(I)Ljava/lang/Object;?1com/groupbyinc/flux/index/translog/TranslogReader

reader3Lcom/groupbyinc/flux/index/translog/TranslogReader;iI	totalSizeminGeniterator()Ljava/util/Iterator;"#$java/util/Iterator&hasNext(')next()Ljava/lang/Object;+,'-getLastModifiedTime/?
0maxRetentionAgeInMillisnowjava/lang/System4currentTimeMillis6?
57keySet()Ljava/util/Set;9:;
java/util/Set=stream()Ljava/util/stream/Stream;?@>A?2(Ljava/lang/Long;Ljava/lang/Long;)Ljava/lang/Long;E%()Ljava/util/function/BinaryOperator;?GHjava/util/stream/StreamJreduce9(Ljava/util/function/BinaryOperator;)Ljava/util/Optional;LMKNjava/util/OptionalPorElseR?
QS	longValueU?
?V#getMinTranslogGenerationForRecoverygetTranslogRefCountgencounter
compareAndSet(ZZ)Z\]
?^?f
`??
b
newCounter:(Z)Lcom/groupbyinc/flux/common/apache/lucene/util/Counter;de
?flLjava/lang/Long;java/lang/ClasskdesiredAssertionStatusm
ln	SignatureCodeLocalVariableTableLineNumberTable
StackMapTableLocalVariableTypeTable
Exceptions{(Ljava/util/List;Lcom/groupbyinc/flux/index/translog/TranslogWriter;)J|(Ljava/util/List;Lcom/groupbyinc/flux/index/translog/TranslogWriter;J)J}(Ljava/util/List;Lcom/groupbyinc/flux/index/translog/TranslogWriter;JJ)JBootstrapMethods
SourceFileInnerClasses!p
pq2*???(?!Y#?'L*??++Y?/W?D?J+??rKL2MNs&'(/)1+t1$Oq?8*?Q*?SY?T?V*
?X*?Z*!?\?a?*?cY?d??*??r 8MN88s&	=17>?@$A2C7Et?2!efq?;*?X??/?hY?jY?km?q?tv?q*?X?tx?q?|??*?X?r;MN;?sH	I5L:Mt5!?fq>*?Z?rMN?s
PQ!?fq>*?\?rMN?s
TU ??q?A*?V????????
??X??Y??N???*-????!Y???*-???r AMNA?"??s\]"^8_t?8???q~&*?+??Y??????M,??!Y?,?ſ?r &MN&????shij$lt?$???qR*?+?????rMN??spt@ ??q4
*?V???r
MNsu"?fq?Y*?V??????N-?-??	??#?hY?jY?k۶q?tݶq?|??-޶?	??*?V????W?r YMNY?H??s|}~>?J?X?t
?? ??q?P*??B+,*?\*???7+,*?Z??7???????7	???7		!*?X???rR6	PMNPPK<1	B	uPs????1?9?B?t?9?v?pw??q
S 	??L+?7+?7*?d6?. ??'*??:		?a7	?7????????rH5	0C =!SSSuSs*
????(?5???F?L?O?t??/?px??q?C 	??<*?%:?*?%?.?:?1e ??	?????+????r4$CCC2C3uCs??$?1?7?:???t
?'(?v?py??q.?8?rMNs???qR(*?V?<?B?I?O????T???W?r(MNs?!X?q/*?X?rMNs? Y?qp*?V??????N-?	?-?٭r MNZ
[?s
??t
??C??qx%+?_?* ?a???*+?c??!Y????r %MN%??%?s`	ab$dt$
??q/?g?rhis\jq4?o?????s!t@z*67>@6???6???6CDF{|
	





© 2015 - 2025 Weber Informatics LLC | Privacy Policy