-
Notifications
You must be signed in to change notification settings - Fork 25k
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
Nodes stats returns -1 cpu percent on my desktop #72887
Comments
Pinging @elastic/es-core-infra (Team:Core/Infra) |
Related : #42725 (and a lot of other related issues) |
Pinging @elastic/es-core-features (Team:Core/Features) |
@DaveCTurner and I looked at this and couldn't figure out why my machine doesn't like this. I |
Given the previous problems with receiving -1 on stats calls, we agreed that snapping this value to 0 and logging a warning like we do in #42725 is likely the best approach. A deeper dive into why this might be returned would be great for historical purposes. |
It looks like this is closed by #42725. |
For what it's worth I haven't seen this in a while. But it might have had to do with my linux version at the time. Now I'm:
and don't see any problems. |
Elasticsearch version (
bin/elasticsearch --version
):master
Plugins installed: none
JVM version (
java -version
):OS version (
uname -a
if on a Unix-like system):Description of the problem including expected versus actual behavior:
GET /_nodes/stats
andGET /_cat/nodes
returns-1
for my cpu load percent. It looks likeOperatingSystemMXBean.getSystemCpuLoad
is returning-1
for me. Its documented as doing that if the load isn't available.Steps to reproduce:
./gradlew -p docs check -Dtests.method='*cat*'
-1
on load../gradlew run
andGET /_nodes/stats
. That dumps:It looks like this is super rare on developer machines because we don't expect
-1
in the tests. Do we to modify the tests? Do we want to figure out why the jvm can't get my load percentage?The text was updated successfully, but these errors were encountered: