kgeisz commented on code in PR #6931:
URL: https://github.com/apache/hbase/pull/6931#discussion_r2066899469


##########
hbase-server/src/main/java/org/apache/hadoop/hbase/security/access/ReadOnlyController.java:
##########
@@ -390,4 +390,12 @@ public void 
preCleanupBulkLoad(ObserverContext<RegionCoprocessorEnvironment> ctx
     internalReadOnlyGuard();
     BulkLoadObserver.super.preCleanupBulkLoad(ctx);
   }
+
+  @Override
+  public void onConfigurationChange(Configuration conf) {
+    this.globalReadOnlyEnabled = 
conf.getBoolean(HConstants.HBASE_GLOBAL_READONLY_ENABLED_KEY,
+      HConstants.HBASE_GLOBAL_READONLY_ENABLED_DEFAULT);
+    LOG.info("Config {} has been dynamically changed to {}",
+      HConstants.HBASE_GLOBAL_READONLY_ENABLED_KEY, 
this.globalReadOnlyEnabled);

Review Comment:
   Sounds good.  I'll add a check here.



-- 
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]

Reply via email to