Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ISPN-6405 Persistence configuration with clustered cache can cause
duplicate expiration messages * Fixed issue where reaper caused 2 expirations in cluster cache
- Loading branch information
1 parent
e23b912
commit 7e08e15
Showing
10 changed files
with
131 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
...a/org/infinispan/expiration/impl/ExpirationSingleFileStoreDistListenerFunctionalTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,24 @@ | |||
package org.infinispan.expiration.impl; | |||
|
|||
import org.infinispan.configuration.cache.CacheMode; | |||
import org.infinispan.configuration.cache.ConfigurationBuilder; | |||
import org.infinispan.manager.EmbeddedCacheManager; | |||
import org.infinispan.test.fwk.TestCacheManagerFactory; | |||
import org.testng.annotations.Test; | |||
|
|||
@Test(groups = "functional", testName = "expiration.impl.ExpirationSingleFileStoreDistListenerFunctionalTest") | |||
public class ExpirationSingleFileStoreDistListenerFunctionalTest extends ExpirationStoreListenerFunctionalTest { | |||
@Override | |||
protected void configure(ConfigurationBuilder config) { | |||
config | |||
// Prevent the reaper from running, reaperEnabled(false) doesn't work when a store is present | |||
.expiration().wakeUpInterval(Long.MAX_VALUE) | |||
.clustering().cacheMode(CacheMode.DIST_SYNC) | |||
.persistence().addSingleFileStore(); | |||
} | |||
|
|||
@Override | |||
protected EmbeddedCacheManager createCacheManager(ConfigurationBuilder builder) { | |||
return TestCacheManagerFactory.createClusteredCacheManager(builder); | |||
} | |||
} |
17 changes: 17 additions & 0 deletions
17
.../java/org/infinispan/expiration/impl/ExpirationSingleFileStoreListenerFunctionalTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,17 @@ | |||
package org.infinispan.expiration.impl; | |||
|
|||
import org.infinispan.configuration.cache.ConfigurationBuilder; | |||
import org.infinispan.persistence.dummy.DummyInMemoryStoreConfigurationBuilder; | |||
import org.infinispan.persistence.file.SingleFileStore; | |||
import org.testng.annotations.Test; | |||
|
|||
@Test(groups = "functional", testName = "expiration.impl.ExpirationSingleFileStoreListenerFunctionalTest") | |||
public class ExpirationSingleFileStoreListenerFunctionalTest extends ExpirationStoreListenerFunctionalTest { | |||
@Override | |||
protected void configure(ConfigurationBuilder config) { | |||
config | |||
// Prevent the reaper from running, reaperEnabled(false) doesn't work when a store is present | |||
.expiration().wakeUpInterval(Long.MAX_VALUE) | |||
.persistence().addSingleFileStore(); | |||
} | |||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters