Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kafka node is crashing because of log file access issue #54

Open
ashishpatil09 opened this issue Jan 4, 2022 · 0 comments
Open

Kafka node is crashing because of log file access issue #54

ashishpatil09 opened this issue Jan 4, 2022 · 0 comments

Comments

@ashishpatil09
Copy link

Hi Team

I need your help with one issue.
I have one tb-kafka and zookeeper running in k8s and 3 replicas of tb-node. but kafka node is keep crashing and restarting after some time with following error
ERROR Failed to clean up log for __consumer_offsets-35 in dir /kafka-logs/kafka due to IOException (kafka.server.LogDirFailureChannel)
java.io.IOException: Permission denied
at java.io.RandomAccessFile.setLength(Native Method)
at kafka.log.AbstractIndex.$anonfun$resize$1(AbstractIndex.scala:189)
at kafka.log.AbstractIndex.resize(AbstractIndex.scala:175)
at kafka.log.AbstractIndex.$anonfun$trimToValidSize$1(AbstractIndex.scala:241)
at kafka.log.AbstractIndex.trimToValidSize(AbstractIndex.scala:241)
at kafka.log.LogSegment.onBecomeInactiveSegment(LogSegment.scala:507)

Then I tried to reduce the replica of tb-node to 2 and I have now tb-node-0 and tb-node-1 pods are running but I could see js_eval.responses.tb-node-2. folders inside kafka-logs/kafka
Does this cause the Kafka crash or anything i am missing in my config?

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

No branches or pull requests

1 participant