Skip to content

Commit 82a37f5

Browse files
committed
test failure
1 parent a11d2fd commit 82a37f5

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

server/src/main/java/org/elasticsearch/index/shard/IndexShard.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2770,8 +2770,12 @@ public boolean isIndexingPaused() {
27702770
}
27712771

27722772
public void suspendThrottling() {
2773-
Engine engine = getEngineOrNull();
2774-
engine.suspendThrottling();
2773+
try {
2774+
getEngine().suspendThrottling();
2775+
} catch (AlreadyClosedException ex) {
2776+
// ignore
2777+
}
2778+
27752779
}
27762780

27772781
public void resumeThrottling() {

0 commit comments

Comments
 (0)