Skip to content

Commit

Permalink
Add one more consistency check in AsyncShardFetch (#96553) (#96556)
Browse files Browse the repository at this point in the history
Relates #93632
  • Loading branch information
DaveCTurner committed Jun 5, 2023
1 parent b3ed4bf commit 8a5bd8a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ public synchronized FetchResult<T> fetchData(DiscoveryNodes nodes, Set<String> i
asyncFetch(discoNodesToFetch, fetchingRound);
}

assert assertFetchingCountConsistent();

// if we are still fetching, return null to indicate it
if (hasAnyNodeFetching()) {
return new FetchResult<>(shardId, null, emptySet());
Expand Down

0 comments on commit 8a5bd8a

Please sign in to comment.