Skip to content

Commit 035670a

Browse files
MockSearchService concurrency fix
Fixed MockSearchService concurrency, assertNoInFlightContext could have false negative result (rarely). Split out from elastic#45739 Closes elastic#47048
1 parent a67180d commit 035670a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/framework/src/main/java/org/elasticsearch/search/MockSearchService.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ public MockSearchService(ClusterService clusterService,
7474

7575
@Override
7676
protected void putContext(SearchContext context) {
77-
super.putContext(context);
7877
addActiveContext(context);
78+
super.putContext(context);
7979
}
8080

8181
@Override

0 commit comments

Comments
 (0)