Hi Gerrit Experts,
I’m working with Gerrit 3.12 and noticed an inconsistency between the documentation and the actual behavior of plugin configuration loading.
In my plugin, I use:
```
import com.google.gerrit.server.config.PluginConfigFactory;
PluginConfig cfg =
pluginConfigFactory.getFromGerritConfig("pluginname", true);
```
According to the documentation on plugin configuration, this should read the plugin configuration from the updated $SITE/etc/gerrit.config on disk. However, in practice it only returns the original values loaded during Gerrit startup.
Debugging findings
Any clarification would be very helpful — especially whether there is an officially supported way for plugins to dynamically re-read gerrit.config, or whether relying on reload-config is the correct pattern.
Thank you,
Alexander
Hi Gerrit Experts,
I’m working with Gerrit 3.12 and noticed an inconsistency between the documentation and the actual behavior of plugin configuration loading.
--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/repo-discuss/afff6dd3-2dae-4263-af73-45c598081827n%40googlegroups.com.