Skip to content

Commit

Permalink
JT-78303: Try fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimir-zatsepin committed Jan 17, 2024
1 parent 878190a commit de5869e
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
*/
package jetbrains.exodus.entitystore

import jetbrains.exodus.entitystore.PersistentEntityStoreConfig.ENTITY_ITERABLE_CACHE_MEMORY_PERCENTAGE
import jetbrains.exodus.entitystore.PersistentEntityStoreConfig.ENTITY_ITERABLE_CACHE_SIZE
import mu.KLogger
import mu.KLogging
import java.util.concurrent.CountDownLatch
Expand All @@ -36,7 +38,8 @@ class EntityIterableCacheTest : EntityStoreTestBase() {

init {
// Use for local experiments to change cache params
//System.setProperty("exodus.entityStore.entityIterableCache.size", "8096")
//System.setProperty(ENTITY_ITERABLE_CACHE_SIZE, "8096")
System.setProperty(ENTITY_ITERABLE_CACHE_MEMORY_PERCENTAGE, "50")
}
}

Expand Down Expand Up @@ -112,7 +115,7 @@ class EntityIterableCacheTest : EntityStoreTestBase() {
// Then
reportInLogEntityIterableCacheStats()
val actualHitRate = store.entityIterableCache.stats.hitRate
val expectedHitRate = 0.6
val expectedHitRate = 0.8
println("Actual hitRate: $actualHitRate")
assertTrue(
"hitRate should be more or equal to $expectedHitRate, but was $actualHitRate",
Expand Down

0 comments on commit de5869e

Please sign in to comment.