You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2021/01/27 17:56:49 UTC
[GitHub] [spark] attilapiros commented on a change in pull request #31363: [WIP][SPARK-34154][YARN] Fix flaky test in LocalityPlacementStrategySuite
attilapiros commented on a change in pull request #31363:
URL: https://github.com/apache/spark/pull/31363#discussion_r565516665
##########
File path: resource-managers/yarn/src/test/scala/org/apache/spark/deploy/yarn/LocalityPlacementStrategySuite.scala
##########
@@ -33,7 +33,7 @@ class LocalityPlacementStrategySuite extends SparkFunSuite {
test("handle large number of containers and tasks (SPARK-18750)") {
// Run the test in a thread with a small stack size, since the original issue
// surfaced as a StackOverflowError.
- var error: Throwable = null
+ @volatile var error: Throwable = null
Review comment:
As this is set from another thread so this must be either volatile or the access synchronized.
----------------------------------------------------------------
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:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org