kgeisz commented on code in PR #8115:
URL: https://github.com/apache/hbase/pull/8115#discussion_r3132445297
##########
hbase-server/src/main/java/org/apache/hadoop/hbase/master/HMaster.java:
##########
@@ -4506,15 +4495,22 @@ public void onConfigurationChange(Configuration
newConf) {
// append the quotas observer back to the master coprocessor key
setQuotasObserver(newConf);
- boolean originalIsReadOnlyEnabled = this.isGlobalReadOnlyEnabled;
+ boolean originalIsReadOnlyEnabled = CoprocessorConfigurationUtil
+ .areReadOnlyCoprocessorsLoaded(this.conf,
CoprocessorHost.MASTER_COPROCESSOR_CONF_KEY);
- CoprocessorConfigurationUtil.maybeUpdateCoprocessors(newConf,
this.isGlobalReadOnlyEnabled,
+ CoprocessorConfigurationUtil.maybeUpdateCoprocessors(newConf,
originalIsReadOnlyEnabled,
this.cpHost, CoprocessorHost.MASTER_COPROCESSOR_CONF_KEY,
this.maintenanceMode,
- this.toString(), val -> this.isGlobalReadOnlyEnabled = val,
- conf -> initializeCoprocessorHost(newConf));
+ this.toString(), conf -> {
+ this.initializeCoprocessorHost(conf);
+ CoprocessorConfigurationUtil.updateCoprocessorListInConf(this.conf,
conf,
+ CoprocessorHost.MASTER_COPROCESSOR_CONF_KEY);
Review Comment:
I added this to satisfy a unit test in
`TestReadOnlyControllerCoprocessorLoading`. The dynamic configuration worked
as expected without this in local deployments or in a docker container setup.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]