]
Paul Ferraro commented on WFLY-10649:
-------------------------------------
[~xtron] I looked at the demo source, and don't see where the eviction size is being
set.
Can you paste the infinispan subsystem configuration for the "web" cache
container?
Eviction doesn't work for infinspan distributed cache
"dist"
------------------------------------------------------------
Key: WFLY-10649
URL:
https://issues.jboss.org/browse/WFLY-10649
Project: WildFly
Issue Type: Feature Request
Components: Clustering
Affects Versions: 13.0.0.Final
Environment: OS: Centos 7
Java:
java version "1.8.0_171"
Java(TM) SE Runtime Environment (build 1.8.0_171-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.171-b11, mixed mode)
Wildfly 13.0.0.Final run in "Domain Mode" with two nodes in profile
"ha"
{code:java}
/server-group=web-group:read-resource(recursive=true)
{
"outcome" => "success",
"result" => {
"management-subsystem-endpoint" => false,
"profile" => "ha",
"socket-binding-default-interface" => undefined,
"socket-binding-group" => "ha-sockets",
"socket-binding-port-offset" => 0,
"deployment" => {"cluster-demo.war" => {
"enabled" => false,
"name" => "cluster-demo.war",
"runtime-name" => "cluster-demo.war"
}},
"deployment-overlay" => undefined,
"jvm" => {"default" => {
"agent-lib" => undefined,
"agent-path" => undefined,
"env-classpath-ignored" => undefined,
"environment-variables" => undefined,
"heap-size" => "512m",
"java-agent" => undefined,
"java-home" => undefined,
"jvm-options" => ["-XX:MaxMetaspaceSize=1024m"],
"launch-command" => undefined,
"max-heap-size" => "4096m",
"max-permgen-size" => undefined,
"permgen-size" => undefined,
"stack-size" => undefined,
"type" => undefined
}},
"system-property" => {
"jboss.default.multicast.address" => {
"boot-time" => true,
"value" => "230.0.0.5"
},
"mycluster.modcluster.lbgroup" => {
"boot-time" => true,
"value" => "WebLBGroup"
}
}
}
}
{code}
Set cache store "memory" size = 100
{code:java}
/profile=ha/subsystem=infinispan/cache-container=web/distributed-cache=dist/memory=object:read-resource(recursive=true)
{
"outcome" => "success",
"result" => {
"max-entries" => 100L,
"size" => 100L,
"strategy" => "NONE"
}
}
{code}
Reporter: Andrey Grigoriev
Assignee: Paul Ferraro
Deploying distributable application (for example
https://github.com/liweinan/cluster-demo) fails:
{code:java}
2018-06-28 11:23:50,504 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2)
MSC000001: Failed to start service
org.wildfly.clustering.infinispan.cache-configuration.web.cluster-demo.war:
org.jboss.msc.service.StartException in service
org.wildfly.clustering.infinispan.cache-configuration.web.cluster-demo.war: Failed to
start service
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1728)
at
org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1556)
at
org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)
at
org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)
at
org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1364)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.infinispan.commons.CacheConfigurationException: ISPN000424: Eviction size
value cannot be less than or equal to zero if eviction is enabled
at
org.infinispan.configuration.cache.MemoryConfigurationBuilder.validate(MemoryConfigurationBuilder.java:185)
at
org.infinispan.configuration.cache.ConfigurationBuilder.validate(ConfigurationBuilder.java:233)
at
org.infinispan.configuration.cache.ConfigurationBuilder.build(ConfigurationBuilder.java:290)
at
org.infinispan.configuration.cache.ConfigurationBuilder.build(ConfigurationBuilder.java:280)
at
org.wildfly.clustering.infinispan.spi.service.ConfigurationBuilder.start(ConfigurationBuilder.java:88)
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1736)
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1698)
... 6 more
{code}