[infinispan-dev] TotalOrder and jgroups

Bela Ban bban at redhat.com
Tue Mar 6 09:28:07 EST 2012



On 3/6/12 3:21 PM, Mircea Markus wrote:
>
>
> ----- Original Message -----
>> From: "Tristan Tarrant"<ttarrant at redhat.com>
>> To: infinispan-dev at lists.jboss.org
>> Sent: Tuesday, March 6, 2012 12:43:02 PM
>> Subject: Re: [infinispan-dev] TotalOrder and jgroups
>>
>> On 03/06/2012 01:39 PM, Tristan Tarrant wrote:
>>> On 03/06/2012 12:58 PM, Mircea Markus wrote:
>>>> Hi,
>>>>
>>>> Total order requires JGroup's SEQEUNCER[1] protocol to be added to
>>>> the protocol stack. So users that want to switch between e.g.
>>>> total order and optimistic TX are required to also change the
>>>> jgroups config (and the other way around). This is not very user
>>>> friendly, so I'm thinking to try and insert the SEQUENCER if it
>>>> is missing from the stack and TotalOrder is enabled, together
>>>> with a log message. Anyone sees any problem with this? Bela?
>>> What about when Infinispan is not the owner of the JGroups channel,
>>> i.e.
>>> in the AS?
> in order to use TO the transport *must* have the SEQUENCER. I don't think that adding the sequencer affects the rest the messages, as the seqeunced message require an special flag to be passed to into the message header - Bela, can you please confirm this?

No, this is not correct: it's actually the other way round, if you add a 
flag NO_TOTAL_ORDER, then the message bypasses SEQUENCER. Otherwise, the 
message will be sent and delivered in global order

-- 
Bela Ban
Lead JGroups (http://www.jgroups.org)
JBoss / Red Hat


More information about the infinispan-dev mailing list