You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2021/12/20 09:57:34 UTC

[GitHub] [pulsar] RobertIndie opened a new issue #13408: PIP-124: Create init subscription before sending message to DLQ

RobertIndie opened a new issue #13408:
URL: https://github.com/apache/pulsar/issues/13408


   <!---
   Instructions for creating a PIP using this issue template:
   
    1. The author(s) of the proposal will create a GitHub issue ticket using this template.
       (Optionally, it can be helpful to send a note discussing the proposal to
       dev@pulsar.apache.org mailing list before submitting this GitHub issue. This discussion can
       help developers gauge interest in the proposed changes before formalizing the proposal.)
    2. The author(s) will send a note to the dev@pulsar.apache.org mailing list
       to start the discussion, using subject prefix `[PIP] xxx`. To determine the appropriate PIP
       number `xxx`, inspect the mailing list (https://lists.apache.org/list.html?dev@pulsar.apache.org)
       for the most recent PIP. Add 1 to that PIP's number to get your PIP's number.
    3. Based on the discussion and feedback, some changes might be applied by
       the author(s) to the text of the proposal.
    4. Once some consensus is reached, there will be a vote to formally approve
       the proposal. The vote will be held on the dev@pulsar.apache.org mailing list. Everyone
       is welcome to vote on the proposal, though it will considered to be binding
       only the vote of PMC members. It will be required to have a lazy majority of
       at least 3 binding +1s votes. The vote should stay open for at least 48 hours.
    5. When the vote is closed, if the outcome is positive, the state of the
       proposal is updated and the Pull Requests associated with this proposal can
       start to get merged into the master branch.
   
   -->
   
   ## Motivation
   
   If we enable the DLQ when consuming messages. For some messages that can't be processed successfully, the messages will be moved to the DLQ, but if we do not specify the data retention for the namespace or create a subscription for the DLQ to retain the data, the data of the DLQ topic will be removed automatically. Therefore, we need to create the initial subscription before sending messages to the DLQ.
   
   ## Goal
   
   Users can set the initial subscription name in the DeadLetterPolicy. The consumer will create the initial subscription before sending messages to the DLQ. At this point, subsequent messages produced to the DLQ are not automatically deleted unexpectedly.
   
   This PIP needs to be compatible with the previous behavior. The initial subscription name in the DeadLetterPolicy is optional. Default value is the subscription name of the consumer.
   
   ## API Changes
   
   Add `initSubscriptionName` to the `DeadLetterPolicy`
   
   ```java
   /**
    * Name of the initial subscription name of the dead letter topic.
    * The default value is the subscription name of the consumer.
    */
   private String initSubscriptionName;
   ```
   
   ## Implementation
   
   Before the deadLetterProducer is initialized, the consumer first tries to create a deadLetterConsumer using the initial subscription name in the DeadLetterPolicy. When this subscription already exists, the ConsumerBusy exception will occur. In this case, we can ignore that exception and create the deadLetterProducer.
   
   Prototype implementation PR: https://github.com/apache/pulsar/pull/13355
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] eolivelli commented on issue #13408: PIP-137: Create init subscription before sending message to DLQ

Posted by GitBox <gi...@apache.org>.
eolivelli commented on issue #13408:
URL: https://github.com/apache/pulsar/issues/13408#issuecomment-1018345443






-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] eolivelli commented on issue #13408: PIP-124: Create init subscription before sending message to DLQ

Posted by GitBox <gi...@apache.org>.
eolivelli commented on issue #13408:
URL: https://github.com/apache/pulsar/issues/13408#issuecomment-1017689666


   @RobertIndie the PIP id is duplicated
   
   this is the official list of PIPs
   https://github.com/apache/pulsar/wiki
   
   I can add your PIP to the list and assign you a number
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] eolivelli commented on issue #13408: PIP-124: Create init subscription before sending message to DLQ

Posted by GitBox <gi...@apache.org>.
eolivelli commented on issue #13408:
URL: https://github.com/apache/pulsar/issues/13408#issuecomment-1018351454


   @RobertIndie I am sorry for the confusion, we already discussed about this problem about assigning PIP IDs on dev@pulsar.apache.org and we decided to go with the Wiki.
   The only source of truth we can have is the Wiki as it is the central place where we list PIPs, it already happened many times that people just created the issues on github and no one noticed it.
   
   I will change my PIP id, no problem.
   
   For the next time please I suggesting you to ask for a PIP ID on the dev@ mailing list.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] codelipenghui closed issue #13408: PIP-124: Create init subscription before sending message to DLQ

Posted by GitBox <gi...@apache.org>.
codelipenghui closed issue #13408:
URL: https://github.com/apache/pulsar/issues/13408


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] eolivelli edited a comment on issue #13408: PIP-124: Create init subscription before sending message to DLQ

Posted by GitBox <gi...@apache.org>.
eolivelli edited a comment on issue #13408:
URL: https://github.com/apache/pulsar/issues/13408#issuecomment-1017689666


   @RobertIndie the PIP id is duplicated
   I am sorry for the confusion
   
   this is the official list of PIPs
   https://github.com/apache/pulsar/wiki
   
   I can add your PIP to the list and assign you a number
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] RobertIndie edited a comment on issue #13408: PIP-124: Create init subscription before sending message to DLQ

