[infinispan-dev] Distribution, unreliable returns, conditional commands and transactions
galder at redhat.com
galder at redhat.com
Wed May 19 02:20:14 EDT 2010
In DI.remoteGetBeforeWrite, you have:
if (isNeedReliableReturnValues(ctx) || (isConditionalCommand && ctx.isInTxScope())) {
for (Object k : keygen.getKeys()) remoteGetAndStoreInL1(ctx, k, isStillRehashingOnJoin);
}
Why does the command need to be conditional and within a transaction in order to do a remote get when reliable returns are not needed? It is my understanding that if a conditional command is in use, i.e. replace(k, old, v), it should override not needing reliable returns in order to get accurate results. However, this only seems to be the case if the conditional op is within a transaction.
Cheers,
--
Galder Zamarreño
Sr. Software Engineer
Infinispan, JBoss Cache
More information about the infinispan-dev
mailing list