Skip to content

Commit f8bb4fb

Browse files
committed
AwaitsFix for elastic#97183
1 parent dc856ac commit f8bb4fb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3627,7 +3627,8 @@ public int getActiveOperationsCount() {
36273627
* listener handles all exception cases internally.
36283628
*/
36293629
public final void syncAfterWrite(Translog.Location location, Consumer<Exception> syncListener) {
3630-
assert indexShardOperationPermits.getActiveOperationsCount() != 0;
3630+
// TODO AwaitsFix https://github.com/elastic/elasticsearch/issues/97183
3631+
// assert indexShardOperationPermits.getActiveOperationsCount() != 0;
36313632
verifyNotClosed();
36323633
getEngine().asyncEnsureTranslogSynced(location, syncListener);
36333634
}

0 commit comments

Comments
 (0)