Skip to content

fix: add emptiness check for linger.ms and statistics.interval.ms#712

Open
mbaturin-rubbi wants to merge 1 commit intoFarfetch:masterfrom
mbaturin-rubbi:respect-producer-config
Open

fix: add emptiness check for linger.ms and statistics.interval.ms#712
mbaturin-rubbi wants to merge 1 commit intoFarfetch:masterfrom
mbaturin-rubbi:respect-producer-config

Conversation

@mbaturin-rubbi
Copy link
Copy Markdown

@mbaturin-rubbi mbaturin-rubbi commented Mar 27, 2026

Description

Added a null check for _lingerMs and _statisticsInterval before overriding _producerConfig.LingerMs and _producerConfig.StatisticsIntervalMs to avoid overwriting original values with empty ones.

Fixes #711

How Has This Been Tested?

NuGet package was built and tested in an application where linger.ms and statistics.interval.ms were provided in ProducerConfig

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have added tests to cover my changes
  • I have made corresponding changes to the documentation

Disclaimer

By sending us your contributions, you are agreeing that your contribution is made subject to the terms of our Contributor Ownership Statement

@mbaturin-rubbi mbaturin-rubbi force-pushed the respect-producer-config branch from 45d25b6 to 691aed8 Compare April 2, 2026 05:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

[Bug Report]: ProducerConfigurationBuilder.Build does not respect ProducerConfig linger.ms and statistics.interval.ms

1 participant