Return-Path: X-Original-To: apmail-directory-dev-archive@www.apache.org Delivered-To: apmail-directory-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7C2559B29 for ; Sat, 24 Dec 2011 20:36:43 +0000 (UTC) Received: (qmail 75978 invoked by uid 500); 24 Dec 2011 20:36:42 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 75936 invoked by uid 500); 24 Dec 2011 20:36:42 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 75929 invoked by uid 99); 24 Dec 2011 20:36:42 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 24 Dec 2011 20:36:42 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ayaselcuk@gmail.com designates 209.85.214.178 as permitted sender) Received: from [209.85.214.178] (HELO mail-tul01m020-f178.google.com) (209.85.214.178) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 24 Dec 2011 20:36:36 +0000 Received: by obcuy5 with SMTP id uy5so7402856obc.37 for ; Sat, 24 Dec 2011 12:36:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=WLURst8Pj2oaHoGmYJhNfKEfHlW7oiYTPL0aUIs3AC4=; b=B7nQmcoNqVzAB8azPJxqoDbxOt0NgF97VPnh5U8sUrXU0twZljt/+FWajtd0y3TJi4 aBF8dap9u2rXfKahinNoNicloE8i0dIsdWs2tR5yIoLDpZzuT3WNHUYz5aIBsimmoiDr uaGHAb3HIxh3FqXOuUnfyyR/Q5/6vBiuv7EG0= MIME-Version: 1.0 Received: by 10.182.92.97 with SMTP id cl1mr17154575obb.21.1324758974039; Sat, 24 Dec 2011 12:36:14 -0800 (PST) Received: by 10.182.227.42 with HTTP; Sat, 24 Dec 2011 12:36:14 -0800 (PST) In-Reply-To: <4EF6027F.5040606@gmail.com> References: <4EF6027F.5040606@gmail.com> Date: Sat, 24 Dec 2011 22:36:14 +0200 Message-ID: Subject: Re: Transaction Synchronization thread : feature request From: Selcuk AYA To: Apache Directory Developers List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On Sat, Dec 24, 2011 at 6:49 PM, Emmanuel Lecharny wr= ote: > Hi, > > I have 'workarounded' the schema tests whch were failing because we were > expecting the modified elements to be present on disk at the end of each > tests. > > Sadly, the txn thread is flushing them every 100ms only, which introduces= a > delay that needs to be added in the test. > > Not a big deal, but for schema elements, we would like to have those > elements being flushed immediately. > > What would be good is a way to interrupt the thread when needed. there is an applyPendingTxns() method which any thread can call to flush the pending changes to the partitions. You can call this method before reading schema data from disk. > > -- > Regards, > Cordialement, > Emmanuel L=E9charny > www.iktek.com >