From derby-dev-return-58257-apmail-db-derby-dev-archive=db.apache.org@db.apache.org Wed Apr 02 10:22:52 2008 Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 66679 invoked from network); 2 Apr 2008 10:22:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Apr 2008 10:22:52 -0000 Received: (qmail 22993 invoked by uid 500); 2 Apr 2008 10:22:51 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 22965 invoked by uid 500); 2 Apr 2008 10:22:51 -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 22956 invoked by uid 99); 2 Apr 2008 10:22:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Apr 2008 03:22:51 -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, 02 Apr 2008 10:22:18 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C331F234C0B3 for ; Wed, 2 Apr 2008 03:20:24 -0700 (PDT) Message-ID: <1676243138.1207131624797.JavaMail.jira@brutus> Date: Wed, 2 Apr 2008 03:20:24 -0700 (PDT) From: "V.Narayanan (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Assigned: (DERBY-3567) AsynchronousLogShipper#forceFlush should time out In-Reply-To: <212856340.1206436644948.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-3567?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] V.Narayanan reassigned DERBY-3567: ---------------------------------- Assignee: J=C3=B8rgen L=C3=B8land The patch attached by Jorgen to this issue looks good to me. Jorgen has also indicated that the replication suite of tests pass. Hence assigning this issue to him. > AsynchronousLogShipper#forceFlush should time out > ------------------------------------------------- > > Key: DERBY-3567 > URL: https://issues.apache.org/jira/browse/DERBY-3567 > 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: J=C3=B8rgen L=C3=B8land > Attachments: derby-3567-1a.diff, derby-3567-1a.stat > > > If the network connection to the slave is lost, ObjectOutputStream#writeO= bject may be blocked for 2 minutes before failing (not configurable TCP pro= perty).=20 > Currently, ALS#forceFlush sends a chunk of log to the slave using the cli= ent thread. The client thread cannot be blocked for 2 minutes before giving= up. Rather, it should notify the log shipper that it has to send log immed= iately, and then wait for a short while (until notified or e.g. maximum 5 s= econds). If the log shipper has not been able to empty some space in the lo= g buffer by then, replication should be stopped. --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.