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/13 22:32:04 UTC
[GitHub] [pulsar] michaeljmarshall opened a new pull request #13273: [Java Client] Improve consumer listener logic
michaeljmarshall opened a new pull request #13273:
URL: https://github.com/apache/pulsar/pull/13273
### Motivation
In https://github.com/apache/pulsar/pull/13023, we updated the Java client's consumer listener logic to ensure correct ordering of messages received. We can simplify the logic for the variable named `executorQueueSize`. It can be `volatile` instead of `atomic` and it can be a boolean instead of an integer.
### Modifications
* Rename `executorQueueSize` to `isListenerHandlingMessage` in `ConsumerBase` and make it `volatile` instead of `Atomic`
* Remove unnecessary scheduling on `internalPinnedExecutor` in `ConsumerImpl`
### Verifying this change
This is a trivial change.
### Does this pull request potentially affect one of the following parts:
This is not a breaking change.
### Documentation
- [x] `no-need-doc`
This is an internal change.
--
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] michaeljmarshall merged pull request #13273: [Java Client] Improve consumer listener logic
Posted by GitBox <gi...@apache.org>.
michaeljmarshall merged pull request #13273:
URL: https://github.com/apache/pulsar/pull/13273
--
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