lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yo...@apache.org
Subject svn commit: r1726045 - in /lucene/dev/trunk/solr/core/src/java/org/apache/solr/update: CdcrTransactionLog.java CdcrUpdateLog.java HdfsUpdateLog.java PeerSync.java TransactionLog.java UpdateLog.java
Date Thu, 21 Jan 2016 18:09:11 GMT
Author: yonik
Date: Thu Jan 21 18:09:11 2016
New Revision: 1726045

URL: http://svn.apache.org/viewvc?rev=1726045&view=rev
Log:
SOLR-8359: revert change of cached debug levels to statics

Modified:
    lucene/dev/trunk/solr/core/src/java/org/apache/solr/update/CdcrTransactionLog.java
    lucene/dev/trunk/solr/core/src/java/org/apache/solr/update/CdcrUpdateLog.java
    lucene/dev/trunk/solr/core/src/java/org/apache/solr/update/HdfsUpdateLog.java
    lucene/dev/trunk/solr/core/src/java/org/apache/solr/update/PeerSync.java
    lucene/dev/trunk/solr/core/src/java/org/apache/solr/update/TransactionLog.java
    lucene/dev/trunk/solr/core/src/java/org/apache/solr/update/UpdateLog.java

Modified: lucene/dev/trunk/solr/core/src/java/org/apache/solr/update/CdcrTransactionLog.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/core/src/java/org/apache/solr/update/CdcrTransactionLog.java?rev=1726045&r1=1726044&r2=1726045&view=diff
==============================================================================
--- lucene/dev/trunk/solr/core/src/java/org/apache/solr/update/CdcrTransactionLog.java (original)
+++ lucene/dev/trunk/solr/core/src/java/org/apache/solr/update/CdcrTransactionLog.java Thu
Jan 21 18:09:11 2016
@@ -48,7 +48,7 @@ public class CdcrTransactionLog extends
   long startVersion; // (absolute) version of the first element of this transaction log
 
   private static final Logger log = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());
-  private static boolean debug = log.isDebugEnabled();
+  private boolean debug = log.isDebugEnabled();
 
   CdcrTransactionLog(File tlogFile, Collection<String> globalStrings) {
     super(tlogFile, globalStrings);

Modified: lucene/dev/trunk/solr/core/src/java/org/apache/solr/update/CdcrUpdateLog.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/core/src/java/org/apache/solr/update/CdcrUpdateLog.java?rev=1726045&r1=1726044&r2=1726045&view=diff
==============================================================================
--- lucene/dev/trunk/solr/core/src/java/org/apache/solr/update/CdcrUpdateLog.java (original)
+++ lucene/dev/trunk/solr/core/src/java/org/apache/solr/update/CdcrUpdateLog.java Thu Jan
21 18:09:11 2016
@@ -64,7 +64,7 @@ public class CdcrUpdateLog extends Updat
   public static String LOG_FILENAME_PATTERN = "%s.%019d.%1d";
 
   private static final Logger log = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());
-  private static boolean debug = log.isDebugEnabled();
+  private boolean debug = log.isDebugEnabled();
 
   @Override
   public void init(UpdateHandler uhandler, SolrCore core) {

Modified: lucene/dev/trunk/solr/core/src/java/org/apache/solr/update/HdfsUpdateLog.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/core/src/java/org/apache/solr/update/HdfsUpdateLog.java?rev=1726045&r1=1726044&r2=1726045&view=diff
==============================================================================
--- lucene/dev/trunk/solr/core/src/java/org/apache/solr/update/HdfsUpdateLog.java (original)
+++ lucene/dev/trunk/solr/core/src/java/org/apache/solr/update/HdfsUpdateLog.java Thu Jan
21 18:09:11 2016
@@ -52,7 +52,7 @@ public class HdfsUpdateLog extends Updat
   private Integer tlogDfsReplication;
 
   private static final Logger log = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());
-  private static boolean debug = log.isDebugEnabled();
+  private boolean debug = log.isDebugEnabled();
   
   // used internally by tests to track total count of failed tran log loads in init
   public static AtomicLong INIT_FAILED_LOGS_COUNT = new AtomicLong();

Modified: lucene/dev/trunk/solr/core/src/java/org/apache/solr/update/PeerSync.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/core/src/java/org/apache/solr/update/PeerSync.java?rev=1726045&r1=1726044&r2=1726045&view=diff
==============================================================================
--- lucene/dev/trunk/solr/core/src/java/org/apache/solr/update/PeerSync.java (original)
+++ lucene/dev/trunk/solr/core/src/java/org/apache/solr/update/PeerSync.java Thu Jan 21 18:09:11
2016
@@ -59,7 +59,7 @@ import static org.apache.solr.update.pro
 /** @lucene.experimental */
 public class PeerSync  {
   private static final Logger log = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());
-  private static boolean debug = log.isDebugEnabled();
+  private boolean debug = log.isDebugEnabled();
 
   private List<String> replicas;
   private int nUpdates;

Modified: lucene/dev/trunk/solr/core/src/java/org/apache/solr/update/TransactionLog.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/core/src/java/org/apache/solr/update/TransactionLog.java?rev=1726045&r1=1726044&r2=1726045&view=diff
==============================================================================
--- lucene/dev/trunk/solr/core/src/java/org/apache/solr/update/TransactionLog.java (original)
+++ lucene/dev/trunk/solr/core/src/java/org/apache/solr/update/TransactionLog.java Thu Jan
21 18:09:11 2016
@@ -65,8 +65,8 @@ import org.slf4j.LoggerFactory;
  */
 public class TransactionLog implements Closeable {
   private static final Logger log = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());
-  private static boolean debug = log.isDebugEnabled();
-  private static boolean trace = log.isTraceEnabled();
+  private boolean debug = log.isDebugEnabled();
+  private boolean trace = log.isTraceEnabled();
 
   public final static String END_MESSAGE="SOLR_TLOG_END";
 

Modified: lucene/dev/trunk/solr/core/src/java/org/apache/solr/update/UpdateLog.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/core/src/java/org/apache/solr/update/UpdateLog.java?rev=1726045&r1=1726044&r2=1726045&view=diff
==============================================================================
--- lucene/dev/trunk/solr/core/src/java/org/apache/solr/update/UpdateLog.java (original)
+++ lucene/dev/trunk/solr/core/src/java/org/apache/solr/update/UpdateLog.java Thu Jan 21 18:09:11
2016
@@ -77,8 +77,8 @@ public class UpdateLog implements Plugin
   public static String TLOG_NAME="tlog";
 
   private static final Logger log = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());
-  private static boolean debug = log.isDebugEnabled();
-  private static boolean trace = log.isTraceEnabled();
+  private boolean debug = log.isDebugEnabled();
+  private boolean trace = log.isTraceEnabled();
 
   // TODO: hack
   public FileSystem getFs() {



Mime
View raw message