Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 29046 invoked from network); 27 Mar 2008 10:49:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Mar 2008 10:49:38 -0000 Received: (qmail 57065 invoked by uid 500); 27 Mar 2008 10:49:36 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 57033 invoked by uid 500); 27 Mar 2008 10:49:36 -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 57024 invoked by uid 99); 27 Mar 2008 10:49:36 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Mar 2008 03:49:36 -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; Thu, 27 Mar 2008 10:48:54 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 9A941234C0A8 for ; Thu, 27 Mar 2008 03:47:24 -0700 (PDT) Message-ID: <1036315376.1206614844632.JavaMail.jira@brutus> Date: Thu, 27 Mar 2008 03:47:24 -0700 (PDT) From: "V.Narayanan (JIRA)" 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 ] V.Narayanan updated DERBY-3526: ------------------------------- Attachment: Derby3526_1.stat Derby3526_1.diff Thanks for looking at the issue oystein. Fixed issue pointed! > 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 > 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.