Skip to content

Commit

Permalink
Fixed review comments
Browse files Browse the repository at this point in the history
Signed-off-by: Vijayan Balasubramanian <[email protected]>
  • Loading branch information
VijayanB committed Apr 19, 2024
1 parent f7eb800 commit 698a068
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions osbenchmark/worker_coordinator/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -690,10 +690,11 @@ async def __call__(self, opensearch, params):
merge_params = self._default_kw_params(params)
if max_num_segments:
merge_params["max_num_segments"] = max_num_segments
# Request end time will not be 100% accurate, since we are using polling
# to check whether task status is completed or not.
if mode == "polling":
if params.get(self.PARAM_WAIT_FOR_COMPLETION):
self.logger.warning(
"%s is set for polling. It will be updated to false", self.PARAM_WAIT_FOR_COMPLETION)
self.logger.warning(
"%s will be updated to false to run force merge in asynchronous way", self.PARAM_WAIT_FOR_COMPLETION)
merge_params[self.PARAM_WAIT_FOR_COMPLETION] = "false"
request_context_holder.on_client_request_start()
response_task = await opensearch.indices.forcemerge(**merge_params)
Expand Down

0 comments on commit 698a068

Please sign in to comment.