]
Galder Zamarreno reassigned JBCACHE-1577:
-----------------------------------------
Assignee: Galder Zamarreno (was: Manik Surtani)
Cannot clear a distributed cache locally
----------------------------------------
Key: JBCACHE-1577
URL:
https://jira.jboss.org/jira/browse/JBCACHE-1577
Project: JBoss Cache
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: 3.2.3.CR1
Reporter: Nicolas Filotto
Assignee: Galder Zamarreno
Fix For: 3.2.3.GA
Attachments: removeNodeFix.diff, TestRemoveNode.java
I have a distributed cache and I would like to be able to clear it locally so I used the
following code:
{code}
cache.getInvocationContext().getOptionOverrides().setCacheModeLocal(true);
cache.removeNode(Fqn.ROOT);
{code}
Unfortunatelly, all the nodes are removed in all the cache instances in my cluster. After
a deeper investigation, it seems to be a bug in CacheInvocationDelegate.removeNode that
doesn't properly set the option overrides since it reuse the same option object that
is reset after each call.
I attached a unit test and a patch for this bug.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: