vvcephei commented on a change in pull request #8905:
URL: https://github.com/apache/kafka/pull/8905#discussion_r446409619



##########
File path: build.gradle
##########
@@ -97,7 +97,7 @@ ext {
   buildVersionFileName = "kafka-version.properties"
 
   defaultMaxHeapSize = "2g"
-  defaultJvmArgs = ["-Xss4m", "-XX:+UseParallelGC"]
+  defaultJvmArgs = ["-Xss4m"]

Review comment:
       Aha! I figured it out. There actually was a bug in the test. While 
duck-typing, the code was trying to allocate an array of 1.8GB. It's funny that 
disabling this flag made this test pass on java 11 and 14. Maybe the flag 
partitions the heap on those versions or something, so the test didn't actually 
have the full 2GB available. Anyway, I'm about to push a fix and put the flag 
back.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to