You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Alan Conway (JIRA)" <ji...@apache.org> on 2013/06/14 21:42:19 UTC

[jira] [Updated] (QPID-4348) HA Use independent sequence numbers for identifying messages.

     [ https://issues.apache.org/jira/browse/QPID-4348?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alan Conway updated QPID-4348:
------------------------------

    Description: 
Currently HA code uses queue sequence numbers to identify messasges.
This assumes that message sequence is identical on primary and backup.

Implementing new features (for example transactions) requires that we tolerate
ordering differences between primary and backups.

We introduces a new, queue-scoped HA sequence number managed by the HA plugin.
This is used to identify messages independently of queue sequence numbers.

Needs careful implementation to avoid bad performance effects.
- Avoid adding headers, use the same mechansim as we have now for sending HA seq. nos.
- Use an efficient index struct (e.g. dequeue) to map HA seq. to queue seq.

The benefits:
- required to support TX
- required for re-use of stored messages for catchup
- more robust - does not require primary and backups to have identical message ordering on their queues.

  was:
Currently HA code uses queue sequence numbers to identify messasges.
This assumes that message sequence is identical on primary and backup.

Implementing new features (for example transactions) requires that we tolerate
ordering differences between primary and backups.

We introduces a new, queue-scoped HA sequence number managed by the HA plugin.
This is used to identify messages independently of queue sequence numbers.

Needs careful implementation to avoid bad performance effects.
- Avoid adding headers, use the same mechansim as we have now for sending HA seq. nos.
- Use an efficient index struct (e.g. dequeue) to map HA seq. to queue seq.

The benefits:
- required to support TX
- required for re-use of stored messages for catchup
- more robust - aovidb

    
> HA Use independent sequence numbers for identifying messages.
> -------------------------------------------------------------
>
>                 Key: QPID-4348
>                 URL: https://issues.apache.org/jira/browse/QPID-4348
>             Project: Qpid
>          Issue Type: Improvement
>          Components: C++ Clustering
>    Affects Versions: 0.18
>            Reporter: Alan Conway
>            Assignee: Alan Conway
>
> Currently HA code uses queue sequence numbers to identify messasges.
> This assumes that message sequence is identical on primary and backup.
> Implementing new features (for example transactions) requires that we tolerate
> ordering differences between primary and backups.
> We introduces a new, queue-scoped HA sequence number managed by the HA plugin.
> This is used to identify messages independently of queue sequence numbers.
> Needs careful implementation to avoid bad performance effects.
> - Avoid adding headers, use the same mechansim as we have now for sending HA seq. nos.
> - Use an efficient index struct (e.g. dequeue) to map HA seq. to queue seq.
> The benefits:
> - required to support TX
> - required for re-use of stored messages for catchup
> - more robust - does not require primary and backups to have identical message ordering on their queues.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org