[
https://issues.apache.org/jira/browse/HBASE-21025?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16577773#comment-16577773
]
Guanghao Zhang commented on HBASE-21025:
----------------------------------------
{code:java}
232 boolean succ = false;
233 try {
234 MetaTableAccessor.updateTableState(master.getConnection(),
tableName, newState);
235 tableName2State.put(tableName, newState);
236 } finally {
237 if (!succ) {
238 tableName2State.remove(tableName);
239 }
240 }
{code}
Miss a “succ = true;”?
> Add cache for TableStateManager
> -------------------------------
>
> Key: HBASE-21025
> URL: https://issues.apache.org/jira/browse/HBASE-21025
> Project: HBase
> Issue Type: Sub-task
> Reporter: Duo Zhang
> Assignee: Duo Zhang
> Priority: Major
> Fix For: 3.0.0, 2.0.2, 2.2.0, 2.1.1
>
> Attachments: HBASE-21025-v1.patch, HBASE-21025-v2.patch,
> HBASE-21025.patch
>
>
> After HBASE-20881, we will check whether a table is disabled in SCP, so we
> need to add cache for it to improve MTTR, and also reduce the request to meta.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)