You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ma...@apache.org on 2020/07/26 00:42:54 UTC
[lucene-solr] branch reference_impl updated: @330 Help this stop.
This is an automated email from the ASF dual-hosted git repository.
markrmiller pushed a commit to branch reference_impl
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git
The following commit(s) were added to refs/heads/reference_impl by this push:
new 7e13a01 @330 Help this stop.
7e13a01 is described below
commit 7e13a016fb96b75ccf1ed133cade7e9deef32829
Author: markrmiller@gmail.com <ma...@gmail.com>
AuthorDate: Sat Jul 25 19:42:38 2020 -0500
@330 Help this stop.
---
solr/solrj/src/java/org/apache/solr/common/util/SysStats.java | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/solr/solrj/src/java/org/apache/solr/common/util/SysStats.java b/solr/solrj/src/java/org/apache/solr/common/util/SysStats.java
index 1f613b0..ae6339f 100644
--- a/solr/solrj/src/java/org/apache/solr/common/util/SysStats.java
+++ b/solr/solrj/src/java/org/apache/solr/common/util/SysStats.java
@@ -47,6 +47,7 @@ public class SysStats extends Thread {
}
public void doStop() {
+ this.interrupt();
this.stopped = true;
}
@@ -118,6 +119,11 @@ public class SysStats extends Thread {
public void stopMonitor() {
this.stopped = true;
this.interrupt();
+ try {
+ this.join();
+ } catch (InterruptedException e) {
+ Thread.currentThread().interrupt();
+ }
}
public double getTotalUsage() {