You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by "poorbarcode (via GitHub)" <gi...@apache.org> on 2024/04/18 12:57:34 UTC
[PR] [fix] [broker] Fix NPE which will leading dispatching stuck when using Key_Shared mode and set allowOutOfOrderDelivery to true [pulsar]
poorbarcode opened a new pull request, #22533:
URL: https://github.com/apache/pulsar/pull/22533
### Motivation
In Key_Shared mode, the variable `recentlyJoinedConsumers` of `PersistentStickyKeyDispatcherMultipleConsumers` will always be null when enabling the config below. #22245 introduced a NPE if set `allowOutOfOrderDelivery` to true, which will lead dispatching stuck.
```
// The default value is false.
pulsarClient.newConsumer().keySharedPolicy(KeySharedPolicy.setAllowOutOfOrderDelivery(true))
```
### Modifications
Fix the NPE.
### Documentation
<!-- DO NOT REMOVE THIS SECTION. CHECK THE PROPER BOX ONLY. -->
- [ ] `doc` <!-- Your PR contains doc changes. -->
- [ ] `doc-required` <!-- Your PR changes impact docs and you will update later -->
- [x] `doc-not-needed` <!-- Your PR changes do not impact docs -->
- [ ] `doc-complete` <!-- Docs have been already added -->
### Matching PR in forked repository
PR in forked repository: x
--
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
Re: [PR] [fix] [broker] Fix NPE which will leading dispatching stuck when using Key_Shared mode and set allowOutOfOrderDelivery to true [pulsar]
Posted by "shibd (via GitHub)" <gi...@apache.org>.
shibd closed pull request #22533: [fix] [broker] Fix NPE which will leading dispatching stuck when using Key_Shared mode and set allowOutOfOrderDelivery to true
URL: https://github.com/apache/pulsar/pull/22533
--
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
Re: [PR] [fix][broker] Fix NPE causing dispatching to stop when using Key_Shared mode and allowOutOfOrderDelivery=true [pulsar]
Posted by "codelipenghui (via GitHub)" <gi...@apache.org>.
codelipenghui merged PR #22533:
URL: https://github.com/apache/pulsar/pull/22533
--
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