cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sn...@apache.org
Subject [3/6] cassandra git commit: Reloading logback.xml does not work
Date Thu, 09 Feb 2017 20:49:14 GMT
Reloading logback.xml does not work

patch by Robert Stupp; reviewed by Yuki Morishita for CASSANDRA-13173


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/e885886d
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/e885886d
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/e885886d

Branch: refs/heads/trunk
Commit: e885886d5c92bfd8d2fa1596bfa86d6a5a8d89bb
Parents: a696ab3
Author: Robert Stupp <snazy@snazy.de>
Authored: Thu Feb 9 21:43:43 2017 +0100
Committer: Robert Stupp <snazy@snazy.de>
Committed: Thu Feb 9 21:45:44 2017 +0100

----------------------------------------------------------------------
 CHANGES.txt                                                   | 1 +
 .../cassandra/cql3/functions/ThreadAwareSecurityManager.java  | 7 +++++++
 2 files changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/e885886d/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index d8c1625..ae7b069 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,4 +1,5 @@
 3.0.11
+ * Reloading logback.xml does not work (CASSANDRA-13173)
  * Lightweight transactions temporarily fail after upgrade from 2.1 to 3.0 (CASSANDRA-13109)
  * Duplicate rows after upgrading from 2.1.16 to 3.0.10/3.9 (CASSANDRA-13125)
  * Fix UPDATE queries with empty IN restrictions (CASSANDRA-13152)

http://git-wip-us.apache.org/repos/asf/cassandra/blob/e885886d/src/java/org/apache/cassandra/cql3/functions/ThreadAwareSecurityManager.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/cql3/functions/ThreadAwareSecurityManager.java
b/src/java/org/apache/cassandra/cql3/functions/ThreadAwareSecurityManager.java
index 676117d..3d97790 100644
--- a/src/java/org/apache/cassandra/cql3/functions/ThreadAwareSecurityManager.java
+++ b/src/java/org/apache/cassandra/cql3/functions/ThreadAwareSecurityManager.java
@@ -105,6 +105,13 @@ public final class ThreadAwareSecurityManager extends SecurityManager
         SMAwareReconfigureOnChangeFilter(ReconfigureOnChangeFilter reconfigureOnChangeFilter)
         {
             setRefreshPeriod(reconfigureOnChangeFilter.getRefreshPeriod());
+            setName(reconfigureOnChangeFilter.getName());
+            setContext(reconfigureOnChangeFilter.getContext());
+            if (reconfigureOnChangeFilter.isStarted())
+            {
+                reconfigureOnChangeFilter.stop();
+                start();
+            }
         }
 
         protected boolean changeDetected(long now)


Mime
View raw message