Skip to content

Commit

Permalink
log error messages and clean up monitor when indexing doc level queri…
Browse files Browse the repository at this point in the history
…es or metadata creation fails (opensearch-project#900)

* log errors and clean up monitor when indexing doc level queries or metadata creation fails
* refactor delete monitor action to re-use delete methods
Signed-off-by: Surya Sashank Nistala <[email protected]>
  • Loading branch information
eirsep authored and goyamegh committed Mar 15, 2024
1 parent 2a59eeb commit d5413af
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)
deleteDocLevelMonitorQueriesAndIndices(client, monitor, monitorId)
deleteMetadata(client, monitor)
deleteDocLevelMonitorQueriesAndIndices(client, monitor, monitorId)
return deleteResponse
}

Expand Down

0 comments on commit d5413af

Please sign in to comment.