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)