-
Notifications
You must be signed in to change notification settings - Fork 149
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
fix predict issue #3643
base: main
Are you sure you want to change the base?
fix predict issue #3643
Conversation
Signed-off-by: Jing Zhang <[email protected]>
trying to verifying if it solves the issue #3640 I just run the integ test on a 3.0 alpha tarball, it's passing with this fix
|
Signed-off-by: Jing Zhang <[email protected]>
6e8b850
to
f87230e
Compare
With this fix, there is no need to change the SecurityIT anymore. But the securityIT was changed before this PR is merged? |
@@ -143,9 +149,10 @@ public RestChannelConsumer prepareRequest(RestRequest request, NodeClient client | |||
MLPredictionTaskRequest getRequest(String modelId, String modelType, String userAlgorithm, RestRequest request) throws IOException { | |||
String tenantId = getTenantID(mlFeatureEnabledSetting.isMultiTenancyEnabled(), request); | |||
ActionType actionType = ActionType.from(getActionTypeFromRestRequest(request)); | |||
if (FunctionName.REMOTE.name().equals(modelType) && !mlFeatureEnabledSetting.isRemoteInferenceEnabled()) { | |||
if (modelType != null && FunctionName.REMOTE.name().equals(modelType) && !mlFeatureEnabledSetting.isRemoteInferenceEnabled()) { |
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.
Adding null check for modelType here won't make any difference, since modelType is inside equals()
Description
We got a failure for the test case
testPredictWithReadOnlyMLAccess
which is blocking 3.0-alpha release and caused by a recent pr #3597.Related Issues
Resolves #[Issue number to be closed when this PR is merged]
Check List
--signoff
.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.