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 01:30:57 UTC
[lucene-solr] branch reference_impl updated: @334 Let's cancel.
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 16d428e @334 Let's cancel.
16d428e is described below
commit 16d428ea211f0ad5e78cc44f95535bac9c27c8a5
Author: markrmiller@gmail.com <ma...@gmail.com>
AuthorDate: Sat Jul 25 20:30:47 2020 -0500
@334 Let's cancel.
---
solr/core/src/java/org/apache/solr/update/CommitTracker.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/solr/core/src/java/org/apache/solr/update/CommitTracker.java b/solr/core/src/java/org/apache/solr/update/CommitTracker.java
index 5a22513..b36b375 100644
--- a/solr/core/src/java/org/apache/solr/update/CommitTracker.java
+++ b/solr/core/src/java/org/apache/solr/update/CommitTracker.java
@@ -107,12 +107,12 @@ public final class CommitTracker implements Runnable, Closeable {
public synchronized void close() {
this.closed = true;
try {
- pending.cancel(false);
+ pending.cancel(true);
} catch (NullPointerException e) {
// okay
}
pending = null;
-
+ scheduler.shutdownNow();
ParWork.close(scheduler);
ObjectReleaseTracker.release(this);
}