apurtell commented on code in PR #5545:
URL: https://github.com/apache/hbase/pull/5545#discussion_r1416119851


##########
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/DualFileStoreEngine.java:
##########
@@ -0,0 +1,127 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.hadoop.hbase.regionserver;
+
+import java.io.IOException;
+import java.util.List;
+import org.apache.hadoop.conf.Configuration;
+import org.apache.hadoop.fs.Path;
+import org.apache.hadoop.hbase.CellComparator;
+import org.apache.hadoop.hbase.regionserver.compactions.CompactionContext;
+import org.apache.hadoop.hbase.regionserver.compactions.DualFileCompactor;
+import 
org.apache.hadoop.hbase.regionserver.compactions.ExploringCompactionPolicy;
+import 
org.apache.hadoop.hbase.regionserver.compactions.RatioBasedCompactionPolicy;
+import org.apache.hadoop.hbase.regionserver.throttle.ThroughputController;
+import org.apache.hadoop.hbase.security.User;
+import org.apache.hadoop.hbase.util.ReflectionUtils;
+import org.apache.yetus.audience.InterfaceAudience;
+
+/**
+ * HBASE-25972 This store engine allows us to store data in two files,
+ * one for the latest put cells and the other for the rest of the cells (i.e.,
+ * older put cells and delete markers).
+ */
[email protected]
+public class DualFileStoreEngine extends StoreEngine<DefaultStoreFlusher,

Review Comment:
   It's possible to refactor this so DefaultCompactor becomes a dual file 
compactor that only compacts a single file. Can we try that instead? I do not 
think we need a new Store Engine for this. That introduces some configuration 
trouble for operators. Ideally operators do not need to change their store 
engine in order to take advantage of this and other improvements that are 
generally applicable and are in other respects backwards compatible. 
   
   Related comment from the design doc: 
   
https://docs.google.com/document/d/1Ea42tEBh2X2fCq0_tXSe1BgEqBz58oswJULEbA8-MfI/edit?disco=AAABAgKl--o
   > HAS_LATEST_VERSION handling could be introduced into the default store 
engine and compatibility is assured given how you handle HFiles that lack this 
metadata. Also older versions that don't know about and ignore 
HAS_LATEST_VERSION will also function correctly because all HFiles will be 
examined as before.
   > It seems that we can incrementally upgrade or downgrade from a store 
engine that understands HAS_LATEST_VERSION and one that does not, unless I am 
missing something, which is certainly possible. Is my understanding correct? If 
so I am wondering if we really need a new StoreEngine implementation.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to