[infinispan-dev] Replace command not checking previous value

Sanne Grinovero sanne at infinispan.org
Sun Oct 21 21:36:55 EDT 2012


Hello,
I'm in need to use the Cache method

   .replace( key, expectedValue, newValue );

and while debugging I got into
   org.infinispan.commands.write.ReplaceCommand.perform(InvocationContext)

which is doing "the right think" only if ctx.isOriginLocal() . What
puzzles me most is that there even is a comment pointing this out, as
it was a design choice made for some purpose.. some purpose which
strongly conflicts with my needs and the API contract :-/

Could anyone please explain?

thanks,
Sanne


More information about the infinispan-dev mailing list