Skip to content

Commit f1228e9

Browse files
authored
setting the response before latch countdown so that thread waiting does not encounter null (opensearch-project#13118)
Signed-off-by: Rajiv Kumar Vaidyanathan <rajivkv@amazon.com>
1 parent 8ac92d4 commit f1228e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/internalClusterTest/java/org/opensearch/ratelimitting/admissioncontrol/AdmissionForClusterManagerIT.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,8 @@ public void testAdmissionControlResponseStatus() throws Exception {
170170

171171
@Override
172172
public void sendResponse(RestResponse response) {
173-
waitForResponse.countDown();
174173
aliasResponse.set(response);
174+
waitForResponse.countDown();
175175
}
176176
};
177177

0 commit comments

Comments
 (0)