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

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

There is a newer version: 198
Show newest version
????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; minTranslogGenerationForRecoveryJtranslogGenerationOfLastCommitretentionSizeInBytesretentionAgeInMillis$assertionsDisabledZassertNoOpenTranslogRefs()V	
java/util/MapisEmpty()Zjava/lang/AssertionError!/not all translog generations have been released#(Ljava/lang/Object;)V%&
"'values()Ljava/util/Collection;)*+java/util/Objects-requireNonNull&(Ljava/lang/Object;)Ljava/lang/Object;/0
.1"java/lang/invoke/LambdaMetafactory3metafactory?(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;56
478&java/lang/Throwable;
addSuppressed(Ljava/lang/Throwable;)V=>
<?@(Ljava/lang/RuntimeException;)VBaccept9(Ljava/lang/AssertionError;)Ljava/util/function/Consumer;DEFjava/util/CollectionHforEach (Ljava/util/function/Consumer;)VJKILeLjava/lang/AssertionError;this;Lcom/groupbyinc/flux/index/translog/TranslogDeletionPolicy;(JJ)V%
Sjava/util/HashMapU
VS	X	Z	\	^	`com/groupbyinc/flux/AssertionsbENABLEDd	ce&java/util/concurrent/ConcurrentHashMapg
hS#setMinTranslogGenerationForRecovery(J)V"java/lang/IllegalArgumentExceptionljava/lang/StringBuildern
oSBInvalid minTranslogGenerationForRecovery can't go backwards; new [qappend-(Ljava/lang/String;)Ljava/lang/StringBuilder;st
ou(J)Ljava/lang/StringBuilder;sw
ox],current [z], lastGen [|]~toString()Ljava/lang/String;??
o?(Ljava/lang/String;)V%?
m?newGen!setTranslogGenerationOfLastCommit-Invalid translogGenerationOfLastCommit; new [?], minRequiredGen [?lastGensetRetentionSizeInBytesbytessetRetentionAgeInMillisageInMillisacquireTranslogGen0(J)Lcom/groupbyinc/flux/common/lease/Releasable;java/lang/Long?valueOf(J)Ljava/lang/Long;??
??0lambda$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?
?S	?assertAddTranslogRef(Ljava/lang/Object;)Z??
?
"Slambda$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?
?Sput8(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?0?pendingTranslogRefCount()Isize???releaseTranslogGenget?0?()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/Mathmax(JJ)J
min

minByAgeAndSizereadersELjava/util/List;Ljava/util/List;writer3Lcom/groupbyinc/flux/index/translog/TranslogWriter;
minByLocksminByAge	minBySize1com/groupbyinc/flux/index/translog/TranslogWritersizeInBytes?

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;./0java/util/Iterator2hasNext435next()Ljava/lang/Object;7839getLastModifiedTime;?
%<maxRetentionAgeInMillisnowjava/lang/System@currentTimeMillisB?
ACkeySet()Ljava/util/Set;EFG
java/util/SetIstream()Ljava/util/stream/Stream;KLJM?2(Ljava/lang/Long;Ljava/lang/Long;)Ljava/lang/Long;Q%()Ljava/util/function/BinaryOperator;?STjava/util/stream/StreamVreduce9(Ljava/util/function/BinaryOperator;)Ljava/util/Optional;XYWZjava/util/Optional\orElse^0
]_	longValuea?
?b#getMinTranslogGenerationForRecovery!getTranslogGenerationOfLastCommitgetTranslogRefCountgencounter
compareAndSet(ZZ)Zij
?k?k
m??
o
newCounter:(Z)Lcom/groupbyinc/flux/common/apache/lucene/util/Counter;qr
?slLjava/lang/Long;java/lang/ClassxdesiredAssertionStatusz
y{	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!}
}~2*?? ?(?"Y$?(L*??,+Y?2W?G?M+??NO2PQ?&'(/)1+?1%R~?=*?T*?VY?W?Y*
?[*
?]*?_*!?a?f?*?hY?i??*?? =PQ==?*
B17<CD#E)F7H<J??7!jk~?P*?[??*?]??;?mY?oY?pr?v?y{?v*?[?y}?v*?]?y?v?????*?[?PPQP??MNJQOR?7!?k~?P*?]??*?[??;?mY?oY?p??v?y{?v*?]?y??v*?[?y?v?????*?]?PPQP??XYJ\O]?7!?k~>*?_?PQ??
`a!?k~>*?a?PQ??
de ??~?A*?Y????????
??X??Y??N???*-????"Y???*-??? APQA?"???lm"n8o??8???~~&*?+??Y?ȹ???M,??"Y?,?ѿ? &PQ&?????xyz$|??$???~R*?+?????PQ?????@ ??~4
*?Y???
PQ??"?k~?Y*?Y??????N-?-??	??#?mY?oY?p?v?y?v?????-??	??*?Y????W? YPQY?H??????>?J?X??
?? ??~?P*??B+,*?a*????7+,*?_??7????7	??	7		!*?[???R6
	PPQPPK<1B
	?P?????1?9?B???9???}???~
S 	??L+?7+?7*? d6?. ??'*?#?%:		?&a7	?'7???????H5()	0*+C,=-SSS?S?*
????(?5???F?L?O????/?}???~?C 	??<*?1:?6?%?:?%:?=e ??	?'????+???4$()CCC>C??C???$?1?7?:????
?3(???}???~.?D?PQ????~R(*?Y?H?N?U?[???`???c?(PQ??!d?~/*?[?PQ??!e?~/*?]?PQ?? f?~p*?Y??????N-?	?-?? PQg
h??
???
??C??~x%+?l?* ?n???*+?p??"Y???? %PQ%??%??p	qr$t?$
??~/?t?uv?lw~4?|??????!?@?*9:AC9???9???9OPR??
	





© 2015 - 2024 Weber Informatics LLC | Privacy Policy