Return-Path: X-Original-To: apmail-jackrabbit-oak-commits-archive@minotaur.apache.org Delivered-To: apmail-jackrabbit-oak-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 08F6F10610 for ; Tue, 1 Apr 2014 15:21:49 +0000 (UTC) Received: (qmail 61874 invoked by uid 500); 1 Apr 2014 15:21:37 -0000 Delivered-To: apmail-jackrabbit-oak-commits-archive@jackrabbit.apache.org Received: (qmail 61484 invoked by uid 500); 1 Apr 2014 15:21:23 -0000 Mailing-List: contact oak-commits-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: oak-dev@jackrabbit.apache.org Delivered-To: mailing list oak-commits@jackrabbit.apache.org Received: (qmail 61363 invoked by uid 99); 1 Apr 2014 15:21:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Apr 2014 15:21:19 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Apr 2014 15:21:17 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id D5DAF2388868; Tue, 1 Apr 2014 15:20:57 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1583712 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/commit/BackgroundObserver.java Date: Tue, 01 Apr 2014 15:20:57 -0000 To: oak-commits@jackrabbit.apache.org From: mduerig@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20140401152057.D5DAF2388868@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: mduerig Date: Tue Apr 1 15:20:57 2014 New Revision: 1583712 URL: http://svn.apache.org/r1583712 Log: OAK-1659: Improve CommitRateLimiter to delay commits Remove logging from BackgroundObserver as this is now better handled in subclasses Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/commit/BackgroundObserver.java Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/commit/BackgroundObserver.java URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/commit/BackgroundObserver.java?rev=1583712&r1=1583711&r2=1583712&view=diff ============================================================================== --- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/commit/BackgroundObserver.java (original) +++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/commit/BackgroundObserver.java Tue Apr 1 15:20:57 2014 @@ -51,7 +51,6 @@ import org.slf4j.LoggerFactory; * to just one change. */ public class BackgroundObserver implements Observer, Closeable { - private static final Logger LOG = LoggerFactory.getLogger(BackgroundObserver.class); /** * Signal for the background thread to stop processing changes. @@ -105,11 +104,6 @@ public class BackgroundObserver implemen private boolean full; /** - * Log a warning once when the queue is full. Reset once the queue is back empty. - */ - private volatile boolean warnOnFullQueue = true; - - /** * Current background task */ private volatile ListenableFutureTask currentTask = ListenableFutureTask.completed(); @@ -233,10 +227,6 @@ public class BackgroundObserver implemen // Try to add this change to the queue without blocking, and // mark the queue as full if there wasn't enough space full = !queue.offer(change); - if (full && warnOnFullQueue) { - warnOnFullQueue = false; - LOG.warn("Revision queue is full. Further revisions will be compacted."); - } if (!full) { // Keep track of the last change added, so we can do the