Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 7825 invoked from network); 12 Mar 2008 14:42:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Mar 2008 14:42:26 -0000 Received: (qmail 32829 invoked by uid 500); 12 Mar 2008 14:42:22 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 32805 invoked by uid 500); 12 Mar 2008 14:42:22 -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 32786 invoked by uid 99); 12 Mar 2008 14:42:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Mar 2008 07:42:22 -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; Wed, 12 Mar 2008 14:41:41 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4EB4A234C094 for ; Wed, 12 Mar 2008 07:40:51 -0700 (PDT) Message-ID: <1567995846.1205332851321.JavaMail.jira@brutus> Date: Wed, 12 Mar 2008 07:40:51 -0700 (PDT) From: =?utf-8?Q?J=C3=B8rgen_L=C3=B8land_=28JIRA=29?= To: derby-dev@db.apache.org Subject: [jira] Created: (DERBY-3526) AsynchronousLogShipper#workToDo is blocked while the log shipper sends a log chunk 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 AsynchronousLogShipper#workToDo is blocked while the log shipper sends a lo= g chunk ---------------------------------------------------------------------------= ------- Key: DERBY-3526 URL: https://issues.apache.org/jira/browse/DERBY-3526 Project: Derby Issue Type: Bug Affects Versions: 10.4.0.0, 10.5.0.0 Reporter: J=C3=B8rgen L=C3=B8land The replication log shipper thread synchronizes on 'this' both when shippin= g log records (shipALogChunk) and when it waits between log shipments.=20 Transaction threads may try to wake up the log shipper because log has arri= ved that should be shipped (i.e., through the method workToDo). These threa= ds should not have to wait for the monitor if the log shipper is currently = busy shipping log. The solution is to have two monitors - one for log shipm= ent and one for waiting between log shipment. This may seem like a minor issue, but if the TCP connection between master = and slave is lost e.g. because a network cable has been unplugged, the log = 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.