-
Notifications
You must be signed in to change notification settings - Fork 733
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
Loss of topic data at Minikube restart #89
Comments
I have to recreate all the topics from the scratch every morning (T_T) |
Actually I've sort of abandoned minikube. They're way too slow with new releases, still on a
Hence I don't know. With |
Hi! Looks like this issue is reproducible in GKE. |
@pavel-agarkov I assume this is with v5.0.0? We've had an instance of this before when zookeeper config somehow didn't reflect the mount path. I will try to reproduce the issue myself. |
Yes, it is v5, and k8s is v1.10.7-gke.11 |
Also I forgot to mention that I applied your single node configuration on top of master branch. |
I've reproduced it on GKE like so:
The kafkacat test has the clearest output, "Unknown topic":
The java based consumer keeps saying:
It's a different error this time I think. According to logs we store data under the mounted path.
|
So how can it be fixed? Maybe by adding some readinessProb to check mounted volumes? |
I've tried the two things that changed apart from the new version + Java 11, changed back to OrderedReady and doubled the memory limit. No difference. |
I don't think that the mount is a problem. I'm trying to figure out how zk saves state. Edit:
|
Based on https://zookeeper.apache.org/doc/r3.4.13/zookeeperAdmin.html#sc_dataFileManagement I think there should be log files too. |
Found the issue, probably introduced in ccb9e5d. Fix coming up. |
Fixes #89, "logs" which are actually data would end up outside the mount. Zookeeper's startup logs are more clear than the property file entries: INFO Created server with tickTime 2000 minSessionTimeout 4000 maxSessionTimeout 40000 datadir /var/lib/zookeeper/log/version-2 snapdir /var/lib/zookeeper/data/version-2
After
minikube stop && minikube start
topics are gone. Dunnot if it's been like this always. Running v0.23.0 with--kubernetes-version=v1.8.0
.The text was updated successfully, but these errors were encountered: