From 0e7f320a55d34cd276d932ae08e10eb03df565cd Mon Sep 17 00:00:00 2001 From: Angie Zhang Date: Thu, 23 Mar 2023 17:41:19 -0700 Subject: [PATCH] Fixed node lock release error: request should use value of "_id" instead of "job_id" Signed-off-by: Angie Zhang --- .../indexmanagement/indexstatemanagement/action/ShrinkAction.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/org/opensearch/indexmanagement/indexstatemanagement/action/ShrinkAction.kt b/src/main/kotlin/org/opensearch/indexmanagement/indexstatemanagement/action/ShrinkAction.kt index da8d379f1..2e9d26f53 100644 --- a/src/main/kotlin/org/opensearch/indexmanagement/indexstatemanagement/action/ShrinkAction.kt +++ b/src/main/kotlin/org/opensearch/indexmanagement/indexstatemanagement/action/ShrinkAction.kt @@ -132,7 +132,7 @@ class ShrinkAction( const val TARGET_INDEX_TEMPLATE_FIELD = "target_index_name_template" const val ALIASES_FIELD = "aliases" const val FORCE_UNSAFE_FIELD = "force_unsafe" - const val LOCK_RESOURCE_TYPE = "shrink" + const val LOCK_RESOURCE_TYPE = ".opendistro-ism-config-shrink" const val LOCK_RESOURCE_NAME = "node_name" fun getSecurityFailureMessage(failure: String) = "Shrink action failed because of missing permissions: $failure" }