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 C3A6A200CC0 for ; Sun, 9 Jul 2017 09:36:33 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id C204516B92C; Sun, 9 Jul 2017 07:36: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 1276E16B926 for ; Sun, 9 Jul 2017 09:36:32 +0200 (CEST) Received: (qmail 75027 invoked by uid 500); 9 Jul 2017 07:36:32 -0000 Mailing-List: contact commits-help@bookkeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: bookkeeper-dev@bookkeeper.apache.org Delivered-To: mailing list commits@bookkeeper.apache.org Received: (qmail 75000 invoked by uid 99); 9 Jul 2017 07:36:31 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 09 Jul 2017 07:36:31 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 104D381644; Sun, 9 Jul 2017 07:36:24 +0000 (UTC) Date: Sun, 09 Jul 2017 07:36:24 +0000 To: "commits@bookkeeper.apache.org" Subject: =?utf-8?q?=5Bbookkeeper=5D_branch_master_updated=3A_ISSUE_=23235?= =?utf-8?q?=3A_Setter_for_JournalMaxGroupWaitMSec/JOURNAL=5FMAX=5FGROUP=5F?= =?utf-8?b?V0FJVF9N4oCm?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <149958578442.15927.10225203836979482217@gitbox.apache.org> From: zhaijia@apache.org Reply-To: "commits@bookkeeper.apache.org" X-Git-Host: gitbox.apache.org X-Git-Repo: bookkeeper X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: 9aff6d52e01b50f25f5dbe1086ff10012ca25c48 X-Git-Newrev: 3b33d636a058f211e1cc24b748dc9888256899c6 X-Git-Rev: 3b33d636a058f211e1cc24b748dc9888256899c6 X-Git-NotificationType: ref_changed_plus_diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated archived-at: Sun, 09 Jul 2017 07:36:34 -0000 This is an automated email from the ASF dual-hosted git repository. zhaijia pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/bookkeeper.git The following commit(s) were added to refs/heads/master by this push: new 3b33d63 ISSUE #235: Setter for JournalMaxGroupWaitMSec/JOURNAL_MAX_GROUP_WAIT_M… 3b33d63 is described below commit 3b33d636a058f211e1cc24b748dc9888256899c6 Author: Enrico Olivelli AuthorDate: Sun Jul 9 15:36:11 2017 +0800 ISSUE #235: Setter for JournalMaxGroupWaitMSec/JOURNAL_MAX_GROUP_WAIT_M… Add a setter for JournalMaxGroupWaitMSec configuration property - [x] Make sure the PR title is formatted like: `: Description of pull request` `e.g. Issue 123: Description ...` `e.g. BOOKKEEPER-1234: Description ...` - [x] Make sure tests pass via `mvn clean apache-rat:check install findbugs:check`. - [x] Replace `` in the title with the actual Issue/JIRA number. --- Author: Enrico Olivelli Reviewers: Jia Zhai This closes #236 from eolivelli/JOURNAL_MAX_GROUP_WAIT_MSEC, closes #235 --- .../java/org/apache/bookkeeper/conf/ServerConfiguration.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/bookkeeper-server/src/main/java/org/apache/bookkeeper/conf/ServerConfiguration.java b/bookkeeper-server/src/main/java/org/apache/bookkeeper/conf/ServerConfiguration.java index e08fab0..c6f7c70 100644 --- a/bookkeeper-server/src/main/java/org/apache/bookkeeper/conf/ServerConfiguration.java +++ b/bookkeeper-server/src/main/java/org/apache/bookkeeper/conf/ServerConfiguration.java @@ -1361,6 +1361,18 @@ public class ServerConfiguration extends AbstractConfiguration { } /** + * Sets the maximum latency to impose on a journal write to achieve grouping + * + * @param journalMaxGroupWaitMSec + * maximum time to wait in milliseconds. + * @return server configuration. + */ + public ServerConfiguration setJournalMaxGroupWaitMSec(long journalMaxGroupWaitMSec) { + setProperty(JOURNAL_MAX_GROUP_WAIT_MSEC, journalMaxGroupWaitMSec); + return this; + } + + /** * Maximum bytes to buffer to impose on a journal write to achieve grouping * * @return max bytes to buffer -- To stop receiving notification emails like this one, please contact ['"commits@bookkeeper.apache.org" '].