[
https://issues.apache.org/jira/browse/HBASE-25533?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17272535#comment-17272535
]
Baiqiang Zhao commented on HBASE-25533:
---------------------------------------
My current idea is to remove the metadata if it is set to an empty string, just
like null. Because empty string is meaningless. And maybe HBCK should support
to repair this extreme situation. Ping [~stack] [~zhangduo] [~vjasani]
> The metadata of the table and family should not be an empty string
> -------------------------------------------------------------------
>
> Key: HBASE-25533
> URL: https://issues.apache.org/jira/browse/HBASE-25533
> Project: HBase
> Issue Type: Bug
> Reporter: Baiqiang Zhao
> Assignee: Baiqiang Zhao
> Priority: Major
>
> If the metadata of the table is set to null, the metadata will be removed.
> The code is:
> [https://github.com/apache/hbase/blob/b07549febb462b072792659051c64bb54d122771/hbase-client/src/main/java/org/apache/hadoop/hbase/client/TableDescriptorBuilder.java#L721]
> But if set metadata as empty string, serious errors may occur. Some metadata
> is number,
> it will throw a NumberFormatException when converting empty string to a
> number. If the exception is thrown when the region is initialized, all
> regions of the table will be in RIT.
> The following command can reproduced this issue. *Note: Please execute in the
> test environment.*
> {code:java}
> alter 'test_table', CONFIGURATION =>
> {'hbase.rs.cachecompactedblocksonwrite.threshold' => ''}
> {code}
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)