GitHub user gatorsmile opened a pull request:
https://github.com/apache/spark/pull/14978
[SPARK-17408] [TEST] Flaky test: org.apache.spark.sql.hive.StatisticsSuite
### What changes were proposed in this pull request?
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/64956/testReport/junit/org.apache.spark.sql.hive/StatisticsSuite/test_statistics_of_LogicalRelation_converted_from_MetastoreRelation/
```
org.apache.spark.sql.hive.StatisticsSuite.test statistics of
LogicalRelation converted from MetastoreRelation
Failing for the past 1 build (Since Failed#64956 )
Took 1.4 sec.
Error Message
org.scalatest.exceptions.TestFailedException: 6871 did not equal 4236
Stacktrace
sbt.ForkMain$ForkError: org.scalatest.exceptions.TestFailedException: 6871
did not equal 4236
at
org.scalatest.Assertions$class.newAssertionFailedException(Assertions.scala:500)
```
This fix does not check the exact value of `sizeInBytes`. Instead, we
compare whether it is larger than zero and compare the values between different
values.
In addition, we also combine `checkMetastoreRelationStats` and
`checkLogicalRelationStats` into the same checking function.
### How was this patch tested?
N/A
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/gatorsmile/spark spark17408
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/14978.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #14978
----
commit a257bc5f01f6adc099e1f909ef28aff95a86e615
Author: gatorsmile <[email protected]>
Date: 2016-09-06T18:40:55Z
fix.
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]