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]>
Signed-off-by: Chase Engelbrecht <[email protected]>
  • Loading branch information
eirsep authored and engechas committed Mar 18, 2024
1 parent af92ba9 commit 875557c
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 875557c

Please sign in to comment.