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/08/22 03:47:22 UTC
[GitHub] [pulsar] codelipenghui opened a new pull request #11741: Avoid duplicated disconnecting producer when after add entry failed.
codelipenghui opened a new pull request #11741:
URL: https://github.com/apache/pulsar/pull/11741
### Motivation
Currently, if encounter the add entry failure, will call `producer.disconnect()` multiple times during the disconnecting the producer
which will add many disconnect producer tasks to the EventLoop.
### Changes
1. Added isDisconnecting state for the producer, if the producer is in `isDisconnecting` state, skip the disconnect operation
2. Create new future list only the topic have producers to reduce the heap allocation
### Verify
Added test to cover disconnecting the producer multiple times, but the EventLoop only execute one time.
--
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] merlimat merged pull request #11741: Avoid duplicated disconnecting producer when after add entry failed.
Posted by GitBox <gi...@apache.org>.
merlimat merged pull request #11741:
URL: https://github.com/apache/pulsar/pull/11741
--
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