zookeeper-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anmolnar <...@git.apache.org>
Subject [GitHub] zookeeper pull request #567: ZOOKEEPER-3071: Add a config parameter to contr...
Date Fri, 13 Jul 2018 14:41:38 GMT
Github user anmolnar commented on a diff in the pull request:

    https://github.com/apache/zookeeper/pull/567#discussion_r202364176
  
    --- Diff: src/java/main/org/apache/zookeeper/server/persistence/FileTxnLog.java ---
    @@ -347,6 +397,13 @@ public synchronized void commit() throws IOException {
             while (streamsToFlush.size() > 1) {
                 streamsToFlush.removeFirst().close();
             }
    +
    +        // Roll the log file if we exceed the size limit
    +        long logSize = getCurrentLogSize();
    +        if ((logSizeLimit > 0) && (logSize > logSizeLimit)) {
    +            LOG.debug("Log size limit reached: " + logSize);
    --- End diff --
    
    Use message formatter.


---

Mime
View raw message