diff --git a/lib/charms/opensearch/v0/opensearch_locking.py b/lib/charms/opensearch/v0/opensearch_locking.py index 730000c02..a583c66f7 100644 --- a/lib/charms/opensearch/v0/opensearch_locking.py +++ b/lib/charms/opensearch/v0/opensearch_locking.py @@ -236,7 +236,7 @@ def release(self): try: self._opensearch.request( "DELETE", - endpoint=f"/{self._OPENSEARCH_INDEX}/_doc/0", + endpoint=f"/{self._OPENSEARCH_INDEX}/_doc/0?refresh=true", host=host, alt_hosts=self._charm.alt_hosts, retries=3,