From 1315871c8caca5ce09518c5468ea257dbc6c79cd Mon Sep 17 00:00:00 2001 From: Xin Sun Date: Tue, 23 Jul 2024 09:57:07 +0800 Subject: [PATCH] HBASE-28749 Remove the duplicate configurations named hbase.wal.batch.size (#6111) Signed-off-by: Pankaj Signed-off-by: Duo Zhang --- .../org/apache/hadoop/hbase/regionserver/wal/AsyncFSWAL.java | 3 --- .../hadoop/hbase/regionserver/wal/TestAsyncFSWALRollStuck.java | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/wal/AsyncFSWAL.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/wal/AsyncFSWAL.java index 8d4afb322d5a..03f3d2508de8 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/wal/AsyncFSWAL.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/wal/AsyncFSWAL.java @@ -102,9 +102,6 @@ public class AsyncFSWAL extends AbstractFSWAL { private static final Logger LOG = LoggerFactory.getLogger(AsyncFSWAL.class); - public static final String WAL_BATCH_SIZE = "hbase.wal.batch.size"; - public static final long DEFAULT_WAL_BATCH_SIZE = 64L * 1024; - public static final String ASYNC_WAL_USE_SHARED_EVENT_LOOP = "hbase.wal.async.use-shared-event-loop"; public static final boolean DEFAULT_ASYNC_WAL_USE_SHARED_EVENT_LOOP = false; diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/wal/TestAsyncFSWALRollStuck.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/wal/TestAsyncFSWALRollStuck.java index 97488cdfc098..510814ed1279 100644 --- a/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/wal/TestAsyncFSWALRollStuck.java +++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/wal/TestAsyncFSWALRollStuck.java @@ -137,7 +137,7 @@ public static void setUp() throws Exception { Configuration conf = UTIL.getConfiguration(); conf.setClass(AsyncFSWALProvider.WRITER_IMPL, TestAsyncWriter.class, AsyncWriter.class); // set a very small size so we will reach the batch size when writing out a single edit - conf.setLong(AsyncFSWAL.WAL_BATCH_SIZE, 1); + conf.setLong(AbstractFSWAL.WAL_BATCH_SIZE, 1); TN = TableName.valueOf("test"); RI = RegionInfoBuilder.newBuilder(TN).build();