Skip to content

Retry INVM server startup.#94

Merged
SamBarker merged 4 commits into
kroxylicious:mainfrom
SamBarker:retry_invm_startup
Apr 27, 2023
Merged

Retry INVM server startup.#94
SamBarker merged 4 commits into
kroxylicious:mainfrom
SamBarker:retry_invm_startup

Conversation

@SamBarker

Copy link
Copy Markdown
Member

Startup is cheap, and is usually related to transient port binding issues.

I was hoping to say we could drop this once we get to Kafka 3.6.0 but then I saw apache/kafka#13572 (comment) so there is some debate if it will land and when...

Comment thread impl/src/main/java/io/kroxylicious/testing/kafka/invm/InVMKafkaCluster.java Outdated

@k-wall k-wall left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Change looks good. I reviewed the kafka.server.KafkaRaftServer#startup and kafka.server.KafkaServer#startup to ensure they have idempotency. In the failure, they both take steps to call shutdown down methods which appear to reverse any parts of startup that succeeded.

Startup is cheap, and is usually related to transient port binding issues.

Signed-off-by: Sam Barker <sbarker@redhat.com>
Signed-off-by: Sam Barker <sbarker@redhat.com>
Signed-off-by: Sam Barker <sbarker@redhat.com>
@SamBarker
SamBarker force-pushed the retry_invm_startup branch from 25d4c64 to e0abbd2 Compare April 27, 2023 09:32
@franvila

Copy link
Copy Markdown
Member

Great workaround for this kind of failure! LGTM. Thanks @SamBarker

@SamBarker
SamBarker merged commit bfaad78 into kroxylicious:main Apr 27, 2023
@SamBarker
SamBarker deleted the retry_invm_startup branch April 27, 2023 21:56
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.

4 participants