-
Notifications
You must be signed in to change notification settings - Fork 25.6k
[EIS] Validate EIS Gateway URL if set #114600
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
[EIS] Validate EIS Gateway URL if set #114600
Conversation
|
Pinging @elastic/ml-core (Team:ML) |
|
@elasticmachine update branch |
|
Pinging @elastic/search-inference-team (Team:Search - Inference) |
|
Pinging @elastic/search-eng (Team:SearchOrg) |
| @Override | ||
| public void validate(String value) { | ||
| if (Objects.isNull(value) || value.isEmpty()) { | ||
| // No validation needed, if eis-gateway URL is not set |
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.
Does it make sense to write to the logs that EIS is not enabled?
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.
I've checked what gets logged on startup and it feels like it's rather uncommon to log something as specific as this (at least on the INFO level). There are only a few plugins logging, whether they're enabled (on a whole plugin level) like APM and security. But I think it probably doesn't cause any harm to log it on DEBUG level, so adding it with Add debug log, whether eis-gateway URL is set or not.
|
@elasticmachine update branch |
This reverts commit 39168e1.
|
This is manifesting in serverless with the following: |
|
FYI, I've reverted this for now in #114867 |
|
@mark-vieira thank you Mark! |
…tic#114867) This reverts commit 39168e1.
This PR adds a
Setting.Validatorto validate the EIS Gateway URL set throughxpack.inference.eis.gateway.url. If the URL is not set (for example, if you're not using EIS) we skip validation.