[
https://issues.apache.org/jira/browse/HBASE-29756?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18056493#comment-18056493
]
Andor Molnar edited comment on HBASE-29756 at 2/4/26 4:29 PM:
--------------------------------------------------------------
[~anuj.sharma]
I think the co-processors should be registered regardless of the flag's state.
So, I imagine we need to have a feature flag which helps to register all
co-procs, like *hbase.global.readonly.supported* = true/false, and we also need
a separate read-only switch: *hbase.global.readonly.enabled* = true/false.
As a consequence, the "enabled" property won't do anything if the "supported"
flag is false. Supported flag is not dynamic, so it cannot be changed at
runtime.
was (Author: andorm):
[~anuj.sharma]
I think the co-processors should be registered regardless of the flag's state.
So, I imagine we need to have a feature flag which helps to register all
co-procs, like *hbase.global.readonly.supported* = true/false, and we also need
a separate read-only switch: *hbase.global.readonly.enabled* = true/false.
> Programmatically register related co-processor during initialization
> --------------------------------------------------------------------
>
> Key: HBASE-29756
> URL: https://issues.apache.org/jira/browse/HBASE-29756
> Project: HBase
> Issue Type: Sub-task
> Reporter: Anuj Sharma
> Assignee: Anuj Sharma
> Priority: Major
>
> Currently, when user wants to make cluster read-only, he has to add property
> {{ <property>}}
> {{ <name>hbase.global.readonly.enabled</name>}}
> {{ <value>false</value>}}
> {{ </property>}}
> and coprocessors for master, region and region server as follows:
> {{ <property>}}
> {{ <name>hbase.coprocessor.master.classes</name>}}
> {{
> <value>org.apache.hadoop.hbase.security.access.ReadOnlyController</value>}}
> {{ </property>}}
> {{ <property>}}
> {{ <name>hbase.coprocessor.regionserver.classes</name>}}
> {{
> <value>org.apache.hadoop.hbase.security.access.ReadOnlyController</value>}}
> {{ </property>}}
> {{ <property>}}
> {{ <name>hbase.coprocessor.region.classes</name>}}
> {{
> <value>org.apache.hadoop.hbase.security.access.ReadOnlyController</value>}}
> {{ </property>}}
>
> In this change we are planning to remove this manual process and when user
> add the read-only property then co-processors will get automatically
> registered during initialization.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)