Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 17A0A200CE4 for ; Mon, 31 Jul 2017 05:25:32 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 16356164067; Mon, 31 Jul 2017 03:25:32 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 5A876164056 for ; Mon, 31 Jul 2017 05:25:31 +0200 (CEST) Received: (qmail 56277 invoked by uid 500); 31 Jul 2017 03:25:29 -0000 Mailing-List: contact commits-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hbase.apache.org Delivered-To: mailing list commits@hbase.apache.org Received: (qmail 56268 invoked by uid 99); 31 Jul 2017 03:25:28 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Jul 2017 03:25:28 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id B47D6E96B7; Mon, 31 Jul 2017 03:25:28 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: zghao@apache.org To: commits@hbase.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: hbase git commit: HBASE-18481 The autoFlush flag was not used in PE tool Date: Mon, 31 Jul 2017 03:25:28 +0000 (UTC) archived-at: Mon, 31 Jul 2017 03:25:32 -0000 Repository: hbase Updated Branches: refs/heads/branch-1.4 f309ea4c5 -> 2734543dc HBASE-18481 The autoFlush flag was not used in PE tool Project: http://git-wip-us.apache.org/repos/asf/hbase/repo Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/2734543d Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/2734543d Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/2734543d Branch: refs/heads/branch-1.4 Commit: 2734543dc79ed437d057e829c33b9b04bffee314 Parents: f309ea4 Author: Guanghao Zhang Authored: Sun Jul 30 18:58:47 2017 +0800 Committer: Guanghao Zhang Committed: Mon Jul 31 11:26:00 2017 +0800 ---------------------------------------------------------------------- .../java/org/apache/hadoop/hbase/PerformanceEvaluation.java | 6 ++++++ 1 file changed, 6 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hbase/blob/2734543d/hbase-server/src/test/java/org/apache/hadoop/hbase/PerformanceEvaluation.java ---------------------------------------------------------------------- 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 e66e133..fb6701f 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 @@ -1408,6 +1408,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(); + } } } @@ -1605,6 +1608,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(); + } } }