[ 
https://issues.apache.org/jira/browse/HBASE-29775?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18047747#comment-18047747
 ] 

JinHyuk Kim commented on HBASE-29775:
-------------------------------------

Tested with CLI
{code:java}
$ ./bin/hbase org.apache.hadoop.hbase.http.log.LogLevel -setlevel 
localhost:16010 org.apache.hadoop.hbase.http.log.LogLevel WARN

Connecting to 
http://localhost:16010/logLevel?log=org.apache.hadoop.hbase.http.log.LogLevel&level=WARN
Exception in thread "main" java.io.IOException: HTTP status [403], message 
[Modification of HBase via the UI is disallowed in configuration.], URL 
[/logLevel], exception [Error 403 Modification of HBase via the UI is 
disallowed in configuration.]
        at 
org.apache.hadoop.hbase.http.log.LogLevelExceptionUtils.validateResponse(LogLevelExceptionUtils.java:76)
        at 
org.apache.hadoop.hbase.http.log.LogLevel$CLI.fetchResponse(LogLevel.java:279)
        at 
org.apache.hadoop.hbase.http.log.LogLevel$CLI.fetchSetLevelResponse(LogLevel.java:235)
        at 
org.apache.hadoop.hbase.http.log.LogLevel$CLI.doSetLevel(LogLevel.java:231)
        at 
org.apache.hadoop.hbase.http.log.LogLevel$CLI.sendLogLevelRequest(LogLevel.java:125)
        at org.apache.hadoop.hbase.http.log.LogLevel$CLI.run(LogLevel.java:107)
        at org.apache.hadoop.hbase.http.log.LogLevel.main(LogLevel.java:71) 
{code}

> Allow inspecting log levels in Master UI in read-only mode
> ----------------------------------------------------------
>
>                 Key: HBASE-29775
>                 URL: https://issues.apache.org/jira/browse/HBASE-29775
>             Project: HBase
>          Issue Type: Bug
>          Components: UI
>            Reporter: JinHyuk Kim
>            Assignee: JinHyuk Kim
>            Priority: Minor
>              Labels: pull-request-available
>         Attachments: screenShot 2025-12-12 pm 11.24.40.png, screenShot 
> 2025-12-13 12.20.50.png, screenShot 2025-12-13 12.29.05.png, screenShot 
> 2025-12-13 12.29.17.png
>
>
> h2. *Description*
> When {{hbase.master.ui.readonly}} is set to {{true}}, the HBase Master UI is 
> intended to operate in a read-only mode, preventing any state-changing 
> operations through the UI.
> However, in the current behavior, the log level page becomes completely 
> inaccessible in read-only mode. This makes it impossible to *check* the 
> current log level configuration, even though checking log levels is a purely 
> observational operation and does not modify system state.
> h3. *Current Behavior*
>  * When {{hbase.master.ui.readonly=true}}
>  ** Access to the log level page is blocked entirely
>  ** Users cannot check current log levels
>  ** !screenShot 2025-12-12 pm 11.24.40.png|width=581,height=138!
> h3. *Expected Behavior*
>  * When {{hbase.master.ui.readonly=true}}
>  ** Users *can check* the current log levels
>  ** Any attempt to *modify* log levels via the UI should remain rejected
> h3. *Change Summary*
> Allows access to the log level page in master UI read-only mode for 
> {*}checking purposes only{*}.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to