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/08/17 23:12:18 UTC

[lucene-solr] 48/49: @562 See the line where the sky meets the sea? It calls me And no one knows, how far it goes

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

commit cfac8a768c50d3649006229200aada836ededa55
Author: markrmiller@gmail.com <ma...@gmail.com>
AuthorDate: Sun Aug 16 22:08:59 2020 -0500

    @562 See the line where the sky meets the sea? It calls me
    And no one knows, how far it goes
---
 solr/test-framework/src/java/org/apache/solr/SolrTestCase.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/solr/test-framework/src/java/org/apache/solr/SolrTestCase.java b/solr/test-framework/src/java/org/apache/solr/SolrTestCase.java
index a427e50..2a4ae0f 100644
--- a/solr/test-framework/src/java/org/apache/solr/SolrTestCase.java
+++ b/solr/test-framework/src/java/org/apache/solr/SolrTestCase.java
@@ -604,7 +604,7 @@ public class SolrTestCase extends LuceneTestCase {
 
   private static void interrupt(Thread thread, String nameContains) {
     if ((nameContains != null && thread.getName().contains(nameContains)) || (interuptThreadWithNameContains != null && thread.getName().contains(interuptThreadWithNameContains)) ) {
-      if (thread.getState() == Thread.State.TERMINATED) {
+      if (thread.getState() == Thread.State.TERMINATED || thread.getState() == Thread.State.WAITING) {
         System.out.println("interrupt on " + thread.getName());
         thread.interrupt();
         try {