Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 33419 invoked from network); 28 Mar 2008 10:32:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Mar 2008 10:32:42 -0000 Received: (qmail 72133 invoked by uid 500); 28 Mar 2008 10:32:41 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 71893 invoked by uid 500); 28 Mar 2008 10:32:40 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 71286 invoked by uid 99); 28 Mar 2008 10:32:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Mar 2008 03:32:38 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Mar 2008 10:32:06 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id E8162234C0AC for ; Fri, 28 Mar 2008 03:30:25 -0700 (PDT) Message-ID: <2090848500.1206700225949.JavaMail.jira@brutus> Date: Fri, 28 Mar 2008 03:30:25 -0700 (PDT) From: =?utf-8?Q?=C3=98ystein_Gr=C3=B8vlen_=28JIRA=29?= To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-3526) AsynchronousLogShipper#workToDo is blocked while the log shipper sends a log chunk In-Reply-To: <1567995846.1205332851321.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-3526?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] =C3=98ystein Gr=C3=B8vlen updated DERBY-3526: ----------------------------------- Derby Info: (was: [Patch Available]) Fix Version/s: 10.5.0.0 Thanks for the update, Narayanan. Patch Derby3526_1.diff committed at revision 642184. > AsynchronousLogShipper#workToDo is blocked while the log shipper sends a = log chunk > -------------------------------------------------------------------------= --------- > > Key: DERBY-3526 > URL: https://issues.apache.org/jira/browse/DERBY-3526 > Project: Derby > Issue Type: Bug > Components: Replication > Affects Versions: 10.4.0.0, 10.5.0.0 > Reporter: J=C3=B8rgen L=C3=B8land > Assignee: V.Narayanan > Fix For: 10.5.0.0 > > Attachments: Derby3526.diff, Derby3526.stat, Derby3526_1.diff, De= rby3526_1.stat > > > The replication log shipper thread synchronizes on 'this' both when shipp= ing log records (shipALogChunk) and when it waits between log shipments.=20 > Transaction threads may try to wake up the log shipper because log has ar= rived that should be shipped (i.e., through the method workToDo). These thr= eads should not have to wait for the monitor if the log shipper is currentl= y busy shipping log. The solution is to have two monitors - one for log shi= pment and one for waiting between log shipment. > This may seem like a minor issue, but if the TCP connection between maste= r and slave is lost e.g. because a network cable has been unplugged, the lo= g shipper will block for 2 minutes on ObjectOutputStream#writeObject. --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.