cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joel Knighton (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CASSANDRA-12011) Logback shutdown hook races with StorageServiceShutdownHook
Date Wed, 15 Jun 2016 18:06:09 GMT
Joel Knighton created CASSANDRA-12011:
-----------------------------------------

             Summary: Logback shutdown hook races with StorageServiceShutdownHook
                 Key: CASSANDRA-12011
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-12011
             Project: Cassandra
          Issue Type: Bug
            Reporter: Joel Knighton
            Priority: Minor
             Fix For: 2.2.x, 3.0.x, 3.x


In {{StorageService}}, we add a JVM shutdown hook called {{StorageServiceShutdownHook}} that
shuts down gossip and flushes writes for non durable keyspaces, among other things. 

In {{logback.xml}}, we add a JVM shutdown hook that tears down logback resources.

Since JVM shutdown hooks are started concurrently, the logback shutdown hook almost always
completes during the {{StorageServiceShutdownHook}}, which means that any log statements in
this hook will not work since the logback resources have been torn down.

This makes debugging the {{StorageServiceShutdownHook}} challenging. We should do our own
logback teardown that does not run until after the completion of any Cassandra-oriented JVM
shutdown hooks such as the {{StorageServiceShutdownHook}}.





--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message