Skip to content

Commit 31ddb67

Browse files
Clarify comment
1 parent a4ebeb2 commit 31ddb67

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server/src/main/java/org/elasticsearch/action/fieldcaps/TransportFieldCapabilitiesAction.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,8 @@ private <R extends ActionResponse> void doExecuteForked(
376376
/*
377377
* We need to run the Cross Project Search reconciliation but only after we're heard back from all the linked projects.
378378
* It is also possible that some linked projects may respond back with an error instead of a valid response. To facilitate
379-
* this, we track each response, irrespective of whether it's valid or not, and then perform the reconciliation.
379+
* this, we use `CountDown` and track each response, irrespective of whether it's valid or not, and then perform the
380+
* reconciliation when it has counted down and the request is a resolvable CPS request.
380381
*/
381382
CountDown countDownResponses = new CountDown(remoteClusterIndices.size());
382383
Map<String, ResolvedIndexExpressions> linkedProjectsResponses = ConcurrentCollections.newConcurrentMap();

0 commit comments

Comments
 (0)