Skip to content

Conversation

lfrancke
Copy link
Member

@lfrancke lfrancke commented Oct 6, 2025

https://issues.apache.org/jira/browse/ZOOKEEPER-4985

The zkCleanup.sh script has several issues that make it difficult to use in containerized or non-standard deployments:

The script hardcodes the path to zoo.cfg and fails with confusing error messages when the config file is not in the default location. When the config file is missing, it passes empty strings to PurgeTxnLog, causing confusing error messages

Steps to Reproduce:

  • Run ZooKeeper with config in a non-standard location (e.g., /custom/path/zoo.cfg)
  • Try to run cleanup:
grep: /path/to/zookeeper/bin/../conf/zoo.cfg: No such file or directory
grep: /path/to/zookeeper/bin/../conf/zoo.cfg: No such file or directory
Path '/path/to/zookeeper/bin' does not exist.
Usage:
PurgeTxnLog dataLogDir [snapDir] -n count 

@lfrancke
Copy link
Member Author

lfrancke commented Oct 6, 2025

The shellcheck failures were there before already.

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.

1 participant