From ce77b076ad093ec70f50c5946e7dfce05a6164bd Mon Sep 17 00:00:00 2001 From: David Kyle Date: Thu, 21 Sep 2017 12:52:31 +0100 Subject: [PATCH] [ML] Adapt memory limit thresholds in test (elastic/x-pack-elasticsearch#2581) * Adapt memory limit thresholds in test. Caused by elastic/machine-learning-cpp#305 Original commit: elastic/x-pack-elasticsearch@2984f35b2c5da8f5d1d2380caecb559a95bf62ef --- .../xpack/ml/integration/AutodetectMemoryLimitIT.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin/src/test/java/org/elasticsearch/xpack/ml/integration/AutodetectMemoryLimitIT.java b/plugin/src/test/java/org/elasticsearch/xpack/ml/integration/AutodetectMemoryLimitIT.java index dbe959f63a9..7c1278bf064 100644 --- a/plugin/src/test/java/org/elasticsearch/xpack/ml/integration/AutodetectMemoryLimitIT.java +++ b/plugin/src/test/java/org/elasticsearch/xpack/ml/integration/AutodetectMemoryLimitIT.java @@ -83,9 +83,9 @@ public class AutodetectMemoryLimitIT extends MlNativeAutodetectIntegTestCase { // it is important to check that while we rejected partitions, we still managed // to create some by fields; it shows we utilize memory in a meaningful way // rather than creating empty partitions - assertThat(modelSizeStats.getTotalPartitionFieldCount(), lessThan(700L)); + assertThat(modelSizeStats.getTotalPartitionFieldCount(), lessThan(1000L)); assertThat(modelSizeStats.getTotalPartitionFieldCount(), greaterThan(600L)); - assertThat(modelSizeStats.getTotalByFieldCount(), lessThan(700L)); + assertThat(modelSizeStats.getTotalByFieldCount(), lessThan(900L)); assertThat(modelSizeStats.getTotalByFieldCount(), greaterThan(600L)); } @@ -130,7 +130,7 @@ public class AutodetectMemoryLimitIT extends MlNativeAutodetectIntegTestCase { assertThat(modelSizeStats.getMemoryStatus(), equalTo(ModelSizeStats.MemoryStatus.HARD_LIMIT)); assertThat(modelSizeStats.getModelBytes(), lessThan(36000000L)); assertThat(modelSizeStats.getModelBytes(), greaterThan(30000000L)); - assertThat(modelSizeStats.getTotalByFieldCount(), lessThan(1600L)); + assertThat(modelSizeStats.getTotalByFieldCount(), lessThan(2100L)); assertThat(modelSizeStats.getTotalByFieldCount(), greaterThan(1500L)); }