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 B5006200CE4 for ; Mon, 31 Jul 2017 05:29:33 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 9F3EE163BB5; Mon, 31 Jul 2017 03:29:33 +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 E21C3163BB4 for ; Mon, 31 Jul 2017 05:29:32 +0200 (CEST) Received: (qmail 59426 invoked by uid 500); 31 Jul 2017 03:29:31 -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 59417 invoked by uid 99); 31 Jul 2017 03:29:31 -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:29:31 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id A2FD9E10F8; Mon, 31 Jul 2017 03:29:30 +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:29:30 +0000 (UTC) archived-at: Mon, 31 Jul 2017 03:29:33 -0000 Repository: hbase Updated Branches: refs/heads/branch-1.3 3e450f7a0 -> d666ffc7a 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/d666ffc7 Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/d666ffc7 Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/d666ffc7 Branch: refs/heads/branch-1.3 Commit: d666ffc7ad014f21b32cd5d5f7666506aede30b7 Parents: 3e450f7 Author: Guanghao Zhang Authored: Sun Jul 30 18:58:47 2017 +0800 Committer: Guanghao Zhang Committed: Mon Jul 31 11:27:31 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/d666ffc7/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 281ec6f..76da965 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 @@ -1393,6 +1393,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(); + } } } @@ -1590,6 +1593,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(); + } } }