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 2022/12/06 04:22:15 UTC
[GitHub] [pulsar] wanyongx opened a new issue, #18750: [Bug] within given timeout
wanyongx opened a new issue, #18750:
URL: https://github.com/apache/pulsar/issues/18750
### Search before asking
- [X] I searched in the [issues](https://github.com/apache/pulsar/issues) and found nothing similar.
### Version
2.11.0
### Minimal reproduce step
produce one message per minute, probability of production failure。got exceptional within given timeout and cannot consume the failure messages.
produce timeout is default 30s
batchingMaxPublishDelay is 50ms
### What did you expect to see?
produce success
### What did you see instead?
org.apache.pulsar.client.api.PulsarClientException$TimeoutException: The producer pulsar-6-11424 can not send message to the topic persistent://xxx/default/xxx-partition-3 within given timeout
### Anything else?
_No response_
### Are you willing to submit a PR?
- [ ] I'm willing to submit a PR!
--
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.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] github-actions[bot] commented on issue #18750: [Bug] within given timeout
Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #18750:
URL: https://github.com/apache/pulsar/issues/18750#issuecomment-1373041096
The issue had no activity for 30 days, mark with Stale label.
--
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] mattisonchao commented on issue #18750: [Bug] within given timeout
Posted by GitBox <gi...@apache.org>.
mattisonchao commented on issue #18750:
URL: https://github.com/apache/pulsar/issues/18750#issuecomment-1338734747
@wanyongx
Could you help to provide the code to help reproduce it?
Which version were you using? Because version 2.11 is releasing and not promoted.
--
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] wanyongx commented on issue #18750: [Bug] within given timeout
Posted by GitBox <gi...@apache.org>.
wanyongx commented on issue #18750:
URL: https://github.com/apache/pulsar/issues/18750#issuecomment-1338757483
>
Producer<byte[]> producer = PulsarClientBuilder.getSslClientBuilder()
.ioThreads(8)
.build().newProducer(Schema.BYTES)
.topic("xxx/default/test")
.batcherBuilder(BatcherBuilder.KEY_BASED)
.batchingMaxBytes(0)
.batchingMaxMessages(500)
.batchingMaxPublishDelay(50, TimeUnit.MILLISECONDS)
.maxPendingMessages(10000)
.blockIfQueueFull(true)
.create();
// send one msg per minute
TypedMessageBuilder<byte[]> message = producer.newMessage();
message.key("test");
message.value("test".getBytes(StandardCharsets.UTF_8));
message.sendAsync().exceptionally(throwable -> {
log.error("send message fail throwable: {}", throwable.getMessage());
return null;
});
--
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