geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kl...@apache.org
Subject [geode] 11/11: GEODE-2644: Remove log level from MonitorQueryUnderContentionBenchmark
Date Fri, 16 Nov 2018 22:43:27 GMT
This is an automated email from the ASF dual-hosted git repository.

klund pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode.git

commit 8db6d11001e676d356593d2b1ce95c26b609f183
Author: Kirk Lund <klund@apache.org>
AuthorDate: Fri Nov 2 17:07:22 2018 -0700

    GEODE-2644: Remove log level from MonitorQueryUnderContentionBenchmark
    
    Remove log level manipulation from benchmark. The internal API that was
    being used has been deleted and it only altered the log level of one
    logger: Cache.getLogger, so the impact of this is neglible.
---
 .../query/internal/MonitorQueryUnderContentionBenchmark.java      | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/geode-core/src/jmh/java/org/apache/geode/cache/query/internal/MonitorQueryUnderContentionBenchmark.java
b/geode-core/src/jmh/java/org/apache/geode/cache/query/internal/MonitorQueryUnderContentionBenchmark.java
index f65b801..7d8c447 100644
--- a/geode-core/src/jmh/java/org/apache/geode/cache/query/internal/MonitorQueryUnderContentionBenchmark.java
+++ b/geode-core/src/jmh/java/org/apache/geode/cache/query/internal/MonitorQueryUnderContentionBenchmark.java
@@ -35,7 +35,6 @@ import org.openjdk.jmh.annotations.State;
 import org.openjdk.jmh.annotations.TearDown;
 
 import org.apache.geode.internal.cache.InternalCache;
-import org.apache.geode.internal.logging.LogService;
 
 @State(Scope.Thread)
 @Fork(1)
@@ -88,14 +87,9 @@ public class MonitorQueryUnderContentionBenchmark {
   private DefaultQuery query;
   private Random random;
   private ScheduledThreadPoolExecutor loadGenerationExecutorService;
-  private org.apache.logging.log4j.Level originalBaseLogLevel;
 
   @Setup(Level.Trial)
   public void trialSetup() throws InterruptedException {
-
-    originalBaseLogLevel = LogService.getBaseLogLevel();
-    LogService.setBaseLogLevel(org.apache.logging.log4j.Level.OFF);
-
     queryMonitor =
         new QueryMonitor((ScheduledThreadPoolExecutor) Executors.newScheduledThreadPool(1),
             mock(InternalCache.class), QUERY_MAX_EXECUTION_TIME);
@@ -134,8 +128,6 @@ public class MonitorQueryUnderContentionBenchmark {
   public void trialTeardown() {
     loadGenerationExecutorService.shutdownNow();
     queryMonitor.stopMonitoring();
-
-    LogService.setBaseLogLevel(originalBaseLogLevel);
   }
 
   @Benchmark


Mime
View raw message