-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Vector does not skip healthchecks on config validation - just ignores their results causing a hang #22339
Comments
I suspect that this get version request is the problem: vector/src/sinks/elasticsearch/common.rs Lines 343 to 351 in 3f3428e
Per https://vector.dev/docs/administration/validating/, you can also pass Config:
Validation:
|
Much appreciated. So, to skip actual connections from sinks I need to pass both |
It seems that it did. Syntax is no longer validated. |
Yes, they are different: Lines 171 to 180 in ff77761
If |
Well obviously. But |
Yes, that happens during config
This is not correct. You can see the full logic here: vector/src/sinks/elasticsearch/common.rs Line 172 in 3f3428e
It's a good question though if we should allow such requests when building the config. |
A note for the community
Problem
vector validate
ignores--skip-healthchecks
argument and still checks health of components, just ignores their results.This causes a 130 second hang on my build machine which validates configuration file before deploying it due to timeout (build machine does not have access to elasticsearch cluster, obviously)
docker build
output:Configuration
Version
vector 0.43.1 (x86_64-unknown-linux-gnu e30bf1f 2024-12-10 16:14:47.175528383)
Debug Output
Example Data
Not needed.
Additional Context
Not needed.
References
No response
The text was updated successfully, but these errors were encountered: