You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by bs...@apache.org on 2018/10/04 17:32:14 UTC
[geode] branch develop updated: GEM-2229 misspelling in warning
"There are <1> stuck threads in thia node"
This is an automated email from the ASF dual-hosted git repository.
bschuchardt pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode.git
The following commit(s) were added to refs/heads/develop by this push:
new d6df452 GEM-2229 misspelling in warning "There are <1> stuck threads in thia node"
d6df452 is described below
commit d6df4526d9bbf5b3aeb3e1361a6be606a491a0cd
Author: Bruce Schuchardt <bs...@pivotal.io>
AuthorDate: Thu Oct 4 10:19:27 2018 -0700
GEM-2229 misspelling in warning "There are <1> stuck threads in thia node"
Fixed misspelled word
---
.../geode/internal/monitoring/ThreadsMonitoringProcess.java | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/geode-core/src/main/java/org/apache/geode/internal/monitoring/ThreadsMonitoringProcess.java b/geode-core/src/main/java/org/apache/geode/internal/monitoring/ThreadsMonitoringProcess.java
index bbfc1c5..ebd4ce1 100644
--- a/geode-core/src/main/java/org/apache/geode/internal/monitoring/ThreadsMonitoringProcess.java
+++ b/geode-core/src/main/java/org/apache/geode/internal/monitoring/ThreadsMonitoringProcess.java
@@ -67,12 +67,16 @@ public class ThreadsMonitoringProcess extends TimerTask {
if (!isStuck) {
if (this.resourceManagerStats != null)
this.resourceManagerStats.setNumThreadStuck(0);
- logger.trace("There are no stuck threads in the system\n");
+ logger.trace("There are no stuck threads in the system");
return false;
} else {
if (this.resourceManagerStats != null)
this.resourceManagerStats.setNumThreadStuck(numOfStuck);
- logger.warn("There are <{}> stuck threads in thia node", numOfStuck);
+ if (numOfStuck != 1) {
+ logger.warn("There are {} stuck threads in this node", numOfStuck);
+ } else {
+ logger.warn("There is 1 stuck thread in this node");
+ }
return true;
}
}
@@ -88,7 +92,7 @@ public class ThreadsMonitoringProcess extends TimerTask {
InternalCache cache = distributionManager.getExistingCache();
this.resourceManagerStats = cache.getInternalResourceManager().getStats();
} catch (CacheClosedException e1) {
- logger.trace("No cache exists yet - process will run on next iteration\n");
+ logger.trace("No cache exists yet - process will run on next iteration");
}
} else
mapValidation();