You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2015/09/11 20:46:46 UTC
[jira] [Commented] (SPARK-10564) ThreadingSuite: assertions in
threads don't fail the test
[ https://issues.apache.org/jira/browse/SPARK-10564?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14741349#comment-14741349 ]
Apache Spark commented on SPARK-10564:
--------------------------------------
User 'andrewor14' has created a pull request for this issue:
https://github.com/apache/spark/pull/8723
> ThreadingSuite: assertions in threads don't fail the test
> ---------------------------------------------------------
>
> Key: SPARK-10564
> URL: https://issues.apache.org/jira/browse/SPARK-10564
> Project: Spark
> Issue Type: Bug
> Components: Tests
> Affects Versions: 1.0.0
> Reporter: Andrew Or
> Assignee: Andrew Or
> Priority: Critical
>
> In ThreadingSuite we have things like:
> {code}
> test(...) {
> ...
> val threads = (1 to 5).map { i =>
> new Thread() {
> override def run() {
> assert(sc.getLocalProperty("test") === "parent")
> sc.setLocalProperty("test", i.toString)
> assert(sc.getLocalProperty("test") === i.toString)
> sem.release()
> }
> }
> }
> ...
> }
> {code}
> If the asserts in the run block fail, they don't actually fail the test! This could mask real bugs.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org