Return-Path: X-Original-To: apmail-logging-log4j-dev-archive@www.apache.org Delivered-To: apmail-logging-log4j-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 9565B10807 for ; Thu, 9 Jan 2014 16:00:15 +0000 (UTC) Received: (qmail 55664 invoked by uid 500); 9 Jan 2014 15:59:03 -0000 Delivered-To: apmail-logging-log4j-dev-archive@logging.apache.org Received: (qmail 55617 invoked by uid 500); 9 Jan 2014 15:58:59 -0000 Mailing-List: contact log4j-dev-help@logging.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Log4J Developers List" Reply-To: "Log4J Developers List" Delivered-To: mailing list log4j-dev@logging.apache.org Received: (qmail 55571 invoked by uid 99); 9 Jan 2014 15:58:54 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Jan 2014 15:58:54 +0000 Date: Thu, 9 Jan 2014 15:58:54 +0000 (UTC) From: "Matt Sicker (JIRA)" To: log4j-dev@logging.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (LOG4J2-407) JDBCAppender cannot recover from loss of database connectivity MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/LOG4J2-407?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13866734#comment-13866734 ] Matt Sicker commented on LOG4J2-407: ------------------------------------ The problem with that is there's a contract on the AbstractDatabaseAppender that writeInternal() won't call connect() more than once. Then again, this isn't using the super.connect() method, so that might be a better idea. > JDBCAppender cannot recover from loss of database connectivity > -------------------------------------------------------------- > > Key: LOG4J2-407 > URL: https://issues.apache.org/jira/browse/LOG4J2-407 > Project: Log4j 2 > Issue Type: Bug > Components: Appenders > Affects Versions: 2.0-beta9 > Reporter: Michael Kloster > Assignee: Nick Williams > > The JDBCAppender holds a single database connection for all its logging. If that database connection is closed, it does not attempt to make a new connection. > Many connection pools automatically close connections after a certain amount of inactivity. (This can be worked around by properly configuring a pool). > Database connectivity issues are also common enough that a long running application may experience temporary network issues. When the network comes back online, the logging will not resume. > I've been meaning to submit a patch for this, but I haven't gotten to it. Since I saw that you are looking to come out of beta soon, I thought I would log this issue in case someone else has time to write the patch before I get to it. -- This message was sent by Atlassian JIRA (v6.1.5#6160) --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org For additional commands, e-mail: log4j-dev-help@logging.apache.org