You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Arnaud Simon (JIRA)" <qp...@incubator.apache.org> on 2008/05/30 13:47:46 UTC

[jira] Created: (QPID-1106) Make message acknowledgment synchronous

Make message acknowledgment synchronous
---------------------------------------

                 Key: QPID-1106
                 URL: https://issues.apache.org/jira/browse/QPID-1106
             Project: Qpid
          Issue Type: Improvement
    Affects Versions: M3
            Reporter: Arnaud Simon
             Fix For: M3


 Currently the 0.10 code path does not sync ack of messages. It should be configurable so with sync ack we get the at-most-once semantics required by JMS with client auto ack mode. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (QPID-1106) Make message acknowledgment synchronous

Posted by "Rajith Attapattu (JIRA)" <qp...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-1106?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rajith Attapattu updated QPID-1106:
-----------------------------------


This feature is committed to Qpid trunk at rev 747962.
If using sync_ack only the last acknowledged message should be subject to ambiguity.

> Make message acknowledgment synchronous
> ---------------------------------------
>
>                 Key: QPID-1106
>                 URL: https://issues.apache.org/jira/browse/QPID-1106
>             Project: Qpid
>          Issue Type: Improvement
>          Components: Java Client
>    Affects Versions: M4
>            Reporter: Arnaud Simon
>            Assignee: Rajith Attapattu
>             Fix For: M5
>
>         Attachments: QPID_1106.patch
>
>
>  Currently the 0.10 code path does not sync ack of messages. It should be configurable so with sync ack we get the at-most-once semantics required by JMS with client auto ack mode. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


[jira] Updated: (QPID-1106) Make message acknowledgment synchronous

Posted by "Arnaud Simon (JIRA)" <qp...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-1106?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Arnaud Simon updated QPID-1106:
-------------------------------

    Component/s: Java Client

> Make message acknowledgment synchronous
> ---------------------------------------
>
>                 Key: QPID-1106
>                 URL: https://issues.apache.org/jira/browse/QPID-1106
>             Project: Qpid
>          Issue Type: Improvement
>          Components: Java Client
>    Affects Versions: M3
>            Reporter: Arnaud Simon
>             Fix For: M3
>
>
>  Currently the 0.10 code path does not sync ack of messages. It should be configurable so with sync ack we get the at-most-once semantics required by JMS with client auto ack mode. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (QPID-1106) Make message acknowledgment synchronous

Posted by "Rajith Attapattu (JIRA)" <qp...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-1106?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rajith Attapattu updated QPID-1106:
-----------------------------------

    Attachment: QPID_1106.patch

This contains a solution to the problem described here.
Some of the code related to this is contained in the patch attached to QPID-1677

> Make message acknowledgment synchronous
> ---------------------------------------
>
>                 Key: QPID-1106
>                 URL: https://issues.apache.org/jira/browse/QPID-1106
>             Project: Qpid
>          Issue Type: Improvement
>          Components: Java Client
>    Affects Versions: M4
>            Reporter: Arnaud Simon
>            Assignee: Rajith Attapattu
>             Fix For: M5
>
>         Attachments: QPID_1106.patch
>
>
>  Currently the 0.10 code path does not sync ack of messages. It should be configurable so with sync ack we get the at-most-once semantics required by JMS with client auto ack mode. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


[jira] Assigned: (QPID-1106) Make message acknowledgment synchronous

Posted by "Arnaud Simon (JIRA)" <qp...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-1106?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Arnaud Simon reassigned QPID-1106:
----------------------------------

    Assignee: Rajith Attapattu  (was: Arnaud Simon)

Rajith, can you confirm that we can close this JIRA. 

> Make message acknowledgment synchronous
> ---------------------------------------
>
>                 Key: QPID-1106
>                 URL: https://issues.apache.org/jira/browse/QPID-1106
>             Project: Qpid
>          Issue Type: Improvement
>          Components: Java Client
>    Affects Versions: M3
>            Reporter: Arnaud Simon
>            Assignee: Rajith Attapattu
>             Fix For: M4
>
>
>  Currently the 0.10 code path does not sync ack of messages. It should be configurable so with sync ack we get the at-most-once semantics required by JMS with client auto ack mode. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (QPID-1106) Make message acknowledgment synchronous

Posted by "Arnaud Simon (JIRA)" <qp...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-1106?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Arnaud Simon updated QPID-1106:
-------------------------------

    Status: Ready To Review  (was: In Progress)

> Make message acknowledgment synchronous
> ---------------------------------------
>
>                 Key: QPID-1106
>                 URL: https://issues.apache.org/jira/browse/QPID-1106
>             Project: Qpid
>          Issue Type: Improvement
>          Components: Java Client
>    Affects Versions: M3
>            Reporter: Arnaud Simon
>            Assignee: Arnaud Simon
>             Fix For: M4
>
>
>  Currently the 0.10 code path does not sync ack of messages. It should be configurable so with sync ack we get the at-most-once semantics required by JMS with client auto ack mode. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (QPID-1106) Make message acknowledgment synchronous

Posted by "Aidan Skinner (JIRA)" <qp...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-1106?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Aidan Skinner updated QPID-1106:
--------------------------------

    Assignee: Arnaud Simon

> Make message acknowledgment synchronous
> ---------------------------------------
>
>                 Key: QPID-1106
>                 URL: https://issues.apache.org/jira/browse/QPID-1106
>             Project: Qpid
>          Issue Type: Improvement
>          Components: Java Client
>    Affects Versions: M3
>            Reporter: Arnaud Simon
>            Assignee: Arnaud Simon
>             Fix For: M3
>
>
>  Currently the 0.10 code path does not sync ack of messages. It should be configurable so with sync ack we get the at-most-once semantics required by JMS with client auto ack mode. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (QPID-1106) Make message acknowledgment synchronous

Posted by "Rajith Attapattu (JIRA)" <qp...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-1106?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rajith Attapattu updated QPID-1106:
-----------------------------------

    Affects Version/s:     (was: M3)
                       M4
        Fix Version/s:     (was: M4)
                       M5

Arnaud this is not done. IMO as per the JMS spec AUTO_ACK should provide exactly-once semantics.
Currently AUTO_ACK and DUPS_OK behaves the same. 
That is in a clustered environment, when AUTO_ACK is used, there is a possibility of getting duplicates.

To prevent this I have introduced a System/Connection URLproperty called sync_ack.
If set to true it will synchronously ack after every message. 

However in order for the producer to not replay the messages again (during failover) and prevent duplicates,we need a way for the JMS client to sync on every publish as well. To faciliate this, I have introduced a System/Connection URLproperty called sync_publish={persistent|all} which supercedes sync_persistent.
(sync_persistent is deprecated but supported for a few releases with a warning printed if used).
This is covered by QPID-1677

> Make message acknowledgment synchronous
> ---------------------------------------
>
>                 Key: QPID-1106
>                 URL: https://issues.apache.org/jira/browse/QPID-1106
>             Project: Qpid
>          Issue Type: Improvement
>          Components: Java Client
>    Affects Versions: M4
>            Reporter: Arnaud Simon
>            Assignee: Rajith Attapattu
>             Fix For: M5
>
>
>  Currently the 0.10 code path does not sync ack of messages. It should be configurable so with sync ack we get the at-most-once semantics required by JMS with client auto ack mode. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org