Skip to content

fix(go.d/snmp): fix retries serialization and bulk walk disable - #22179

Merged
ilyam8 merged 1 commit into
netdata:masterfrom
ilyam8:go.d/snmp-bulk-walk-and-retries-fix
Apr 10, 2026
Merged

fix(go.d/snmp): fix retries serialization and bulk walk disable#22179
ilyam8 merged 1 commit into
netdata:masterfrom
ilyam8:go.d/snmp-bulk-walk-and-retries-fix

Conversation

@ilyam8

@ilyam8 ilyam8 commented Apr 10, 2026

Copy link
Copy Markdown
Member
  • Remove omitempty from OptionsConfig.Retries so zero value is serialized
  • Skip bulk walk detection when MaxRepetitions is 0, treating it as disabled bulk walk
Summary
Test Plan
Additional Information
For users: How does this change affect me?

Summary by cubic

Fixes go.d/snmp config handling: serializes retries when set to 0 and disables bulk walk when MaxRepetitions is 0. This respects explicit user settings and avoids unintended bulk-walk detection.

  • Bug Fixes
    • Removed omitempty from OptionsConfig.Retries so 0 is serialized.
    • If MaxRepetitions is 0, mark bulk walk as disabled and skip detection.

Written for commit dbac9d1. Summary will update on new commits.

- Remove omitempty from OptionsConfig.Retries so zero value is serialized
- Skip bulk walk detection when MaxRepetitions is 0, treating it as
  disabled bulk walk
@github-actions github-actions Bot added area/collectors Everything related to data collection collectors/go.d area/go labels Apr 10, 2026

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 2 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

@ilyam8
ilyam8 merged commit e6bd1fd into netdata:master Apr 10, 2026
149 checks passed
@ilyam8
ilyam8 deleted the go.d/snmp-bulk-walk-and-retries-fix branch April 10, 2026 11:09
@stelfrag stelfrag mentioned this pull request Apr 10, 2026
Ferroin pushed a commit to stelfrag/netdata that referenced this pull request Apr 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/collectors Everything related to data collection area/go collectors/go.d

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants