diff --git a/CHANGELOG.md b/CHANGELOG.md index 8b0dcd782..515105dd6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -44,4 +44,5 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), * Added Lucene BWC tests (#2313)[https://github.com/opensearch-project/k-NN/pull/2313] * Upgrade jsonpath from 2.8.0 to 2.9.0[2325](https://github.com/opensearch-project/k-NN/pull/2325) * Bump Faiss commit from 1f42e81 to 0cbc2a8 to accelerate hamming distance calculation using _mm512_popcnt_epi64 intrinsic and also add avx512-fp16 instructions to boost performance [#2381](https://github.com/opensearch-project/k-NN/pull/2381) +* Enabled indices.breaker.total.use_real_memory setting via build.gradle for integTest Cluster to catch heap CB in local ITs and github CI actions [#2395](https://github.com/opensearch-project/k-NN/pull/2395/) ### Refactoring diff --git a/build.gradle b/build.gradle index ab05c38e3..b9d34a84e 100644 --- a/build.gradle +++ b/build.gradle @@ -167,6 +167,15 @@ ext { ) cluster.setSecure(true) } + propertyKeys = [ + breaker: [ + useRealMemory: 'tests.opensearch.indices.breaker.total.use_real_memory' + ] + ] +} + +def getBreakerSetting() { + return System.getProperty(propertyKeys.breaker.useRealMemory, 'true') } allprojects { @@ -399,6 +408,7 @@ integTest { if (System.getProperty("test.debug") != null) { jvmArgs '-agentlib:jdwp=transport=dt_socket,server=n,suspend=y,address=8000' } + systemProperty propertyKeys.breaker.useRealMemory, getBreakerSetting() } testClusters.integTest { @@ -428,6 +438,7 @@ testClusters.integTest { } } systemProperty("java.library.path", "$rootDir/jni/release") + systemProperty propertyKeys.breaker.useRealMemory, getBreakerSetting() } task integTestRemote(type: RestIntegTestTask) {