Skip to content

Send Kafka a TERM signal at pod stop and wait for shutdown - #207

Merged
solsson merged 5 commits into
masterfrom
kafka-stop-hook
Nov 18, 2018
Merged

solsson merged 5 commits into
masterfrom
kafka-stop-hook

Conversation

@solsson

@solsson solsson commented Sep 29, 2018

Copy link
Copy Markdown
Contributor

@solsson

solsson commented Sep 29, 2018

Copy link
Copy Markdown
Contributor Author

The last log entry I see is INFO [KafkaServer id=0] shut down completed (kafka.server.KafkaServer)

@solsson

solsson commented Sep 29, 2018

Copy link
Copy Markdown
Contributor Author

Maybe Zookeeper doesn't need controlled shutdown. I see no effect in logs of invoking the script.

@stigok

stigok commented Sep 30, 2018 •

Copy link
Copy Markdown

I'm unable to reproduce the bad indices. I don't know how I ended up with them in the first place. We've been having a lot of pod restarts and failed probes running in AKS, so it could've been caused by a lot of different factors.

@stigok

stigok commented Sep 30, 2018 •

Copy link
Copy Markdown

But this is PR is certainly a step in the right direction 👍

@solsson
solsson merged commit 198666d into master Nov 18, 2018
@stigok

stigok commented Nov 18, 2018

Copy link
Copy Markdown

I had bad indexes again after my disks went full. Maybe that is a "good way" to simulate broken indexes.

  • Configure log.retention.bytes to a value greater than available disk-space
  • Produce enough messages to fill the disk
  • Watch Kafka die
  • Expand disk and expect to see bad indexes

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.

2 participants