From 8fc010636a265cd4dc435d0905583af8e06a4600 Mon Sep 17 00:00:00 2001 From: Guanghao Zhang Date: Sun, 30 Jul 2017 18:58:47 +0800 Subject: [PATCH] HBASE-18481 The autoFlush flag was not used in PE tool --- .../java/org/apache/hadoop/hbase/PerformanceEvaluation.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/PerformanceEvaluation.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/PerformanceEvaluation.java index cabbdb46e1e..d6f0af929fb 100644 --- a/hbase-server/src/test/java/org/apache/hadoop/hbase/PerformanceEvaluation.java +++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/PerformanceEvaluation.java @@ -1466,6 +1466,9 @@ public class PerformanceEvaluation extends Configured implements Tool { } put.setDurability(opts.writeToWAL ? Durability.SYNC_WAL : Durability.SKIP_WAL); mutator.mutate(put); + if (opts.autoFlush) { + mutator.flush(); + } } } @@ -1664,6 +1667,9 @@ public class PerformanceEvaluation extends Configured implements Tool { } put.setDurability(opts.writeToWAL ? Durability.SYNC_WAL : Durability.SKIP_WAL); mutator.mutate(put); + if (opts.autoFlush) { + mutator.flush(); + } } }