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 2020/04/26 11:09:30 UTC
[GitHub] [pulsar] liudezhi2098 opened a new issue #6824: support async send msg can get sequenceId when throw exception
liudezhi2098 opened a new issue #6824:
URL: https://github.com/apache/pulsar/issues/6824
## Motivation
When sending messages asynchronously fails, an exception will be thrown, but it is not known which message is abnormal, and the user does not know which messages need to be retried。
## Proposed changes
This change can be supported on the client side, when throwing an exception need to set sequenceId
org.apache.pulsar.client.api.PulsarClientException
```java
public class PulsarClientException extends IOException {
private long sequenceId = -1;
public PulsarClientException(String msg, long sequenceId) {
super(msg);
this.sequenceId = sequenceId;
}
```
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] codelipenghui commented on issue #6824: support async send msg can get sequenceId when throw exception
Posted by GitBox <gi...@apache.org>.
codelipenghui commented on issue #6824:
URL: https://github.com/apache/pulsar/issues/6824#issuecomment-621842927
close via #6825
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org