-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reject delete model request if model is in Training #424
Reject delete model request if model is in Training #424
Conversation
Signed-off-by: Naveen Tatikonda <navtat@amazon.com>
…tion Signed-off-by: Naveen Tatikonda <navtat@amazon.com>
Signed-off-by: Naveen Tatikonda <navtat@amazon.com>
Signed-off-by: Naveen Tatikonda <navtat@amazon.com>
Codecov Report
@@ Coverage Diff @@
## main #424 +/- ##
============================================
+ Coverage 84.02% 84.31% +0.29%
- Complexity 911 945 +34
============================================
Files 130 134 +4
Lines 3880 4062 +182
Branches 359 370 +11
============================================
+ Hits 3260 3425 +165
- Misses 458 473 +15
- Partials 162 164 +2
Continue to review full report at Codecov.
|
src/main/java/org/opensearch/knn/plugin/transport/UpdateBlockedModelTransportAction.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opensearch/knn/plugin/transport/UpdateBlockedModelTransportAction.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Few general comments:
- did you check why test coverage went down? seems your changes are testable, maybe spend some time on adding/extending tests to at least keep it at the same level.
- I suggest make smaller PR in future, it makes review easier/quicker and with higher quality, for example here you could brake something like this: change the model in one PR and API changes in another.
src/main/java/org/opensearch/knn/plugin/transport/GetModelTransportAction.java
Show resolved
Hide resolved
src/main/java/org/opensearch/knn/plugin/transport/UpdateBlockedModelRequest.java
Outdated
Show resolved
Hide resolved
src/test/java/org/opensearch/knn/plugin/transport/TrainingModelRequestTests.java
Show resolved
Hide resolved
src/main/java/org/opensearch/knn/plugin/transport/UpdateBlockedModelTransportAction.java
Outdated
Show resolved
Hide resolved
ce0a791
to
53d1a95
Compare
src/main/java/org/opensearch/knn/plugin/transport/UpdateBlockedModelTransportAction.java
Outdated
Show resolved
Hide resolved
53d1a95
to
55e2496
Compare
55e2496
to
84c1402
Compare
Signed-off-by: Naveen Tatikonda <navtat@amazon.com>
84c1402
to
e2061d6
Compare
src/main/java/org/opensearch/knn/plugin/transport/TrainingModelRequest.java
Outdated
Show resolved
Hide resolved
a5e5056
to
de8a5bb
Compare
Signed-off-by: Naveen Tatikonda <navtat@amazon.com>
de8a5bb
to
a03f0a3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks @naveentatikonda great work!
Signed-off-by: Naveen Tatikonda <navtat@amazon.com>
129d1fe
to
0f178ea
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, great work Naveen
* Reject Delete Model Request if Model is in Training Signed-off-by: Naveen Tatikonda <navtat@amazon.com> * Locking mechanism to block modelId if model is in the process of Deletion Signed-off-by: Naveen Tatikonda <navtat@amazon.com> * Add Blocked modelIds Validation for new Train Model Request Signed-off-by: Naveen Tatikonda <navtat@amazon.com> * spotless fix and other changes Signed-off-by: Naveen Tatikonda <navtat@amazon.com> * Address Review Comments Signed-off-by: Naveen Tatikonda <navtat@amazon.com> * Bug fix for copying ModelGraveyard reference Signed-off-by: Naveen Tatikonda <navtat@amazon.com> * Add Integration Tests for ModelGraveyardDiff Signed-off-by: Naveen Tatikonda <navtat@amazon.com> * Refactoring and Addressing other review comments Signed-off-by: Naveen Tatikonda <navtat@amazon.com> * Remove Model from Model Graveyard even if model does not exist Signed-off-by: Naveen Tatikonda <navtat@amazon.com> (cherry picked from commit 46f85a0)
* Reject Delete Model Request if Model is in Training Signed-off-by: Naveen Tatikonda <navtat@amazon.com> * Locking mechanism to block modelId if model is in the process of Deletion Signed-off-by: Naveen Tatikonda <navtat@amazon.com> * Add Blocked modelIds Validation for new Train Model Request Signed-off-by: Naveen Tatikonda <navtat@amazon.com> * spotless fix and other changes Signed-off-by: Naveen Tatikonda <navtat@amazon.com> * Address Review Comments Signed-off-by: Naveen Tatikonda <navtat@amazon.com> * Bug fix for copying ModelGraveyard reference Signed-off-by: Naveen Tatikonda <navtat@amazon.com> * Add Integration Tests for ModelGraveyardDiff Signed-off-by: Naveen Tatikonda <navtat@amazon.com> * Refactoring and Addressing other review comments Signed-off-by: Naveen Tatikonda <navtat@amazon.com> * Remove Model from Model Graveyard even if model does not exist Signed-off-by: Naveen Tatikonda <navtat@amazon.com> (cherry picked from commit 46f85a0) Signed-off-by: Naveen Tatikonda <navtat@amazon.com>
* Reject Delete Model Request if Model is in Training Signed-off-by: Naveen Tatikonda <navtat@amazon.com> * Locking mechanism to block modelId if model is in the process of Deletion Signed-off-by: Naveen Tatikonda <navtat@amazon.com> * Add Blocked modelIds Validation for new Train Model Request Signed-off-by: Naveen Tatikonda <navtat@amazon.com> * spotless fix and other changes Signed-off-by: Naveen Tatikonda <navtat@amazon.com> * Address Review Comments Signed-off-by: Naveen Tatikonda <navtat@amazon.com> * Bug fix for copying ModelGraveyard reference Signed-off-by: Naveen Tatikonda <navtat@amazon.com> * Add Integration Tests for ModelGraveyardDiff Signed-off-by: Naveen Tatikonda <navtat@amazon.com> * Refactoring and Addressing other review comments Signed-off-by: Naveen Tatikonda <navtat@amazon.com> * Remove Model from Model Graveyard even if model does not exist Signed-off-by: Naveen Tatikonda <navtat@amazon.com> (cherry picked from commit 46f85a0) Signed-off-by: Naveen Tatikonda <navtat@amazon.com> Co-authored-by: Naveen Tatikonda <navtat@amazon.com>
Description
This PR includes the following changes:
Issues Resolved
#365
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.