Darrel Schneider created GEODE-10338: ----------------------------------------
Summary: LogWriterAppender keeps a InternalDistributedSystem alive after disconnect Key: GEODE-10338 URL: https://issues.apache.org/jira/browse/GEODE-10338 Project: Geode Issue Type: Bug Components: logging Reporter: Darrel Schneider The LogWriterAppender has a "logWriter" field that can be a ManagerLogWriter. When stopSession is called on the appender, it closes the ManagerLogWriter's files but does not release its reference to it and the LogWriterAppender instance is kept around after disconnect. So this ends up keeping the InternalDistributedSystem alive. To fix this change LogWriterAppender.stopSession like so: {code:java} public synchronized void stopSession() { LOGGER.info("Stopping session in {}.", this); if (logWriter == null) { // we are probably already paused but make sure we are pause(); return; } logWriter.shuttingDown(); pause(); logWriter.closingLogFile(); logWriter = null; } {code} -- This message was sent by Atlassian Jira (v8.20.7#820007)