-
Notifications
You must be signed in to change notification settings - Fork 72
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
Fixed error for case when mltensor has data as null #404
Fixed error for case when mltensor has data as null #404
Conversation
Signed-off-by: Martin Gaievski <[email protected]>
18b95ed
to
e592ad7
Compare
Codecov Report
@@ Coverage Diff @@
## 2.x #404 +/- ##
============================================
- Coverage 80.69% 80.67% -0.03%
- Complexity 496 501 +5
============================================
Files 41 41
Lines 1554 1573 +19
Branches 237 241 +4
============================================
+ Hits 1254 1269 +15
- Misses 200 201 +1
- Partials 100 103 +3
|
@@ -40,6 +42,7 @@ | |||
public class MLCommonsClientAccessor { | |||
private static final List<String> TARGET_RESPONSE_FILTERS = List.of("sentence_embedding"); | |||
private final MachineLearningNodeClient mlClient; | |||
private static final String EXCEPTION_MESSAGE_MODEL_PROCESSING_FAILED = "the system encountered an unexpected error during processing"; |
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.
we need to fix this, lets make it more informative.
Signed-off-by: Martin Gaievski <[email protected]>
9f46960
to
5f47156
Compare
* Fixed error for case when mltensor has data as null Signed-off-by: Martin Gaievski <[email protected]> * Changed error message handling Signed-off-by: Martin Gaievski <[email protected]> --------- Signed-off-by: Martin Gaievski <[email protected]> (cherry picked from commit 47d1aee)
* Fixed error for case when mltensor has data as null Signed-off-by: Martin Gaievski <[email protected]> * Changed error message handling Signed-off-by: Martin Gaievski <[email protected]> --------- Signed-off-by: Martin Gaievski <[email protected]> (cherry picked from commit 47d1aee) Co-authored-by: Martin Gaievski <[email protected]>
Description
Found that we're not handling properly case when MLTensor has data ==
null
from model/connector onpredict
call. Need to throw proper exception in that caseCheck 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.