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)

Signed-off-by: Surya Sashank Nistala <[email protected]>
  • Loading branch information
eirsep authored May 25, 2023
1 parent 9b44a26 commit 5e2312d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,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 5e2312d

Please sign in to comment.