You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/12/06 15:42:22 UTC

[GitHub] [pulsar] startjava created a discussion: [Doc] "negatively acknowledged cumulatively" ambiguous?

GitHub user startjava created a discussion: [Doc] "negatively acknowledged cumulatively" ambiguous?

### Search before asking

- [X] I searched in the [issues](https://github.com/apache/pulsar/issues) and found nothing similar.


### What issue do you find in Pulsar docs?

This website:

https://pulsar.apache.org/docs/concepts-messaging/#negative-acknowledgement

The:

Messages are negatively acknowledged individually or cumulatively, depending on the consumption subscription type.

The inner "opened indispensable cumulatively", does it have this function in pulsar? At least I did not find the corresponding API for this function.

I don't know if there is some ambiguity in the document, or if there is some problem with my understanding.



In addition:

In Exclusive and Failover subscription types, consumers only negatively acknowledge the last message they receive.

In Shared and Key_Shared subscription types, consumers can negatively acknowledge messages individually.

Are these two paragraphs necessary? In fact, it is the feature of four subscription types, namely whether there is one consumer or how many consumers, and it feels like adding these two paragraphs adds complexity to this technical point.

 

### What is your suggestion?

?

### Any reference?

_No response_

### Are you willing to submit a PR?

- [ ] I'm willing to submit a PR!

GitHub link: https://github.com/apache/pulsar/discussions/18771

----
This is an automatically sent email for dev@pulsar.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@pulsar.apache.org


[GitHub] [pulsar] momo-jun added a comment to the discussion: [Doc] "negatively acknowledged cumulatively" ambiguous?

Posted by GitBox <gi...@apache.org>.
GitHub user momo-jun added a comment to the discussion: [Doc] "negatively acknowledged cumulatively" ambiguous?

> Messages are negatively acknowledged individually or cumulatively, depending on the consumption subscription type.
> * In Exclusive and Failover subscription types, consumers only negatively acknowledge the last message they receive.
> * In Shared and Key_Shared subscription types, consumers can negatively acknowledge messages individually.

I don't see the ambiguity in this paragraph. It means the negative acknowledgment of messages can be performed either individually (in Shared and Key_Shared subscription types) or cumulatively (Exclusive and Failover subscription types).

Did this answer your question? @startjava 

GitHub link: https://github.com/apache/pulsar/discussions/18771#discussioncomment-4324380

----
This is an automatically sent email for dev@pulsar.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@pulsar.apache.org


[GitHub] [pulsar] tisonkun added a comment to the discussion: [Doc] "negatively acknowledged cumulatively" ambiguous?

Posted by GitBox <gi...@apache.org>.
GitHub user tisonkun added a comment to the discussion: [Doc] "negatively acknowledged cumulatively" ambiguous?

This is about knowledge sharing. Not an issue to resolve.

GitHub link: https://github.com/apache/pulsar/discussions/18771#discussioncomment-4324394

----
This is an automatically sent email for dev@pulsar.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@pulsar.apache.org


[GitHub] [pulsar] startjava added a comment to the discussion: [Doc] "negatively acknowledged cumulatively" ambiguous?

Posted by GitBox <gi...@apache.org>.
GitHub user startjava added a comment to the discussion: [Doc] "negatively acknowledged cumulatively" ambiguous?

@momo-jun 

question1:
why 
(1)individually (in Shared and Key_Shared subscription types)
(2)cumulatively (Exclusive and Failover subscription types).

why bottom is error:
(1)cumulatively  (in Shared and Key_Shared subscription types)
(2)individually  (Exclusive and Failover subscription types).

question2:
but not have about "negatively acknowledged cumulatively" api,only have "negatively acknowledged individually" api(Consumer.negativeAcknowledeg)

i have 2 question 
thank you jun !



GitHub link: https://github.com/apache/pulsar/discussions/18771#discussioncomment-4324381

----
This is an automatically sent email for dev@pulsar.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@pulsar.apache.org


[GitHub] [pulsar] startjava added a comment to the discussion: [Doc] "negatively acknowledged cumulatively" ambiguous?

Posted by GitBox <gi...@apache.org>.
GitHub user startjava added a comment to the discussion: [Doc] "negatively acknowledged cumulatively" ambiguous?

Actually I want to know what situation belongs to "the acknowledged cumulatively"?
thank you !

GitHub link: https://github.com/apache/pulsar/discussions/18771#discussioncomment-4324376

----
This is an automatically sent email for dev@pulsar.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@pulsar.apache.org


[GitHub] [pulsar] labuladong added a comment to the discussion: [Doc] "negatively acknowledged cumulatively" ambiguous?

Posted by GitBox <gi...@apache.org>.
GitHub user labuladong added a comment to the discussion: [Doc] "negatively acknowledged cumulatively" ambiguous?

You can try `negativeAcknowledge` in `Failover/Exclusive` subscription types. All the messages the consumer didn't acknowledge will be redelivered, this behavior could be negatively acknowledged cumulatively. But there do have some discussions about the redelivery behavior on `Failover/Exclusive` subscription types, see https://lists.apache.org/thread/vdwhg5wrpjc8x41oqwxrsdhx7dmyzt3j

GitHub link: https://github.com/apache/pulsar/discussions/18771#discussioncomment-4324382

----
This is an automatically sent email for dev@pulsar.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@pulsar.apache.org


[GitHub] [pulsar] zymap added a comment to the discussion: [Doc] "negatively acknowledged cumulatively" ambiguous?

Posted by GitBox <gi...@apache.org>.
GitHub user zymap added a comment to the discussion: [Doc] "negatively acknowledged cumulatively" ambiguous?

Do you want this? https://pulsar.apache.org/docs/concepts-messaging#acknowledgement

GitHub link: https://github.com/apache/pulsar/discussions/18771#discussioncomment-4324377

----
This is an automatically sent email for dev@pulsar.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@pulsar.apache.org


[GitHub] [pulsar] startjava added a comment to the discussion: [Doc] "negatively acknowledged cumulatively" ambiguous?

Posted by GitBox <gi...@apache.org>.
GitHub user startjava added a comment to the discussion: [Doc] "negatively acknowledged cumulatively" ambiguous?

@momo-jun please see the question 

GitHub link: https://github.com/apache/pulsar/discussions/18771#discussioncomment-4324379

----
This is an automatically sent email for dev@pulsar.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@pulsar.apache.org


[GitHub] [pulsar] startjava added a comment to the discussion: [Doc] "negatively acknowledged cumulatively" ambiguous?

Posted by GitBox <gi...@apache.org>.
GitHub user startjava added a comment to the discussion: [Doc] "negatively acknowledged cumulatively" ambiguous?

but i don't know what mean "negatively acknowledged cumulatively"。



GitHub link: https://github.com/apache/pulsar/discussions/18771#discussioncomment-4324383

----
This is an automatically sent email for dev@pulsar.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@pulsar.apache.org


[GitHub] [pulsar] startjava added a comment to the discussion: [Doc] "negatively acknowledged cumulatively" ambiguous?

Posted by GitBox <gi...@apache.org>.
GitHub user startjava added a comment to the discussion: [Doc] "negatively acknowledged cumulatively" ambiguous?

> Do you want this? https://pulsar.apache.org/docs/concepts-messaging#acknowledgement

YES,i see the doc too .

GitHub link: https://github.com/apache/pulsar/discussions/18771#discussioncomment-4324378

----
This is an automatically sent email for dev@pulsar.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@pulsar.apache.org


[GitHub] [pulsar] momo-jun added a comment to the discussion: [Doc] "negatively acknowledged cumulatively" ambiguous?

Posted by GitBox <gi...@apache.org>.
GitHub user momo-jun added a comment to the discussion: [Doc] "negatively acknowledged cumulatively" ambiguous?

> but i don't know what mean "negatively acknowledged cumulatively"。

You can understand it as "Cumulative NACK" - the negative acknowledgement is performed cumulatively, that is, consumers only negatively acknowledge the last message they receive.


GitHub link: https://github.com/apache/pulsar/discussions/18771#discussioncomment-4324384

----
This is an automatically sent email for dev@pulsar.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@pulsar.apache.org