Skip to content

Commit cfe2293

Browse files
committed
add refresh parameter to enforce read-after-write guarantees in ES
1 parent 98b92cd commit cfe2293

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

integration-tests/src/test/java/tech/beshu/ror/integration/DynamicVariablesTests.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,7 @@ private static void insertDoc(String indexName, RestClient restClient) {
5656

5757
String docPath = "/" + indexName + "/documents/doc-asd";
5858
try {
59-
HttpPut request = new HttpPut(restClient.from(
60-
docPath
61-
));
59+
HttpPut request = new HttpPut(restClient.from(docPath) + "?refresh=true");
6260
request.setHeader("Content-Type", "application/json");
6361
request.setHeader("refresh", "true");
6462
request.setHeader("timeout", "50s");

0 commit comments

Comments
 (0)