apache / solr-operator

Official Kubernetes operator for Apache Solr
https://solr.apache.org/operator
Apache License 2.0
243 stars 112 forks source link

security.json reset with bootstrap by init container setup-zk on zookeeper errors #659

Closed smoldenhauer-ish closed 3 months ago

smoldenhauer-ish commented 7 months ago

We faced the issue that our edited security.json was suddenly replaced by the setup-zk with the initial bootstrap security.json version and the client application was not able to connect to Solr cluster anymore.

There were some instabilities & connection issues at zookeeper side that caused the command sequence from the init container: ZK_SECURITY_JSON=$(/opt/solr/server/scripts/cloud-scripts/zkcli.sh -zkhost ${ZK_HOST} -cmd get /security.json); failed with a connection timeout but the afterwards executed "put security.json in ZK" succeeded.