Skip to content

Comments

Fix up config hash calculations to not involve unhashable fields that change based on replicas#559

Merged
andrewstucki merged 3 commits intomainfrom
as/fix-config-hash
Mar 25, 2025
Merged

Fix up config hash calculations to not involve unhashable fields that change based on replicas#559
andrewstucki merged 3 commits intomainfrom
as/fix-config-hash

Conversation

@andrewstucki
Copy link
Contributor

I'm not entirely sure why the go.mod files got updated when I ran task generate -f -- I'm assuming it has something to do with go mod tidy runs? Either way, this fixes the issue with pods restarting based off of StatefulSet replicas changing.

Previously what was occurring is that the list of brokers placed in "client" sections of our redpanda.yaml were being included in the hash calculations, because the number of brokers changes the list of brokers, any change to the number of replicas was resulting in the hash change and hence causing the brokers to get rolling restarted. This excludes "client" portions of the config from the hash calculation.

@chrisseto
Copy link
Contributor

Fixes redpanda-data/helm-charts#1518

@andrewstucki andrewstucki merged commit 0c6ebb6 into main Mar 25, 2025
12 checks passed
andrewstucki added a commit that referenced this pull request Mar 25, 2025
… change based on replicas (#559)

* Fix up config hash calculations to not involve unhashable fields that change based on replicas

* add changelog

* Regenerate golden file hashes

(cherry picked from commit 0c6ebb6)

# Conflicts:
#	charts/redpanda/CHANGELOG.md
#	gen/go.mod
#	gen/go.sum
@andrewstucki
Copy link
Contributor Author

💚 All backports created successfully

Status Branch Result
release/v2.3.x

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

RafalKorepta pushed a commit that referenced this pull request Mar 25, 2025
… change based on replicas (#559)

* Fix up config hash calculations to not involve unhashable fields that change based on replicas

* add changelog

* Regenerate golden file hashes

(cherry picked from commit 0c6ebb6)

# Conflicts:
#	charts/redpanda/CHANGELOG.md
#	gen/go.mod
#	gen/go.sum
@RafalKorepta RafalKorepta deleted the as/fix-config-hash branch March 28, 2025 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants