Are you using explicit transactions or only implicit transactions?
As of 5.2, non-transactional caches use a scheme where the modification is
sent to the primary owner, which then sends the modification to the backup
owner(s). The primary owner waits for responses from all the backup owners,
and the originator waits for a response from the primary owner.
In optimistic caches, one-phase transactions are much simpler: the
originator just sends the modification to all the owners, and they all
apply it. Execution order is preserved for transactions originating from
the same node, but transactions originating from different nodes can be
applied by the owners in any order.
So implicit transactions with use1PcForAutoCommitTransactions="true" can
certainly be faster than non-transactional operations, but I wouldn't
recommend using them because they aren't atomic. (To be fair, there are
also some problems with atomicity of non-tx operations during state
transfer that we're just fixing now - e.g.
https://issues.jboss.org/browse/ISPN-3357)
Cheers
Dan
On Mon, Aug 19, 2013 at 4:47 PM, Faseela K <faseela.k(a)ericsson.com> wrote:
Hi Tristan,
I was just comparing the performance of synchronous transactional and
synchronous non-transactional writes in replication mode.
And I see, transactional writes were taking lesser time, than
non-transactional.
Is it expected behaviour? My transactional config has the following
properties :
syncRollbackPhase="true"
syncCommitPhase="true"
cacheStopTimeout="30000"
use1PcForAutoCommitTransactions="true"
autoCommit="true"
lockingMode="OPTIMISTIC"
useSynchronization="true"
transactionMode="TRANSACTIONAL"
Or Am I using some wrong configuration?
Thanks,
Faseela
-----Original Message-----
From: Tristan Tarrant [mailto:ttarrant@redhat.com]
Sent: Monday, August 19, 2013 6:28 PM
To: infinispan -Dev List
Cc: Faseela K
Subject: Re: [infinispan-dev] Eventual Consistency in Infinispan
Infinispan does not implement eventual consistency yet.
Tristan
On 08/19/2013 02:39 PM, Faseela K wrote:
> Hi,
> I am using Infinispan - 5.3.0 in clustering mode.
> I have a transactional configuration, in replication-synchronous mode.
> I want to know, whether eventual consistency is supported for
> synchronous replication in 5.3.
> Could someone please brief how eventual consistency works in
> infinispan context?
> Thanks,
> Faseela
>
>
> _______________________________________________
> infinispan-dev mailing list
> infinispan-dev(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/infinispan-dev
_______________________________________________
infinispan-dev mailing list
infinispan-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/infinispan-dev