Skip to content

Commit de2eb85

Browse files
authored
[ML] Re-enable memory limit integration tests (#31328)
1 parent 30d6fd3 commit de2eb85

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

x-pack/qa/ml-native-multi-node-tests/src/test/java/org/elasticsearch/xpack/ml/integration/AutodetectMemoryLimitIT.java

+1-5
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ public void cleanUpTest() {
3737
cleanUp();
3838
}
3939

40-
@AwaitsFix(bugUrl = "https://github.com/elastic/ml-cpp/pulls/122")
4140
public void testTooManyPartitions() throws Exception {
4241
Detector.Builder detector = new Detector.Builder("count", null);
4342
detector.setPartitionFieldName("user");
@@ -63,7 +62,7 @@ public void testTooManyPartitions() throws Exception {
6362
long timestamp = now - 8 * bucketSpan.seconds();
6463
List<String> data = new ArrayList<>();
6564
while (timestamp < now) {
66-
for (int i = 0; i < 10000; i++) {
65+
for (int i = 0; i < 11000; i++) {
6766
// It's important that the values used here are either always represented in less than 16 UTF-8 bytes or
6867
// always represented in more than 22 UTF-8 bytes. Otherwise platform differences in when the small string
6968
// optimisation is used will make the results of this test very different for the different platforms.
@@ -83,7 +82,6 @@ public void testTooManyPartitions() throws Exception {
8382
assertThat(modelSizeStats.getMemoryStatus(), equalTo(ModelSizeStats.MemoryStatus.HARD_LIMIT));
8483
}
8584

86-
@AwaitsFix(bugUrl = "https://github.com/elastic/ml-cpp/pulls/122")
8785
public void testTooManyByFields() throws Exception {
8886
Detector.Builder detector = new Detector.Builder("count", null);
8987
detector.setByFieldName("user");
@@ -129,7 +127,6 @@ public void testTooManyByFields() throws Exception {
129127
assertThat(modelSizeStats.getMemoryStatus(), equalTo(ModelSizeStats.MemoryStatus.HARD_LIMIT));
130128
}
131129

132-
@AwaitsFix(bugUrl = "https://github.com/elastic/ml-cpp/pulls/122")
133130
public void testTooManyByAndOverFields() throws Exception {
134131
Detector.Builder detector = new Detector.Builder("count", null);
135132
detector.setByFieldName("department");
@@ -179,7 +176,6 @@ public void testTooManyByAndOverFields() throws Exception {
179176
assertThat(modelSizeStats.getMemoryStatus(), equalTo(ModelSizeStats.MemoryStatus.HARD_LIMIT));
180177
}
181178

182-
@AwaitsFix(bugUrl = "https://github.com/elastic/ml-cpp/pulls/122")
183179
public void testManyDistinctOverFields() throws Exception {
184180
Detector.Builder detector = new Detector.Builder("sum", "value");
185181
detector.setOverFieldName("user");

0 commit comments

Comments
 (0)