[
https://issues.jboss.org/browse/WFLY-10649?page=com.atlassian.jira.plugin...
]
Andrey Grigoriev edited comment on WFLY-10649 at 6/28/18 10:07 AM:
-------------------------------------------------------------------
{code:java}
/profile=ha/subsystem=infinispan/cache-container=web:read-resource(recursive=true)
{
"outcome" => "success",
"result" => {
"aliases" => undefined,
"default-cache" => "dist",
"eviction-executor" => undefined,
"jndi-name" => undefined,
"listener-executor" => undefined,
"module" => "org.wildfly.clustering.web.infinispan",
"replication-queue-executor" => undefined,
"start" => "LAZY",
"statistics-enabled" => false,
"distributed-cache" => {"dist" => {
"async-marshalling" => false,
"batching" => false,
"capacity-factor" => 1.0,
"consistent-hash-strategy" => "INTER_CACHE",
"indexing" => "NONE",
"indexing-properties" => undefined,
"jndi-name" => undefined,
"l1-lifespan" => 0L,
"mode" => "SYNC",
"module" => undefined,
"owners" => 2,
"queue-flush-interval" => 10L,
"queue-size" => 0,
"remote-timeout" => 10000L,
"segments" => 256,
"start" => "LAZY",
"statistics-enabled" => false,
"component" => {
"locking" => {
"acquire-timeout" => 15000L,
"concurrency-level" => 1000,
"isolation" => "REPEATABLE_READ",
"striping" => false
},
"transaction" => {
"locking" => "PESSIMISTIC",
"mode" => "BATCH",
"stop-timeout" => 10000L
},
"backup-for" => {
"remote-cache" => "___defaultcache",
"remote-site" => undefined
},
"backups" => {"backup" => undefined},
"expiration" => {
"interval" => 60000L,
"lifespan" => -1L,
"max-idle" => -1L
},
"partition-handling" => {"enabled" => false},
"state-transfer" => {
"chunk-size" => 512,
"enabled" => true,
"timeout" => 240000L
}
},
"memory" => {"object" => {
"max-entries" => 100L,
"size" => 100L,
"strategy" => "NONE"
}},
"store" => {"file" => {
"fetch-state" => true,
"max-batch-size" => 100,
"passivation" => true,
"path" => undefined,
"preload" => false,
"properties" => undefined,
"purge" => true,
"relative-to" => "jboss.server.data.dir",
"shared" => false,
"singleton" => false,
"property" => undefined,
"write" => {"through" => {}}
}}
}},
"invalidation-cache" => undefined,
"local-cache" => undefined,
"replicated-cache" => undefined,
"scattered-cache" => undefined,
"thread-pool" => {
"async-operations" => {
"keepalive-time" => 60000L,
"max-threads" => 25,
"min-threads" => 25,
"queue-length" => 1000
},
"expiration" => {
"keepalive-time" => 60000L,
"max-threads" => 1
},
"listener" => {
"keepalive-time" => 60000L,
"max-threads" => 1,
"min-threads" => 1,
"queue-length" => 100000
},
"persistence" => {
"keepalive-time" => 60000L,
"max-threads" => 4,
"min-threads" => 1,
"queue-length" => 0
},
"remote-command" => {
"keepalive-time" => 60000L,
"max-threads" => 200,
"min-threads" => 1,
"queue-length" => 0
},
"state-transfer" => {
"keepalive-time" => 60000L,
"max-threads" => 60,
"min-threads" => 1,
"queue-length" => 0
},
"transport" => {
"keepalive-time" => 60000L,
"max-threads" => 25,
"min-threads" => 25,
"queue-length" => 100000
}
},
"transport" => {"jgroups" => {
"channel" => undefined,
"cluster" => undefined,
"executor" => undefined,
"lock-timeout" => 60000L,
"stack" => undefined
}}
}
}
{code}
This part:
{code:java}
"memory" => {"object" => {
"max-entries" => 100L,
"size" => 100L,
"strategy" => "NONE"
}},
{code}
was (Author: xtron):
{code:java}
/profile=ha/subsystem=infinispan/cache-container=web:read-resource(recursive=true)
{
"outcome" => "success",
"result" => {
"aliases" => undefined,
"default-cache" => "dist",
"eviction-executor" => undefined,
"jndi-name" => undefined,
"listener-executor" => undefined,
"module" => "org.wildfly.clustering.web.infinispan",
"replication-queue-executor" => undefined,
"start" => "LAZY",
"statistics-enabled" => false,
"distributed-cache" => {"dist" => {
"async-marshalling" => false,
"batching" => false,
"capacity-factor" => 1.0,
"consistent-hash-strategy" => "INTER_CACHE",
"indexing" => "NONE",
"indexing-properties" => undefined,
"jndi-name" => undefined,
"l1-lifespan" => 0L,
"mode" => "SYNC",
"module" => undefined,
"owners" => 2,
"queue-flush-interval" => 10L,
"queue-size" => 0,
"remote-timeout" => 10000L,
"segments" => 256,
"start" => "LAZY",
"statistics-enabled" => false,
"component" => {
"locking" => {
"acquire-timeout" => 15000L,
"concurrency-level" => 1000,
"isolation" => "REPEATABLE_READ",
"striping" => false
},
"transaction" => {
"locking" => "PESSIMISTIC",
"mode" => "BATCH",
"stop-timeout" => 10000L
},
"backup-for" => {
"remote-cache" => "___defaultcache",
"remote-site" => undefined
},
"backups" => {"backup" => undefined},
"expiration" => {
"interval" => 60000L,
"lifespan" => -1L,
"max-idle" => -1L
},
"partition-handling" => {"enabled" => false},
"state-transfer" => {
"chunk-size" => 512,
"enabled" => true,
"timeout" => 240000L
}
},
*{color:red} "memory" => {"object" => {
"max-entries" => 100L,
"size" => 100L,
"strategy" => "NONE"
}},{color}*
"store" => {"file" => {
"fetch-state" => true,
"max-batch-size" => 100,
"passivation" => true,
"path" => undefined,
"preload" => false,
"properties" => undefined,
"purge" => true,
"relative-to" => "jboss.server.data.dir",
"shared" => false,
"singleton" => false,
"property" => undefined,
"write" => {"through" => {}}
}}
}},
"invalidation-cache" => undefined,
"local-cache" => undefined,
"replicated-cache" => undefined,
"scattered-cache" => undefined,
"thread-pool" => {
"async-operations" => {
"keepalive-time" => 60000L,
"max-threads" => 25,
"min-threads" => 25,
"queue-length" => 1000
},
"expiration" => {
"keepalive-time" => 60000L,
"max-threads" => 1
},
"listener" => {
"keepalive-time" => 60000L,
"max-threads" => 1,
"min-threads" => 1,
"queue-length" => 100000
},
"persistence" => {
"keepalive-time" => 60000L,
"max-threads" => 4,
"min-threads" => 1,
"queue-length" => 0
},
"remote-command" => {
"keepalive-time" => 60000L,
"max-threads" => 200,
"min-threads" => 1,
"queue-length" => 0
},
"state-transfer" => {
"keepalive-time" => 60000L,
"max-threads" => 60,
"min-threads" => 1,
"queue-length" => 0
},
"transport" => {
"keepalive-time" => 60000L,
"max-threads" => 25,
"min-threads" => 25,
"queue-length" => 100000
}
},
"transport" => {"jgroups" => {
"channel" => undefined,
"cluster" => undefined,
"executor" => undefined,
"lock-timeout" => 60000L,
"stack" => undefined
}}
}
}
{code}
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}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)