Skip to content

Commit

Permalink
Fix flaky
Browse files Browse the repository at this point in the history
  • Loading branch information
minwoox committed Oct 14, 2024
1 parent 7acc20e commit 481ad0c
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ public void onCompleted() {}
.setTypeUrl(Resources.V3.CLUSTER_TYPE_URL)
.build());
DiscoveryResponse discoveryResponse = queue.take();
while (discoveryResponse.getResourcesList().isEmpty()) {
// The commited cluster is not yet available. Send ack and receive the next discovery response.
sendAck(requestStreamObserver, discoveryResponse);
discoveryResponse = queue.take();
}
final String versionInfo1 = discoveryResponse.getVersionInfo();
assertDiscoveryResponse(versionInfo1, discoveryResponse, fooCluster, queue, "0");
// Send ack
Expand Down

0 comments on commit 481ad0c

Please sign in to comment.