Skip to content

Conversation

@a-roberts
Copy link
Contributor

This change is a simple one and specifies a stack size of 4096k instead of the vendor default for Java tests (the defaults vary between Java vendors). This remedies test failures observed with JavaALSSuite with IBM and Oracle Java owing to a lower default size in comparison to the size with OpenJDK. 4096k is a suitable default where the tests pass with each Java vendor tested. The alternative is to reduce the number of iterations in the test (no observed failures with 5 iterations instead of 15).

-Xss works with Oracle's HotSpot VM, IBM's J9 VM and OpenJDK (IcedTea).

I have ensured this does not have any negative implications for other tests.

Increase stack size - defaults vary between Java vendors. This remedies test failures observed with JavaALSSuite with IBM & Oracle Java owing to lower default size in comparison to OpenJDK.
@srowen
Copy link
Member

srowen commented Jun 9, 2015

Sounds OK; does this need to go in the SBT build too? also I am probably wrong about this but I thought there was another place this was specified in the Maven build.

@srowen
Copy link
Member

srowen commented Jun 9, 2015

ok to test

@a-roberts
Copy link
Contributor Author

Sean, excellent point about the SBT build, we've been using Maven exclusively for testing - if there's also, say, an -Xmx3g (e.g. an argline equivalent as in the pom file for Maven) then indeed such an addition will need to be made too. I'll have a look, suspecting the answer is yes; it would make sense for such additional options to be mirrored

@a-roberts
Copy link
Contributor Author

You're right, at project/SparkBuild.scala it's clear we'll need to increase the stack size here too - should I create a new pull request or can we add to the code changed here?

@squito
Copy link
Contributor

squito commented Jun 9, 2015

I'd say you should just add the changes to the sbt build here as well

@SparkQA
Copy link

SparkQA commented Jun 9, 2015

Test build #34521 has finished for PR 6727 at commit 5032d8d.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@JoshRosen
Copy link
Contributor

Can you make a JIRA for this?

@SparkQA
Copy link

SparkQA commented Jun 9, 2015

Test build #34526 has finished for PR 6727 at commit ab40aea.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@a-roberts a-roberts changed the title Specify stack size for consistency with Java tests - resolves test failures [SPARK-8289] Specify stack size for consistency with Java tests - resolves test failures Jun 10, 2015
@srowen
Copy link
Member

srowen commented Jun 10, 2015

LGTM

asfgit pushed a commit that referenced this pull request Jun 11, 2015
…olves test failures

This change is a simple one and specifies a stack size of 4096k instead of the vendor default for Java tests (the defaults vary between Java vendors). This remedies test failures observed with JavaALSSuite with IBM and Oracle Java owing to a lower default size in comparison to the size with OpenJDK. 4096k is a suitable default where the tests pass with each Java vendor tested. The alternative is to reduce the number of iterations in the test (no observed failures with 5 iterations instead of 15).

-Xss works with Oracle's HotSpot VM, IBM's J9 VM and OpenJDK (IcedTea).

I have ensured this does not have any negative implications for other tests.

Author: Adam Roberts <aroberts@uk.ibm.com>
Author: a-roberts <aroberts@uk.ibm.com>

Closes #6727 from a-roberts/IncJavaStackSize and squashes the following commits:

ab40aea [Adam Roberts] Specify stack size for SBT builds
5032d8d [a-roberts] Update pom.xml

(cherry picked from commit 6b68366)
Signed-off-by: Sean Owen <sowen@cloudera.com>
@asfgit asfgit closed this in 6b68366 Jun 11, 2015
nemccarthy pushed a commit to nemccarthy/spark that referenced this pull request Jun 19, 2015
…olves test failures

This change is a simple one and specifies a stack size of 4096k instead of the vendor default for Java tests (the defaults vary between Java vendors). This remedies test failures observed with JavaALSSuite with IBM and Oracle Java owing to a lower default size in comparison to the size with OpenJDK. 4096k is a suitable default where the tests pass with each Java vendor tested. The alternative is to reduce the number of iterations in the test (no observed failures with 5 iterations instead of 15).

-Xss works with Oracle's HotSpot VM, IBM's J9 VM and OpenJDK (IcedTea).

I have ensured this does not have any negative implications for other tests.

Author: Adam Roberts <aroberts@uk.ibm.com>
Author: a-roberts <aroberts@uk.ibm.com>

Closes apache#6727 from a-roberts/IncJavaStackSize and squashes the following commits:

ab40aea [Adam Roberts] Specify stack size for SBT builds
5032d8d [a-roberts] Update pom.xml
mtbrandy pushed a commit to ibmsoe/spark that referenced this pull request Jun 23, 2015
…olves test failures

This change is a simple one and specifies a stack size of 4096k instead of the vendor default for Java tests (the defaults vary between Java vendors). This remedies test failures observed with JavaALSSuite with IBM and Oracle Java owing to a lower default size in comparison to the size with OpenJDK. 4096k is a suitable default where the tests pass with each Java vendor tested. The alternative is to reduce the number of iterations in the test (no observed failures with 5 iterations instead of 15).

-Xss works with Oracle's HotSpot VM, IBM's J9 VM and OpenJDK (IcedTea).

I have ensured this does not have any negative implications for other tests.

Author: Adam Roberts <aroberts@uk.ibm.com>
Author: a-roberts <aroberts@uk.ibm.com>

Closes apache#6727 from a-roberts/IncJavaStackSize and squashes the following commits:

ab40aea [Adam Roberts] Specify stack size for SBT builds
5032d8d [a-roberts] Update pom.xml

(cherry picked from commit 6b68366)
Signed-off-by: Sean Owen <sowen@cloudera.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants