Skip to content

fix(processor): replace panic with graceful error in activePartitions - #7181

Open
sriman0707 wants to merge 2 commits into
rudderlabs:masterfrom
sriman0707:fix/processor-active-partitions-panic
Open

fix(processor): replace panic with graceful error in activePartitions#7181
sriman0707 wants to merge 2 commits into
rudderlabs:masterfrom
sriman0707:fix/processor-active-partitions-panic

Conversation

@sriman0707

Copy link
Copy Markdown

Description

Replaces a panic(err) call in processor.activePartitions() with graceful error handling.

Previously, when the database connection was temporarily lost, activePartitions() would panic. This panic terminated the runner's pinger goroutine, silently crashing the active event-processing loop.

With this change, the handler logs the connection error, records a metric, and returns an empty partition list. This allows the pinger loop to gracefully retry fetching active partitions on the next tick once the database recovers.

Linear Ticket

N/A (External Open Source Contribution)

Security

  • The code changed/added as part of this pull request won't create any security issues with how the software is being used.

@contributor-support

Copy link
Copy Markdown

Thank you @sriman0707 for contributing this PR.
Please sign the Contributor License Agreement (CLA) before merging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant