You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Zach York (Jira)" <ji...@apache.org> on 2020/08/21 00:32:00 UTC

[jira] [Created] (HBASE-24922) InitMetaProcedure create Namespace is not Idempotent

Zach York created HBASE-24922:
---------------------------------

             Summary: InitMetaProcedure create Namespace is not Idempotent
                 Key: HBASE-24922
                 URL: https://issues.apache.org/jira/browse/HBASE-24922
             Project: HBase
          Issue Type: Bug
          Components: meta, Region Assignment
    Affects Versions: 3.0.0-alpha-1
            Reporter: Zach York


If InitMetaProcedure is retried after creating at least one namespace directory: https://github.com/apache/hbase/blob/master/hbase-server/src/main/java/org/apache/hadoop/hbase/master/procedure/InitMetaProcedure.java#L115, it will not be able to recover as the procedure does not check for existence of the directories before attempting to create them.

We should check for existence of the directory first and only execute createDirectories if they do not exist. The rest of the procedure looks like it is idempotent. We can additionally optimize to not overwrite the column families.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)