[jboss-jira] [JBoss JIRA] (WFLY-3435) jboss-as-infinispan_1_X.xsd schema has incorrect default value for flush-lock-timeout in write-behind
RH Bugzilla Integration (JIRA)
issues at jboss.org
Wed Nov 26 03:39:40 EST 2014
[ https://issues.jboss.org/browse/WFLY-3435?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13023008#comment-13023008 ]
RH Bugzilla Integration commented on WFLY-3435:
-----------------------------------------------
Ladislav Thon <lthon at redhat.com> changed the Status of [bug 1007015|https://bugzilla.redhat.com/show_bug.cgi?id=1007015] from ON_QA to VERIFIED
> jboss-as-infinispan_1_X.xsd schema has incorrect default value for flush-lock-timeout in write-behind
> -----------------------------------------------------------------------------------------------------
>
> Key: WFLY-3435
> URL: https://issues.jboss.org/browse/WFLY-3435
> Project: WildFly
> Issue Type: Bug
> Components: Clustering
> Affects Versions: 8.0.0.Final
> Reporter: Radoslav Husar
> Assignee: Radoslav Husar
> Fix For: 9.0.0.Alpha1
>
>
> Description of problem:
> In org.infinispan.loaders.decorators.AsyncStoreConfig, the default flushLockTimeout is set to 5000. However, the default in the JBoss Infinispan schema ($JBOSS_HOME/docs/schema/jboss-as-infinispan_1_X.xsd) is set to 1. Because of this, if the thread-pool-size for write-behind is increased, then it is likely that one of the threads will not be able to obtain the state map lock within the 1 millisecond time provided by the schema default. This results in the following error:
> ERROR o.i.loaders.decorators.AsyncStore.run - ISPN000051: Unexpected error
> org.infinispan.CacheException: Unable to acquire lock on update map
> at org.infinispan.loaders.decorators.AsyncStore.acquireLock(AsyncStore.java:293) ~[infinispan-core-5.1.3.FINAL.jar:5.1.3.FINAL]
> at org.infinispan.loaders.decorators.AsyncStore.access$900(AsyncStore.java:86) ~[infinispan-core-5.1.3.FINAL.jar:5.1.3.FINAL]
> at org.infinispan.loaders.decorators.AsyncStore$AsyncProcessor.innerRun(AsyncStore.java:336) ~[infinispan-core-5.1.3.FINAL.jar:5.1.3.FINAL]
> at org.infinispan.loaders.decorators.AsyncStore$AsyncProcessor.run(AsyncStore.java:312) ~[infinispan-core-5.1.3.FINAL.jar:5.1.3.FINAL]
> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) ~[na:1.6.0_31]
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) ~[na:1.6.0_31]
> at java.lang.Thread.run(Thread.java:662) ~[na:1.6.0_31]
> Version-Release number of selected component (if applicable):
> Infinispan version 5.1.8
> How reproducible:
> Code inspection
> Steps to Reproduce:
> 1. Check the default value for flush-lock-timeout in $JBOSS_HOME/docs/schema/jboss-as-infinispan_1_3.xsd
> 2. Check the default value for flushLockTimeout in the org.infinispan.loaders.decorators.AsyncStoreConfig class
> 3. Note the disparity
> Actual results:
> Default in schema is 1
> Expected results:
> Default in schema is 5000
> Additional info:
--
This message was sent by Atlassian JIRA
(v6.3.8#6338)
More information about the jboss-jira
mailing list