-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
XPack Usage API can return 503 due to missing primary #45250
Comments
It looks like it's the security index that is unavailable. Are you waiting until the cluster is green before you start firing requests after it bootstraps for the first time? |
Pinging @elastic/es-core-features |
All integration tests wait for yellow but this particular request was issued after the node had been running for a while:
Messages with After a bunch of tests have already run I see the following:
The first line indicate a new This is a single node on 7.0.0, hardware unknown (azure devops worker node). |
Should mention we wait for yellow once at the start of the test run after the node has started. We do not wait for yellow before every single test. |
I think that Elasticsearch is doing the right thing here. You are trying to collect usage stats. Collecting usage stats involves collecting usage from stats from the realms, including the native realm. That involves collecting user counts from the native users store. If the security index isn't available, then we can't return the native user count. I don't think we should return partial results, I think we should fail the request, as is being done here. I think that you need to adapt your CI appropriately. |
* Update abstractions to version that prints JAVA_HOME just before starting elasticsearch and forces it on the Process instance (cherry picked from commit ee496ad) * update abstractions (cherry picked from commit 2b409ff) * update to abstraction versions that takes prereleases into account again with SkipVersion * Audit trail test assumed timespan is never TimeSpan.Zero but of course can be (#3989) (cherry picked from commit 79a71ac) * Rename SkipOnTeamCity to skip on CI * skip xpack usage/info on CI, tad flakey due to elastic/elasticsearch#45250
I am happy to change my CI to deal with potential failures due to the security index not being available. I do want to report this happens reasonably often and affects other API's too such as the Would it be helpful for these to internally to wait for yellow? |
GET /_xpack/usage?pretty=true&error_trace=true
Hitting this intermittently on our CI, do not have an exact reproduce playlist.
The text was updated successfully, but these errors were encountered: