[ http://jira.jboss.com/jira/browse/JBCACHE-83?page=history ]
Bela Ban updated JBCACHE-83:
----------------------------
Original Estimate: 28800
Remaining Estimate: 28800
Fix Version: 1.2.1
> java.lang.IllegalStateException: addWriter(): owner already existed
> -------------------------------------------------------------------
>
> Key: JBCACHE-83
> URL: http://jira.jboss.com/jira/browse/JBCACHE-83
> Project: JBoss Cache
> Type: Bug
> Versions: 1.2
> Reporter: Konstantin Avdeyev
> Assignee: Bela Ban
> Fix For: 1.2.1
>
> Original Estimate: 1 day
> Remaining: 1 day
>
> Exception appears in replicated mode (REPL_ASYNC) and NONE isolation level
> when two instances putting the same value to cache.
> Test case:
> The following test was added to AsyncUnitTestCase (Note: isolation level in
> replAsync-service.xml need to be changed to NONE)
> public void testAsyncReplSameData() {
> while(true){
> try {
> cache1.put("/a/b/", "c", "d");
> cache2.put("/a/b/", "c", "d");
> } catch (CacheException e) {
> e.printStackTrace();
> }
> }
> }
> Test output:
> -- [Thread[main,5,main]]: creating cache1
> -------------------------------------------------------
> GMS: address is grc03:1969
> -------------------------------------------------------
> -- [Thread[main,5,main]]: creating cache2
> -------------------------------------------------------
> GMS: address is grc03:1972
> -------------------------------------------------------
> -- [Thread[main,5,main]]: stopping cache1
> -- [Thread[main,5,main]]: stopping cache2
> org.jboss.util.NestedRuntimeException: addWriter(): owner already existed; -
> nested throwable: (java.lang.IllegalStateException: addWriter(): owner
> already existed)
> at org.jboss.cache.TreeCache.invokeMethod(TreeCache.java:3083)
> at org.jboss.cache.TreeCache.put(TreeCache.java:1758)
> at org.jboss.cache.TreeCache.put(TreeCache.java:1741)
> at
> org.jboss.test.cache.test.replicated.AsyncUnitTestCase.testAsyncReplSameData(AsyncUnitTestCase.java:127)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at
> com.intellij.rt.execution.junit2.JUnitStarter.main(JUnitStarter.java:31)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at com.intellij.rt.execution.application.AppMain.main(AppMain.java:78)
> Caused by: java.lang.IllegalStateException: addWriter(): owner already existed
> at org.jboss.cache.lock.LockMap.addWriter(LockMap.java:97)
> at
> org.jboss.cache.lock.IdentityLock.acquireWriteLock(IdentityLock.java:181)
> at org.jboss.cache.Node.acquireWriteLock(Node.java:424)
> at org.jboss.cache.Node.acquire(Node.java:401)
> at
> org.jboss.cache.interceptors.LockInterceptor.lock(LockInterceptor.java:184)
> at
> org.jboss.cache.interceptors.LockInterceptor.invoke(LockInterceptor.java:134)
> at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:40)
> at
> org.jboss.cache.interceptors.CreateIfNotExistsInterceptor.invoke(CreateIfNotExistsInterceptor.java:47)
> at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:40)
> at
> org.jboss.cache.interceptors.ReplicationInterceptor.invoke(ReplicationInterceptor.java:51)
> at org.jboss.cache.TreeCache.invokeMethod(TreeCache.java:3078)
> ... 26 more
> Process finished with exit code -1
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
JBoss-Development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-development