Return-Path: X-Original-To: apmail-jackrabbit-oak-dev-archive@minotaur.apache.org Delivered-To: apmail-jackrabbit-oak-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 745D410DEC for ; Wed, 23 Oct 2013 13:51:45 +0000 (UTC) Received: (qmail 49448 invoked by uid 500); 23 Oct 2013 13:51:44 -0000 Delivered-To: apmail-jackrabbit-oak-dev-archive@jackrabbit.apache.org Received: (qmail 49392 invoked by uid 500); 23 Oct 2013 13:51:41 -0000 Mailing-List: contact oak-dev-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-dev@jackrabbit.apache.org Received: (qmail 49379 invoked by uid 99); 23 Oct 2013 13:51:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Oct 2013 13:51:41 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [64.18.1.183] (HELO exprod6og102.obsmtp.com) (64.18.1.183) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Oct 2013 13:51:34 +0000 Received: from outbound-smtp-1.corp.adobe.com ([192.150.11.134]) by exprod6ob102.postini.com ([64.18.5.12]) with SMTP ID DSNKUmfUURFiin4Xo8RXbTgxsIGPdZ0BSwtv@postini.com; Wed, 23 Oct 2013 06:51:14 PDT Received: from inner-relay-2.corp.adobe.com ([153.32.1.52]) by outbound-smtp-1.corp.adobe.com (8.12.10/8.12.10) with ESMTP id r9NDlViH023287 for ; Wed, 23 Oct 2013 06:47:31 -0700 (PDT) Received: from nahub02.corp.adobe.com (nahub02.corp.adobe.com [10.8.189.98]) by inner-relay-2.corp.adobe.com (8.12.10/8.12.10) with ESMTP id r9NDpDOU004174 for ; Wed, 23 Oct 2013 06:51:13 -0700 (PDT) Received: from eurhub01.eur.adobe.com (10.128.4.30) by nahub02.corp.adobe.com (10.8.189.98) with Microsoft SMTP Server (TLS) id 8.3.327.1; Wed, 23 Oct 2013 06:51:13 -0700 Received: from [10.132.4.26] (10.132.4.26) by eurhub01.eur.adobe.com (10.128.4.111) with Microsoft SMTP Server id 8.3.327.1; Wed, 23 Oct 2013 14:51:10 +0100 Message-ID: <5267D451.9080200@apache.org> Date: Wed, 23 Oct 2013 15:51:13 +0200 From: =?ISO-8859-1?Q?Michael_D=FCrig?= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.0.1 MIME-Version: 1.0 To: Subject: Re: slow observation tests References: <9C0FC4C8E9C29945B01766FC7F9D389818A7A2C624@eurmbx01.eur.adobe.com> In-Reply-To: Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On 23.10.13 3:08 , Jukka Zitting wrote: > We'd just need to change the way we poll the LinkedBlockingQueue in > ChangeDispatcher.Listener. Instead of polling the queue for new > changes once every second, the ChangeProcessor could spawn a separate > background thread that blocks waiting for the queue. As soon as a new > change set is added, the thread would wake up and deliver the relevant > events. This would require a dedicated thread per listener though. AFIR this is way we didn't do it that way. OTOH, it would decouple different listeners from blocking each other. Michael