You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ja...@apache.org on 2019/11/26 20:04:25 UTC

[lucene-solr] 04/04: SOLR-13465 CoreContainer.auditloggerPlugin should be volatile (#672)

This is an automated email from the ASF dual-hosted git repository.

janhoy pushed a commit to branch branch_8_3
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git

commit 7fb0800526eb99748c4aca1a8615e68a87d8e0e5
Author: Jan Høydahl <ja...@apache.org>
AuthorDate: Sat Nov 23 01:21:47 2019 +0100

    SOLR-13465 CoreContainer.auditloggerPlugin should be volatile (#672)
    
    (cherry picked from commit 312431b1821a67c9ddb7e219b9203d6fd7bdd5df)
---
 solr/CHANGES.txt                                           | 2 ++
 solr/core/src/java/org/apache/solr/core/CoreContainer.java | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index 66616fe..6f9a1a8 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -39,6 +39,8 @@ Bug Fixes
 
 * SOLR-13905: Make findRequestType in AuditEvent more robust (janhoy)
 
+* SOLR-13465: CoreContainer.auditloggerPlugin should be volatile (janhoy, hossman)
+
 ==================  8.3.0 ==================
 
 Consult the LUCENE_CHANGES.txt file for additional, low level, changes in this release.
diff --git a/solr/core/src/java/org/apache/solr/core/CoreContainer.java b/solr/core/src/java/org/apache/solr/core/CoreContainer.java
index 4e40fcb..4929c3c 100644
--- a/solr/core/src/java/org/apache/solr/core/CoreContainer.java
+++ b/solr/core/src/java/org/apache/solr/core/CoreContainer.java
@@ -203,7 +203,7 @@ public class CoreContainer {
 
   private volatile SecurityPluginHolder<AuthenticationPlugin> authenticationPlugin;
 
-  private SecurityPluginHolder<AuditLoggerPlugin> auditloggerPlugin;
+  private volatile SecurityPluginHolder<AuditLoggerPlugin> auditloggerPlugin;
 
   private volatile BackupRepositoryFactory backupRepoFactory;