Skip to content

[Bug] Entry filters stats should not be increased if there's no entry filter  #17595

Description

@nicoloboschi

Search before asking

  • I searched in the issues and found nothing similar.

Version

2.10.1

Minimal reproduce step

pulsar-admin produce -m hello mytopic
pulsar-admin consume -s sub1 -p Earliest mytopic
pulsar-admin stats mytopic

The result is

...
      "filterProcessedMsgCount" : 1,
      "filterAcceptedMsgCount" : 1,
      "filterRejectedMsgCount" : 0,
      "filterRescheduledMsgCount" : 0,
....

What did you expect to see?

I do expect that if no entry filter has been used by the dispatcher, the filterProcessedMsgCount and filterAcceptedMsgCount metrics should not be increased.

What did you see instead?

The metrics are updated even if there's no entry filter configured

Anything else?

No response

Are you willing to submit a PR?

  • I'm willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/bugThe PR fixed a bug or issue reported a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions