pulsar icon indicating copy to clipboard operation
pulsar copied to clipboard

[Doc] Discrepancy in Pulsar's maxPendingMessages Default Value: Documentation vs Source Code

Open qiyingqizi opened this issue 2 years ago • 0 comments

Search before asking

  • [X] I searched in the issues and found nothing similar.

What issue do you find in Pulsar docs?

The link says that the default value of maxPendingMessages is 1000, as per this documentation.

However, in the source code of Pulsar 3.1.2, the default value obtained during debugging is 0.

The initialization location also shows 0.

QQ图片20240116111222 QQ图片20240116111227 QQ图片20240116111233 QQ图片20240116111237

What is your suggestion?

Given the discrepancy between the documentation and the actual default value observed in the source code, it would be beneficial to either update the documentation to reflect the correct default value or adjust the source code to match the documented default value.

Any reference?

No additional references needed beyond the current documentation and source code.

Are you willing to submit a PR?

  • [X] I'm willing to submit a PR!

qiyingqizi avatar Jan 16 '24 03:01 qiyingqizi