Skip to content

Apache Lucene open-source search software

add missing interrupt restore on InterruptedException

Michael McCandlessea90d1152d0e
diff --git a/src/java/org/apache/lucene/store/Lock.java b/src/java/org/apache/lucene/store/Lock.java
index 2cfce0cb0e9..8310bf09369 100644
--- a/src/java/org/apache/lucene/store/Lock.java
+++ b/src/java/org/apache/lucene/store/Lock.java
@@ -93,6 +93,7 @@ public abstract class Lock {
} catch (InterruptedException e) {
// In 3.0 we will change this to throw
// InterruptedException instead
+ Thread.currentThread().interrupt();
throw new IOException(e.toString());
}
locked = obtain();