Description
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.
Attachments
Issue Links
- is related to
-
LOG4J2-442 Log4j2 Database insert problem in Websphere
- Resolved
-
LOG4J2-457 JDBCAppender does not release JDBC connections to the connection pool when WAR/EAR is stopped
- Resolved
-
LOG4J2-438 JDBCDatabaseManager does not send commit command
- Resolved
-
LOG4J2-489 Should JPADatabaseManager being using so many transactions?
- Closed
- relates to
-
LOG4J2-442 Log4j2 Database insert problem in Websphere
- Resolved
-
LOG4J2-457 JDBCAppender does not release JDBC connections to the connection pool when WAR/EAR is stopped
- Resolved
-
LOG4J2-469 FailoverAppender does not retry back for Primary target
- Resolved
-
LOG4J2-438 JDBCDatabaseManager does not send commit command
- Resolved
-
LOG4J2-489 Should JPADatabaseManager being using so many transactions?
- Closed