ibessonov commented on code in PR #5403:
URL: https://github.com/apache/ignite-3/pull/5403#discussion_r1992878630
##########
modules/metastorage-cache/src/test/java/org/apache/ignite/internal/metastorage/cache/IdempotentCacheVacuumizerTest.java:
##########
@@ -79,6 +82,42 @@ public void tearDown() {
scheduler.shutdown();
}
+ /**
+ * Tests that ttl and clock skew are properly taken into account while
calculating an eviction timestamp.
+ *
+ * @throws Exception If failed.
+ */
+ @Test
+ public void testIdempotentCacheVacuumizerTtl() throws Exception {
+ AtomicReference<HybridTimestamp> evictionTimestamp = new
AtomicReference<>();
+
+ long ttl = 10L;
+ when(idempotentCacheTtlConfigurationValue.value()).thenReturn(ttl);
+
+ assertEquals(ttl, idempotentCacheTtlConfigurationValue.value());
Review Comment:
Yes, I think I should remove it, this was to make sure that everything works
:)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]