Posted by GitBox <gi...@apache.org>.
RobertIndie edited a comment on issue #13408:
URL: https://github.com/apache/pulsar/issues/13408#issuecomment-1018348499


   This PIP was proposed before https://github.com/apache/pulsar/issues/13490.
   I think we should use pulsar issues to manage the PIP number(or a better way to automate it), not the wiki. Not all contributors can add their own PIP to the wiki.
   This PIP has been hotly discussed in the mailing list, and changing the number of this PIP will cause a lot of inconveniences.
   
   Can you change your PIP number in your PIP?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] RobertIndie edited a comment on issue #13408: PIP-124: Create init subscription before sending message to DLQ

Posted by GitBox <gi...@apache.org>.
RobertIndie edited a comment on issue #13408:
URL: https://github.com/apache/pulsar/issues/13408#issuecomment-1018380339


   > For the next time please I suggesting you to ask for a PIP ID on the dev@ mailing list.
   @eolivelli  Thanks for your suggestion.
   
   But I think I was following the process for PIP proposing: https://github.com/apache/pulsar/blob/master/.github/ISSUE_TEMPLATE/pip.md
   
   > 2. The author(s) will send a note to the dev@pulsar.apache.org mailing list
       to start the discussion, using subject prefix `[PIP] xxx`. To determine the appropriate PIP
       number `xxx`, inspect the mailing list (https://lists.apache.org/list.html?dev@pulsar.apache.org)
       for the most recent PIP. Add 1 to that PIP's number to get your PIP's number.
   
   I have opened the corresponding discussion on the mailing list and self assigned the PIP number as soon as I created this issue. Did I misunderstand it? If there is something wrong with this process, I think we need to update it.
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] RobertIndie edited a comment on issue #13408: PIP-124: Create init subscription before sending message to DLQ

Posted by GitBox <gi...@apache.org>.
RobertIndie edited a comment on issue #13408:
URL: https://github.com/apache/pulsar/issues/13408#issuecomment-1018348499


   This PIP was proposed before https://github.com/apache/pulsar/issues/13490.
   I think we should use pulsar issues to manage the PIP id(or a better way to automate it), not the wiki. Not all contributors can add their own PIP to the wiki.
   This PIP has been hotly discussed in the mailing list, and changing the number of this PIP will cause a lot of inconveniences.
   
   Can you change your PIP id in your PIP?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] RobertIndie edited a comment on issue #13408: PIP-124: Create init subscription before sending message to DLQ

Posted by GitBox <gi...@apache.org>.
RobertIndie edited a comment on issue #13408:
URL: https://github.com/apache/pulsar/issues/13408#issuecomment-1018380339


   > For the next time please I suggesting you to ask for a PIP ID on the dev@ mailing list.
   
   @eolivelli  Thanks for your suggestion.
   
   But I think I was following the process for PIP proposing: https://github.com/apache/pulsar/blob/master/.github/ISSUE_TEMPLATE/pip.md
   
   > 2. The author(s) will send a note to the dev@pulsar.apache.org mailing list
       to start the discussion, using subject prefix `[PIP] xxx`. To determine the appropriate PIP
       number `xxx`, inspect the mailing list (https://lists.apache.org/list.html?dev@pulsar.apache.org)
       for the most recent PIP. Add 1 to that PIP's number to get your PIP's number.
   
   I have opened the corresponding discussion on the mailing list and self assigned the PIP number as soon as I created this issue. Did I misunderstand it? If there is something wrong with this process, I think we need to update it.
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] RobertIndie commented on issue #13408: PIP-137: Create init subscription before sending message to DLQ

Posted by GitBox <gi...@apache.org>.
RobertIndie commented on issue #13408:
URL: https://github.com/apache/pulsar/issues/13408#issuecomment-1018348499


   This PIP was proposed before https://github.com/apache/pulsar/issues/13490.
   I think we should use pulsar issues to manage the PIP number(or a better way to automate it), not the wiki. Not all contributors can add their own PIP to the wiki.
   PIP-124 has been hotly discussed in the mailing list, and changing the number of this PIP will cause a lot of inconveniences.
   
   Can you change your PIP number in your PIP?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] RobertIndie commented on issue #13408: PIP-124: Create init subscription before sending message to DLQ

Posted by GitBox <gi...@apache.org>.
RobertIndie commented on issue #13408:
URL: https://github.com/apache/pulsar/issues/13408#issuecomment-1018380339


   > For the next time please I suggesting you to ask for a PIP ID on the dev@ mailing list.
   @eolivelli  Thanks for your suggestion.
   
   But I think I was following the process for PIP proposing: https://github.com/apache/pulsar/blob/master/.github/ISSUE_TEMPLATE/pip.md
   
   > 2. The author(s) will send a note to the dev@pulsar.apache.org mailing list
       to start the discussion, using subject prefix `[PIP] xxx`. To determine the appropriate PIP
       number `xxx`, inspect the mailing list (https://lists.apache.org/list.html?dev@pulsar.apache.org)
       for the most recent PIP. Add 1 to that PIP's number to get your PIP's number.
   
   I have opened the corresponding discussion on the mailing list and self assigned the PIP number as soon as I created this issue. If there is something wrong with this process, I think we need to update it.
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org