Skip to content

Commit

Permalink
Fixed lint errors, made setting persistent
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Gaievski <[email protected]>
  • Loading branch information
martin-gaievski committed Jul 23, 2024
1 parent 08db823 commit afc6496
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions osbenchmark/worker_coordinator/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -2702,11 +2702,11 @@ class EnableConcurrentSegmentSearch(Runner):
async def __call__(self, opensearch, params):
enable_setting = params.get("enable", "false")
body = {
"transient": {
"persistent": {
"search.concurrent_segment_search.enabled": enable_setting
}
}
}
}
await opensearch.cluster.put_settings(body=body)

def __repr__(self, *args, **kwargs):
return "enable-concurrent-segment-search"
return "enable-concurrent-segment-search"
6 changes: 3 additions & 3 deletions tests/worker_coordinator/runner_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -6801,7 +6801,7 @@ async def test_enable_concurrent_segment_search(self, opensearch, on_client_requ
await r(opensearch, params)

opensearch.cluster.put_settings.assert_called_once_with(body={
"transient": {
"persistent": {
"search.concurrent_segment_search.enabled": "true"
}
})
}
})

0 comments on commit afc6496

Please sign in to comment.