You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if JvmInfo.jvmInfo().getMem().getHeapMax().getBytes()=8gb, (JvmInfo.jvmInfo().getMem().getHeapMax().getBytes() * 0.3) > Integex.MAX, then (long)((int) value) will lose precision.
Describe the bug
org.opensearch.common.settings.SettingTests.testMemorySizeWithFallbackValue is flaky.
Related component
Other
To Reproduce
JvmInfo.jvmInfo().getMem().getHeapMax().getBytes()=8.0gb
./gradlew ':server:test' --tests "org.opensearch.common.settings.SettingTests.testMemorySizeWithFallbackValue" -Dtests.seed=B6AA005F20EE7928 -Dtests.security.manager=true -Dtests.jvms=1 -Dtests.heap.size=1g -Dtests.jvm.argline="-XX:TieredStopAtLevel=1 -XX:ReservedCodeCacheSize=64m" -Dtests.locale=sq -Dtests.timezone=Africa/Asmera -Druntime.java=17
if JvmInfo.jvmInfo().getMem().getHeapMax().getBytes()=8gb, (JvmInfo.jvmInfo().getMem().getHeapMax().getBytes() * 0.3) > Integex.MAX, then (long)((int) value) will lose precision.
OpenSearch/server/src/test/java/org/opensearch/common/settings/SettingTests.java
Line 222 in b4da802
Expected behavior
Test should pass
Additional Details
Screenshots
The text was updated successfully, but these errors were encountered: