From ed8df5eded2e24121393e978cc80f991701ac2e7 Mon Sep 17 00:00:00 2001 From: Duo Zhang Date: Fri, 28 May 2021 09:19:07 +0800 Subject: [PATCH] HBASE-25758 Move MetaTableAccessor out of hbase-balancer module (#3309) Signed-off-by: Yulin Niu --- .../org/apache/hadoop/hbase/MetaTableAccessor.java | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) rename {hbase-balancer => hbase-server}/src/main/java/org/apache/hadoop/hbase/MetaTableAccessor.java (99%) diff --git a/hbase-balancer/src/main/java/org/apache/hadoop/hbase/MetaTableAccessor.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/MetaTableAccessor.java similarity index 99% rename from hbase-balancer/src/main/java/org/apache/hadoop/hbase/MetaTableAccessor.java rename to hbase-server/src/main/java/org/apache/hadoop/hbase/MetaTableAccessor.java index c987b49862d..d0a735a9017 100644 --- a/hbase-balancer/src/main/java/org/apache/hadoop/hbase/MetaTableAccessor.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/MetaTableAccessor.java @@ -73,7 +73,7 @@ import org.slf4j.LoggerFactory; * family. The column family currently has one column in it, the 'state' column: * *
- * table:state => contains table state
+ * table:state => contains table state
  * 
* * For the catalog family, see the comments of {@link CatalogFamilyFormat} for more details. @@ -747,11 +747,12 @@ public final class MetaTableAccessor { } /** - * Adds daughter region infos to hbase:meta row for the specified region. Note that this does not - * add its daughter's as different rows, but adds information about the daughters in the same row - * as the parent. Use - * {@link #splitRegion(Connection, RegionInfo, long, RegionInfo, RegionInfo, ServerName, int)} if - * you want to do that. + * Adds daughter region infos to hbase:meta row for the specified region. + *

+ * Note that this does not add its daughter's as different rows, but adds information about the + * daughters in the same row as the parent. Now only used in snapshot. Use + * {@link org.apache.hadoop.hbase.master.assignment.RegionStateStore} if you want to split a + * region. * @param connection connection we're using * @param regionInfo RegionInfo of parent region * @param splitA first split daughter of the parent regionInfo