Honour secure configs during init step

During the init step, zookeeper-refdb might need to connect to the
Zookeeper ensemble to perform migration-related tasks, as it was
introduced in I7836b739bb.

When doing so however, the curator was being initialized without
honouring the configurations set in the zookeeper-refdb.secure.config,
as it was reading the zookeeper-refdb.config only.

Address this issue by reading from zookeeper-refdb.secure.config and
falling back to the zookeeper-refdb.config.

Change-Id: I9123a979e01f4811dbd71cc41445eb109cf6bfae
1 file changed
tree: 5b4cad4840223c44f5db19e74879757d45596547
  1. src/
  2. .gitignore
  3. BUILD
  4. external_plugin_deps.bzl
  5. Jenkinsfile
  6. LICENSE
  7. README.md
README.md

Gerrit Zookeeper ref-db

This plugin provides an implementation of the Gerrit global ref-db backed by Apache Zookeeper.

Requirements for using this plugin are:

  • Gerrit v3.2 or later
  • Apache Zookeeper v3.4 or later

Typical use-case

The global ref-db is a typical use-case of a Gerrit multi-master scenario in a multi-site setup. Refer to the Gerrit multi-site plugin for more details on the high level architecture.