This is an automated email from the ASF dual-hosted git repository.

gian pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/druid.git


The following commit(s) were added to refs/heads/master by this push:
     new 6ed86324201 Handle memory leaks from Mockito inline mocks (#17070)
6ed86324201 is described below

commit 6ed86324201d2f475831c39211467d193fdce639
Author: Akshat Jain <[email protected]>
AuthorDate: Sun Sep 15 23:47:25 2024 +0530

    Handle memory leaks from Mockito inline mocks (#17070)
---
 .../src/test/java/org/apache/druid/msq/test/MSQTestBase.java            | 1 +
 pom.xml                                                                 | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/extensions-core/multi-stage-query/src/test/java/org/apache/druid/msq/test/MSQTestBase.java
 
b/extensions-core/multi-stage-query/src/test/java/org/apache/druid/msq/test/MSQTestBase.java
index 0bba94f05f9..be05a0fcc8a 100644
--- 
a/extensions-core/multi-stage-query/src/test/java/org/apache/druid/msq/test/MSQTestBase.java
+++ 
b/extensions-core/multi-stage-query/src/test/java/org/apache/druid/msq/test/MSQTestBase.java
@@ -381,6 +381,7 @@ public class MSQTestBase extends BaseCalciteQueryTest
   @AfterEach
   public void tearDown2()
   {
+    Mockito.framework().clearInlineMocks();
     groupByBuffers.close();
   }
 
diff --git a/pom.xml b/pom.xml
index de754386761..d8e96ed859d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1765,7 +1765,7 @@
                             @{jacocoArgLine}
                             ${jdk.strong.encapsulation.argLine}
                             ${jdk.security.manager.allow.argLine}
-                            -Xmx2500m
+                            -Xmx2048m
                             -XX:MaxDirectMemorySize=2500m
                             -XX:+ExitOnOutOfMemoryError
                             -XX:+HeapDumpOnOutOfMemoryError


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to