[ 
https://issues.apache.org/jira/browse/SPARK-24285?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16668933#comment-16668933
 ] 

Imran Rashid commented on SPARK-24285:
--------------------------------------

I ran into this on one of my prs so I tried to take a quick look, but didn't 
get anywhere.  I didn't see anything obviously wrong in the test output, and I 
ran a few hundred times on my laptop and failed to reproduce.  one thing which 
might help is changing that assert slightly so we can actually see what the 
{{results}} are when it fails:

{code}
      val results = spark.read.table("noharness").collect().toSet
      assert(Set(0, 1, 2, 3).map(Row(_)).subsetOf(results), results)
{code}

> Flaky test: ContinuousSuite.query without test harness
> ------------------------------------------------------
>
>                 Key: SPARK-24285
>                 URL: https://issues.apache.org/jira/browse/SPARK-24285
>             Project: Spark
>          Issue Type: Bug
>          Components: Structured Streaming, Tests
>    Affects Versions: 2.4.0
>            Reporter: Dongjoon Hyun
>            Priority: Major
>
> *2.5.0-SNAPSHOT*
>  - [https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/96640]
> {code:java}
> sbt.ForkMain$ForkError: org.scalatest.exceptions.TestFailedException: 
> scala.this.Predef.Set.apply[Int](0, 1, 2, 3).map[org.apache.spark.sql.Row, 
> scala.collection.immutable.Set[org.apache.spark.sql.Row]](((x$3: Int) => 
> org.apache.spark.sql.Row.apply(x$3)))(immutable.this.Set.canBuildFrom[org.apache.spark.sql.Row]).subsetOf(scala.this.Predef.refArrayOps[org.apache.spark.sql.Row](results).toSet[org.apache.spark.sql.Row])
>  was false{code}
> *2.3.x*
>  - 
> [https://amplab.cs.berkeley.edu/jenkins/view/Spark%20QA%20Test%20(Dashboard)/job/spark-branch-2.3-test-maven-hadoop-2.7/370/]
>  - 
> [https://amplab.cs.berkeley.edu/jenkins/view/Spark%20QA%20Test%20(Dashboard)/job/spark-branch-2.3-test-maven-hadoop-2.7/373/]



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to