-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Segfault with MSK new 3.7.x version candidates
## Why AWS [changed their version naming convention on MSK](https://docs.aws.amazon.com/msk/latest/developerguide/supported-kafka-versions.html#3.7.kraft) leading to a new 3.7.x version candidate for upgrade (automatic patch update handled by AWS) This is generating Segfault in this application with the go-version/semver library not parsing it correctly. We fixed this issue updating MSK handler to replace those 'x' version part by a valid number. Because AWS is handling all patch version, replacing by `0` should produce the expected result we want on the upgrade manager service. ## How - Update MSK source version connector to handle semver containing 'x' - Update the semver Sort function to return proper error instead of crashing with segfault - The codebase already [expose a metric with the number of processingError](https://github.com/qonto/upgrade-manager/blob/main/internal/app/app.go#L281). Alert can be built on this metric to be notified of future version issue without having the application crashing and failing to produce report for all other monitored source
- Loading branch information
Showing
5 changed files
with
199 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters