-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Closed
Labels
:Core/Infra/CoreCore issues without another labelCore issues without another label:Data Management/StatsStatistics tracking and retrieval APIsStatistics tracking and retrieval APIs>bugTeam:Core/InfraMeta label for core/infra teamMeta label for core/infra teamTeam:Data ManagementMeta label for data/management teamMeta label for data/management team
Description
Elasticsearch version (bin/elasticsearch --version): master
Plugins installed: none
JVM version (java -version):
=======================================
Elasticsearch Build Hamster says Hello!
Gradle Version : 7.0
OS Info : Linux 5.11.15-arch1-2 (amd64)
JDK Version : 15 (AdoptOpenJDK)
JAVA_HOME : /usr/lib/jvm/java-15-adoptopenjdk
Random Testing Seed : AF807D8F67D509D1
In FIPS 140 mode : false
=======================================
OS version (uname -a if on a Unix-like system):
Linux beast 5.11.15-arch1-2 #1 SMP PREEMPT Sat, 17 Apr 2021 00:22:30 +0000 x86_64 GNU/Linux
Description of the problem including expected versus actual behavior:
GET /_nodes/stats and GET /_cat/nodes returns -1 for my cpu load percent. It looks like OperatingSystemMXBean.getSystemCpuLoad is returning -1 for me. Its documented as doing that if the load isn't available.
Steps to reproduce:
- Get my desktop
./gradlew -p docs check -Dtests.method='*cat*'- That fails to match the pattern, getting a
-1on load. - You could also
./gradlew runandGET /_nodes/stats. That dumps:
"cpu" : {
"percent" : -1,
"load_average" : {
"1m" : 0.44,
"5m" : 0.37,
"15m" : 0.43
}
},
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?
Metadata
Metadata
Assignees
Labels
:Core/Infra/CoreCore issues without another labelCore issues without another label:Data Management/StatsStatistics tracking and retrieval APIsStatistics tracking and retrieval APIs>bugTeam:Core/InfraMeta label for core/infra teamMeta label for core/infra teamTeam:Data ManagementMeta label for data/management teamMeta label for data/management team