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/08/19 02:44:35 UTC
[GitHub] [pulsar] gaozhangmin opened a new pull request, #17170: [fix][test] entry filter makes no sense
gaozhangmin opened a new pull request, #17170:
URL: https://github.com/apache/pulsar/pull/17170
### Motivation
`testFilterEntriesForConsumerOfEntryFilter` test make no sense, because trackDelayedDelivery always return true.
Even if we remove the entry filters, this test would run successfully.
### Modifications
return false if `!msgMetadata.hasDeliverAtTime()` in trackDelayedDelivery
### Documentation
Check the box below or label this PR directly.
Need to update docs?
- [ ] `doc-required`
(Your PR needs to update docs and you will update later)
- [ ] `doc-not-needed`
(Please explain why)
- [ ] `doc`
(Your PR contains doc changes)
- [ ] `doc-complete`
(Docs have been already added)
--
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] github-actions[bot] commented on pull request #17170: [fix][test] entry filter makes no sense
Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on PR #17170:
URL: https://github.com/apache/pulsar/pull/17170#issuecomment-1220192149
@gaozhangmin Please provide a correct documentation label for your PR.
Instructions see [Pulsar Documentation Label Guide](https://docs.google.com/document/d/1Qw7LHQdXWBW9t2-r-A7QdFDBwmZh6ytB4guwMoXHqc0).
--
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] gaozhangmin commented on pull request #17170: [fix][test] entry filter makes no sense
Posted by GitBox <gi...@apache.org>.
gaozhangmin commented on PR #17170:
URL: https://github.com/apache/pulsar/pull/17170#issuecomment-1220856489
/pulsarbot run-failure-checks
--
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] gaozhangmin merged pull request #17170: [fix][test] entry filter makes no sense
Posted by GitBox <gi...@apache.org>.
gaozhangmin merged PR #17170:
URL: https://github.com/apache/pulsar/pull/17170
--
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] yuruguo commented on a diff in pull request #17170: [fix][test] entry filter makes no sense
Posted by GitBox <gi...@apache.org>.
yuruguo commented on code in PR #17170:
URL: https://github.com/apache/pulsar/pull/17170#discussion_r950783646
##########
pulsar-broker/src/test/java/org/apache/pulsar/broker/service/AbstractBaseDispatcherTest.java:
##########
@@ -214,6 +214,9 @@ protected boolean isConsumersExceededOnSubscription() {
@Override
public boolean trackDelayedDelivery(long ledgerId, long entryId, MessageMetadata msgMetadata) {
+ if (!msgMetadata.hasDeliverAtTime()) {
Review Comment:
Minor sugesstion: use `renturn msgMetadata.hasDeliverAtTime()` directly.
--
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