Skip to content

Commit d3dfce1

Browse files
authored
[Test] Set explicit heap size in DebPreservationTests to prevent oom-killed failures (#141440) (#141445)
The `@Before` hook for heap sizing runs before installation is assigned, leading to potential issues with automatic heap sizing. This change sets the heap size to `1g` explicitly to avoid oom-killed errors during tests.
1 parent 87fc26e commit d3dfce1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

qa/packaging/src/test/java/org/elasticsearch/packaging/test/DebPreservationTests.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,10 @@ public void test40RestartOnUpgrade() throws Exception {
100100
installation = installPackage(sh, distribution());
101101
assertInstalled(distribution());
102102

103+
// The @Before hook that normally pins heap runs before installation is assigned in this test,
104+
// so explicitly set it here to avoid CI oom-killed from auto heap sizing.
105+
setHeap("1g");
106+
103107
// Ensure ES is started
104108
Packages.runElasticsearchStartCommand(sh);
105109
ServerUtils.waitForElasticsearch(installation);

0 commit comments

Comments
 (0)