This is an automated email from the ASF dual-hosted git repository.

houston pushed a commit to branch branch_9x
in repository https://gitbox.apache.org/repos/asf/solr.git


The following commit(s) were added to refs/heads/branch_9x by this push:
     new fa3409e0141 Fix uncaught AlreadyClosedException in Overseer election
fa3409e0141 is described below

commit fa3409e01410e90903d29fecd7fc5e9459b034e5
Author: Houston Putman <[email protected]>
AuthorDate: Thu Feb 20 12:29:22 2025 -0600

    Fix uncaught AlreadyClosedException in Overseer election
    
    (cherry picked from commit 46c34a4a66fe25d67d6a8b66d7061e1b29701f8e)
---
 solr/core/src/java/org/apache/solr/cloud/OverseerTaskProcessor.java | 2 ++
 1 file changed, 2 insertions(+)

diff --git 
a/solr/core/src/java/org/apache/solr/cloud/OverseerTaskProcessor.java 
b/solr/core/src/java/org/apache/solr/cloud/OverseerTaskProcessor.java
index eb5661885c4..7aba8531b64 100644
--- a/solr/core/src/java/org/apache/solr/cloud/OverseerTaskProcessor.java
+++ b/solr/core/src/java/org/apache/solr/cloud/OverseerTaskProcessor.java
@@ -501,6 +501,8 @@ public class OverseerTaskProcessor implements Runnable, 
Closeable {
     } catch (InterruptedException e) {
       success = false;
       Thread.currentThread().interrupt();
+    } catch (AlreadyClosedException ignored) {
+      success = false;
     } finally {
       timerContext.stop();
       if (success) {

Reply via email to