forked from opensearch-project/k-NN
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Block delete model requests if an index uses the model (opensearch-pr…
…oject#1722) * Block delete model requests if an index uses the model Signed-off-by: Ryan Bogan <[email protected]> * Add test Signed-off-by: Ryan Bogan <[email protected]> * Add changelog entry Signed-off-by: Ryan Bogan <[email protected]> * Change tests that were deleting a model in use Signed-off-by: Ryan Bogan <[email protected]> * Debug Signed-off-by: Ryan Bogan <[email protected]> * Add extra check to fix incorrect exception Signed-off-by: Ryan Bogan <[email protected]> * Remove println Signed-off-by: Ryan Bogan <[email protected]> * Change model_id search from contains to parsing response map Signed-off-by: Ryan Bogan <[email protected]> * Remove * import Signed-off-by: Ryan Bogan <[email protected]> * Combine delete model exceptions Signed-off-by: Ryan Bogan <[email protected]> * Move check to UpdateModelGraveyardTransportAction Signed-off-by: Ryan Bogan <[email protected]> * Optimize code logic Signed-off-by: Ryan Bogan <[email protected]> * Modify method names and throw exception in outer method Signed-off-by: Ryan Bogan <[email protected]> * Add test with cases for UpdateModelGraveyardTransportAction Signed-off-by: Ryan Bogan <[email protected]> * Fix spotless Signed-off-by: Ryan Bogan <[email protected]> * Refactor code and other minor optimizations Signed-off-by: Ryan Bogan <[email protected]> --------- Signed-off-by: Ryan Bogan <[email protected]>
- Loading branch information
Showing
10 changed files
with
435 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.