From 6e4c73147185ae2e5529028c552c47d1edcead36 Mon Sep 17 00:00:00 2001 From: Anu Engineer Date: Tue, 4 Sep 2018 16:27:31 -0700 Subject: [PATCH] HDDS-396. Remove openContainers.db from SCM. Contributed by Dinesh Chitlangia. --- .../src/main/java/org/apache/hadoop/ozone/OzoneConsts.java | 1 - .../src/main/java/org/apache/hadoop/ozone/scm/cli/SQLCLI.java | 4 ---- 2 files changed, 5 deletions(-) diff --git a/hadoop-hdds/common/src/main/java/org/apache/hadoop/ozone/OzoneConsts.java b/hadoop-hdds/common/src/main/java/org/apache/hadoop/ozone/OzoneConsts.java index eb37b79c09..bf4508b99a 100644 --- a/hadoop-hdds/common/src/main/java/org/apache/hadoop/ozone/OzoneConsts.java +++ b/hadoop-hdds/common/src/main/java/org/apache/hadoop/ozone/OzoneConsts.java @@ -92,7 +92,6 @@ public final class OzoneConsts { public static final String CONTAINER_DB_SUFFIX = "container.db"; public static final String SCM_CONTAINER_DB = "scm-" + CONTAINER_DB_SUFFIX; public static final String DN_CONTAINER_DB = "-dn-"+ CONTAINER_DB_SUFFIX; - public static final String OPEN_CONTAINERS_DB = "openContainers.db"; public static final String DELETED_BLOCK_DB = "deletedBlock.db"; public static final String OM_DB_NAME = "om.db"; diff --git a/hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/scm/cli/SQLCLI.java b/hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/scm/cli/SQLCLI.java index 080840a422..522fea9dfd 100644 --- a/hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/scm/cli/SQLCLI.java +++ b/hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/scm/cli/SQLCLI.java @@ -59,7 +59,6 @@ import static org.apache.hadoop.ozone.OzoneConsts.OM_DB_NAME; import static org.apache.hadoop.ozone.OzoneConsts.OM_KEY_PREFIX; import static org.apache.hadoop.ozone.OzoneConsts.OM_USER_PREFIX; -import static org.apache.hadoop.ozone.OzoneConsts.OPEN_CONTAINERS_DB; /** * This is the CLI that can be use to convert an ozone metadata DB into @@ -270,9 +269,6 @@ public int run(String[] args) throws Exception { if (dbName.toString().endsWith(CONTAINER_DB_SUFFIX)) { LOG.info("Converting container DB"); convertContainerDB(dbPath, outPath); - } else if (dbName.toString().equals(OPEN_CONTAINERS_DB)) { - LOG.info("Converting open container DB"); - convertOpenContainerDB(dbPath, outPath); } else if (dbName.toString().equals(OM_DB_NAME)) { LOG.info("Converting om DB"); convertOMDB(dbPath, outPath);