Skip to content

Commit

Permalink
revert to deleting monitor metadata after deleting doc level queries …
Browse files Browse the repository at this point in the history
…to fix regression. Metadata is required for correct query index clean up (opensearch-project#931) (opensearch-project#936)

Signed-off-by: Surya Sashank Nistala <[email protected]>
(cherry picked from commit 5e2312d7a6afdf35dc39534723df1947592e01ec)

Co-authored-by: Surya Sashank Nistala <[email protected]>
  • Loading branch information
opensearch-trigger-bot[bot] and eirsep authored May 25, 2023
1 parent 841ac90 commit 051a94a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@ class TransportDeleteMonitorAction @Inject constructor(
monitorId: String,
): DeleteResponse {
val deleteResponse = deleteMonitorDocument(client, deleteRequest)
deleteMetadata(client, monitor)
deleteDocLevelMonitorQueriesAndIndices(client, monitor, monitorId)
deleteMetadata(client, monitor)
return deleteResponse
}

Expand Down

0 comments on commit 051a94a

Please sign in to comment.