From f8bb4fb64e76126728381ad7f0ab02d76ee3dda9 Mon Sep 17 00:00:00 2001 From: David Turner Date: Wed, 28 Jun 2023 13:32:17 +0100 Subject: [PATCH] AwaitsFix for #97183 --- .../main/java/org/elasticsearch/index/shard/IndexShard.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/src/main/java/org/elasticsearch/index/shard/IndexShard.java b/server/src/main/java/org/elasticsearch/index/shard/IndexShard.java index 4c4d56cb60060..2201476d0f482 100644 --- a/server/src/main/java/org/elasticsearch/index/shard/IndexShard.java +++ b/server/src/main/java/org/elasticsearch/index/shard/IndexShard.java @@ -3627,7 +3627,8 @@ public int getActiveOperationsCount() { * listener handles all exception cases internally. */ public final void syncAfterWrite(Translog.Location location, Consumer syncListener) { - assert indexShardOperationPermits.getActiveOperationsCount() != 0; + // TODO AwaitsFix https://github.com/elastic/elasticsearch/issues/97183 + // assert indexShardOperationPermits.getActiveOperationsCount() != 0; verifyNotClosed(); getEngine().asyncEnsureTranslogSynced(location, syncListener); }