bookkeeper-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zhai...@apache.org
Subject [bookkeeper] branch master updated: ISSUE #235: Setter for JournalMaxGroupWaitMSec/JOURNAL_MAX_GROUP_WAIT_M…
Date Sun, 09 Jul 2017 07:36:24 GMT
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 <eolivelli@apache.org>
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:
        `<Issue # or BOOKKEEPER-#>: 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 `<Issue # or BOOKKEEPER-#>` in the title with the actual Issue/JIRA
number.
    
    ---
    
    Author: Enrico Olivelli <eolivelli@apache.org>
    
    Reviewers: Jia Zhai <None>
    
    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" <commits@bookkeeper.apache.org>'].

Mime
View raw message