Skip to content

Use podManagementPolicy OrderedReady for Broker sts when Functions are enabled - #474

Merged
lhotari merged 4 commits into
apache:masterfrom
lhotari:lh-fix-startup-with-functions
Mar 26, 2024
Merged

lhotari merged 4 commits into
apache:masterfrom
lhotari:lh-fix-startup-with-functions

Conversation

@lhotari

@lhotari lhotari commented Mar 22, 2024

Copy link
Copy Markdown
Member

Fixes #473

Motivation

See #473. Broker startup could fail when Function Worker is enabled in the Broker since it tries to access other unready Brokers.

Modifications

Use podManagementPolicy: OrderedReady for Broker StatefulSet when Functions are enabled.

Verifying this change

  • Make sure that the change passes the CI checks.

@lhotari

lhotari commented Mar 22, 2024

Copy link
Copy Markdown
Member Author

Please review @frankjkelly @Mortom123

@Mortom123

Copy link
Copy Markdown
Contributor

Great. I encountered crashing brokers trying to access other ones, a while ago but never figured out why!

@lhotari
lhotari force-pushed the lh-fix-startup-with-functions branch from 962d132 to 1223ed9 Compare March 26, 2024 13:40
@lhotari
lhotari force-pushed the lh-fix-startup-with-functions branch from 739cc88 to 03b5a83 Compare March 26, 2024 14:58
@lhotari

lhotari commented Mar 26, 2024

Copy link
Copy Markdown
Member Author

podManagementPolicy is immutable on existing statefulsets. I had to add a solution for preserving the previous setting for existing installations so that upgrades don't break.

One solution for changing this for an existing deployment would be to delete the broker statefulset manually and then upgrading the deployment.

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.

[Bug] Broker startup could get into a long crash loop when Functions are enabled

2 participants