You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by GitBox <gi...@apache.org> on 2022/12/19 05:34:46 UTC

[GitHub] [hbase] Apache9 commented on a diff in pull request #4925: HBASE-27514 Move some persistent states from zookeeper to master region

Apache9 commented on code in PR #4925:
URL: https://github.com/apache/hbase/pull/4925#discussion_r1051826328


##########
hbase-server/src/main/java/org/apache/hadoop/hbase/master/balancer/LoadBalancerStateStore.java:
##########
@@ -15,60 +15,52 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package org.apache.hadoop.hbase.zookeeper;
+package org.apache.hadoop.hbase.master.balancer;
 
 import java.io.IOException;
-import org.apache.hadoop.hbase.Abortable;
 import org.apache.hadoop.hbase.exceptions.DeserializationException;
-import org.apache.hadoop.hbase.util.Bytes;
+import org.apache.hadoop.hbase.master.MasterStateStore;
+import org.apache.hadoop.hbase.master.region.MasterRegion;
+import org.apache.hadoop.hbase.zookeeper.ZKWatcher;
 import org.apache.yetus.audience.InterfaceAudience;
 import org.apache.zookeeper.KeeperException;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
 
 import org.apache.hadoop.hbase.shaded.protobuf.ProtobufUtil;
 import org.apache.hadoop.hbase.shaded.protobuf.generated.LoadBalancerProtos;
 
 /**
- * Tracks the load balancer state up in ZK
+ * Store the balancer state.
  */
 @InterfaceAudience.Private
-public class LoadBalancerTracker extends ZKNodeTracker {
-  private static final Logger LOG = LoggerFactory.getLogger(LoadBalancerTracker.class);
+public class LoadBalancerStateStore extends MasterStateStore {

Review Comment:
   The protobuf message is different.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@hbase.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org