hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-18875) Thrift server supports read-only mode
Date Mon, 25 Sep 2017 16:10:00 GMT

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

Ted Yu commented on HBASE-18875:
--------------------------------

{code}
558	      throw getTIOError(new DoNotRetryIOException("Thrift Server is in Read-only mode."));
{code}
You don't need to create instance of DoNotRetryIOException every time the check fails.
A singleton of DoNotRetryIOException instance should suffice.

> Thrift server supports read-only mode
> -------------------------------------
>
>                 Key: HBASE-18875
>                 URL: https://issues.apache.org/jira/browse/HBASE-18875
>             Project: HBase
>          Issue Type: New Feature
>          Components: Thrift
>    Affects Versions: 2.0.0, 3.0.0, 1.5.0
>            Reporter: Guangxu Cheng
>            Assignee: Guangxu Cheng
>         Attachments: HBASE-18875.patch
>
>
> Provide option for thrift server to support read-only mode.
> To start the thrift server, use the -ro option or set hbase.thrift.readonly to true.
> false: Both read and write request are permitted.(all methods)
> true : Only the read request is permitted.  (only get/scan method)



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message