You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by HyukjinKwon <gi...@git.apache.org> on 2017/02/20 09:52:48 UTC

[GitHub] spark pull request #16999: [SPARK-18922][TESTS] Fix Windows test failures du...

GitHub user HyukjinKwon opened a pull request:

    https://github.com/apache/spark/pull/16999

    [SPARK-18922][TESTS] Fix Windows test failures due to path and resource-not-closed

    ## What changes were proposed in this pull request?
    
    This PR proposes to fix other test failures on WIndows as below:
    
    **Before**
    
    ```
    KafkaRelationSuite:
     - test late binding start offsets *** FAILED *** (7 seconds, 679 milliseconds)
       Cause: java.nio.file.FileSystemException: C:\projects\spark\target\tmp\spark-4c4b0cd1-4cb7-4908-949d-1b0cc8addb50\topic-4-0\00000000000000000000.log -> C:\projects\spark\target\tmp\spark-4c4b0cd1-4cb7-4908-949d-1b0cc8addb50\topic-4-0\00000000000000000000.log.deleted: The process cannot access the file because it is being used by another process.
    
    KafkaSourceSuite:
     - deserialization of initial offset with Spark 2.1.0 *** FAILED *** (3 seconds, 542 milliseconds)
       java.io.IOException: Failed to delete: C:\projects\spark\target\tmp\spark-97ef64fc-ae61-4ce3-ac59-287fd38bd824
    
     - deserialization of initial offset written by Spark 2.1.0 *** FAILED *** (60 milliseconds)
       java.nio.file.InvalidPathException: Illegal char <:> at index 2: /C:/projects/spark/external/kafka-0-10-sql/target/scala-2.11/test-classes/kafka-source-initial-offset-version-2.1.0.b
    
    HiveDDLSuite:
     - partitioned table should always put partition columns at the end of table schema *** FAILED *** (657 milliseconds)
       org.apache.spark.sql.AnalysisException: Path does not exist: file:/C:projectsspark	arget	mpspark-f1b83d09-850a-4bba-8e43-a2a28dfaa757;
    
    DDLSuite:
     - create a data source table without schema *** FAILED *** (94 milliseconds)
       org.apache.spark.sql.AnalysisException: Path does not exist: file:/C:projectsspark	arget	mpspark-a3f3c161-afae-4d6f-9182-e8642f77062b;
    
     - SET LOCATION for managed table *** FAILED *** (219 milliseconds)
       org.apache.spark.sql.catalyst.errors.package$TreeNodeException: execute, tree:
     Exchange SinglePartit
     +- *HashAggregate(keys=[], functions=[partial_count(1)], output=[count#99367L])
        +- *FileScan parquet default.tbl[] Batched: true, Format: Parquet, Location: InMemoryFileIndex[file:/C:projectsspark	arget	mpspark-15be2f2f-4ea9-4c47-bfee-1b7b49363033], PartitionFilters: [], PushedFilters: [], ReadSchema: struct<>
    
     - insert data to a data source table which has a not existed location should succeed *** FAILED *** (16 milliseconds)
       org.apache.spark.sql.AnalysisException: Path does not exist: file:/C:projectsspark	arget	mpspark-34987671-e8d1-4624-ba5b-db1012e1246b;
    
     - insert into a data source table with no existed partition location should succeed *** FAILED *** (16 milliseconds)
       org.apache.spark.sql.AnalysisException: Path does not exist: file:/C:projectsspark	arget	mpspark-4c6ccfbf-4091-4032-9fbc-3d40c58267d5;
    
     - read data from a data source table which has a not existed location should succeed *** FAILED *** (0 milliseconds)
    
     - read data from a data source table with no existed partition location should succeed *** FAILED *** (0 milliseconds)
       org.apache.spark.sql.AnalysisException: Path does not exist: file:/C:projectsspark	arget	mpspark-6af39e37-abd1-44e8-ac68-e2dfcf67a2f3;
     
    InputOutputMetricsSuite:
     - output metrics on records written *** FAILED *** (0 milliseconds)
       java.lang.IllegalArgumentException: Wrong FS: file://C:\projects\spark\target\tmp\spark-cd69ee77-88f2-4202-bed6-19c0ee05ef55\InputOutputMetricsSuite, expected: file:///
    
     - output metrics on records written - new Hadoop API *** FAILED *** (16 milliseconds)
       java.lang.IllegalArgumentException: Wrong FS: file://C:\projects\spark\target\tmp\spark-b69e8fcb-047b-4de8-9cdf-5f026efb6762\InputOutputMetricsSuite, expected: file:///
    ```
    
    **After**
    
    ```
    KafkaRelationSuite:
     - test late binding start offsets !!! CANCELED !!! (62 milliseconds)
    
    KafkaSourceSuite:
     - deserialization of initial offset with Spark 2.1.0 (5 seconds, 341 milliseconds)
     - deserialization of initial offset written by Spark 2.1.0 (910 milliseconds)
    
    HiveDDLSuite:
     - partitioned table should always put partition columns at the end of table schema (2 seconds)
    
    DDLSuite:
     - create a data source table without schema (828 milliseconds)
     - SET LOCATION for managed table (406 milliseconds)
     - insert data to a data source table which has a not existed location should succeed (406 milliseconds)
     - insert into a data source table with no existed partition location should succeed (453 milliseconds)
     - read data from a data source table which has a not existed location should succeed (94 milliseconds)
     - read data from a data source table with no existed partition location should succeed (265 milliseconds)
    
    InputOutputMetricsSuite:
     - output metrics on records written (172 milliseconds)
     - output metrics on records written - new Hadoop API (297 milliseconds)
    ```
    
    ## How was this patch tested?
    
    Fixed tests in `InputOutputMetricsSuite`, `KafkaRelationSuite`,  `KafkaSourceSuite`, `DDLSuite.scala` and `HiveDDLSuite`.
    
    Manually tested via AppVeyor as below:
    
    `InputOutputMetricsSuite`: https://ci.appveyor.com/project/spark-test/spark/build/633-20170219-windows-test/job/ex8nvwa6tsh7rmto
    `KafkaRelationSuite`: https://ci.appveyor.com/project/spark-test/spark/build/633-20170219-windows-test/job/h8dlcowew52y8ncw
    `KafkaSourceSuite`: https://ci.appveyor.com/project/spark-test/spark/build/634-20170219-windows-test/job/9ybgjl7yeubxcre4
    `DDLSuite.scala`: https://ci.appveyor.com/project/spark-test/spark/build/635-20170219-windows-test
    `HiveDDLSuite`: https://ci.appveyor.com/project/spark-test/spark/build/633-20170219-windows-test/job/up6o9n47er087ltb
    


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/HyukjinKwon/spark windows-fix

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/16999.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 #16999
    
----
commit 0dd78c159ef9cff2a711ffb7f182ce832ef9cf18
Author: hyukjinkwon <gu...@gmail.com>
Date:   2017-02-20T09:05:34Z

    Fix Windows test failures

----


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #16999: [SPARK-18922][TESTS] Fix new test failures on Win...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/spark/pull/16999


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #16999: [SPARK-18922][TESTS] Fix Windows new test failures due t...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/16999
  
    **[Test build #73160 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/73160/testReport)** for PR 16999 at commit [`0dd78c1`](https://github.com/apache/spark/commit/0dd78c159ef9cff2a711ffb7f182ce832ef9cf18).


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #16999: [SPARK-18922][TESTS] Fix new test failures on Windows du...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/16999
  
    **[Test build #73160 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/73160/testReport)** for PR 16999 at commit [`0dd78c1`](https://github.com/apache/spark/commit/0dd78c159ef9cff2a711ffb7f182ce832ef9cf18).
     * This patch passes all tests.
     * This patch merges cleanly.
     * This patch adds no public classes.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #16999: [SPARK-18922][TESTS] Fix new test failures on Windows du...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/16999
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/73160/
    Test PASSed.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #16999: [SPARK-18922][TESTS] Fix new test failures on Windows du...

Posted by srowen <gi...@git.apache.org>.
Github user srowen commented on the issue:

    https://github.com/apache/spark/pull/16999
  
    Merged to master


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #16999: [SPARK-18922][TESTS] Fix Windows new test failure...

Posted by HyukjinKwon <gi...@git.apache.org>.
Github user HyukjinKwon commented on a diff in the pull request:

    https://github.com/apache/spark/pull/16999#discussion_r101995600
  
    --- Diff: external/kafka-0-10-sql/src/test/scala/org/apache/spark/sql/kafka010/KafkaRelationSuite.scala ---
    @@ -147,6 +148,9 @@ class KafkaRelationSuite extends QueryTest with BeforeAndAfter with SharedSQLCon
       }
     
       test("test late binding start offsets") {
    +    // Kafka fails to remove the logs on Windows. See KAFKA-1194.
    +    assume(!Utils.isWindows)
    +
    --- End diff --
    
    It seems we can't just ignore the deletion failure because it causes the test failure.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #16999: [SPARK-18922][TESTS] Fix Windows new test failure...

Posted by HyukjinKwon <gi...@git.apache.org>.
Github user HyukjinKwon commented on a diff in the pull request:

    https://github.com/apache/spark/pull/16999#discussion_r101995924
  
    --- Diff: external/kafka-0-10-sql/src/test/scala/org/apache/spark/sql/kafka010/KafkaRelationSuite.scala ---
    @@ -147,6 +148,9 @@ class KafkaRelationSuite extends QueryTest with BeforeAndAfter with SharedSQLCon
       }
     
       test("test late binding start offsets") {
    +    // Kafka fails to remove the logs on Windows. See KAFKA-1194.
    +    assume(!Utils.isWindows)
    +
    --- End diff --
    
    The exception is raised in https://github.com/apache/spark/pull/16999/files/0dd78c159ef9cff2a711ffb7f182ce832ef9cf18#diff-ed9a2655a6ce82a33879b159863738d1R176


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #16999: [SPARK-18922][TESTS] Fix Windows new test failures due t...

Posted by HyukjinKwon <gi...@git.apache.org>.
Github user HyukjinKwon commented on the issue:

    https://github.com/apache/spark/pull/16999
  
    cc @srowen, could you take a look when you have some time?


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #16999: [SPARK-18922][TESTS] Fix new test failures on Windows du...

Posted by HyukjinKwon <gi...@git.apache.org>.
Github user HyukjinKwon commented on the issue:

    https://github.com/apache/spark/pull/16999
  
    Ah, yes. It seems they are new ones by some rescent commits.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #16999: [SPARK-18922][TESTS] Fix Windows new test failures due t...

Posted by HyukjinKwon <gi...@git.apache.org>.
Github user HyukjinKwon commented on the issue:

    https://github.com/apache/spark/pull/16999
  
    Build started: [TESTS] `org.apache.spark.metrics.InputOutputMetricsSuite` [![PR-16999](https://ci.appveyor.com/api/projects/status/github/spark-test/spark?branch=AED0529E-8CA9-4AAA-9042-9DAACD3230DC&svg=true)](https://ci.appveyor.com/project/spark-test/spark/branch/AED0529E-8CA9-4AAA-9042-9DAACD3230DC)
    Build started: [TESTS] `org.apache.spark.sql.kafka010.KafkaRelationSuite` [![PR-16999](https://ci.appveyor.com/api/projects/status/github/spark-test/spark?branch=6729D9A4-20FE-4D45-A4E1-6A47E92C238F&svg=true)](https://ci.appveyor.com/project/spark-test/spark/branch/6729D9A4-20FE-4D45-A4E1-6A47E92C238F)
    Build started: [TESTS] `org.apache.spark.sql.kafka010.KafkaSourceSuite` [![PR-16999](https://ci.appveyor.com/api/projects/status/github/spark-test/spark?branch=E0BAEE3F-D2C8-4E42-8C18-950E9A812E5C&svg=true)](https://ci.appveyor.com/project/spark-test/spark/branch/E0BAEE3F-D2C8-4E42-8C18-950E9A812E5C)
    Build started: [TESTS] `org.apache.spark.sql.hive.execution.HiveDDLSuite` [![PR-16999](https://ci.appveyor.com/api/projects/status/github/spark-test/spark?branch=B2E129A7-E774-4EDB-8448-08035E2D218E&svg=true)](https://ci.appveyor.com/project/spark-test/spark/branch/B2E129A7-E774-4EDB-8448-08035E2D218E)
    Build started: [TESTS] `org.apache.spark.sql.execution.command.DDLSuite` [![PR-16999](https://ci.appveyor.com/api/projects/status/github/spark-test/spark?branch=132E5D68-D876-4326-8DAB-E15EEE30AA89&svg=true)](https://ci.appveyor.com/project/spark-test/spark/branch/132E5D68-D876-4326-8DAB-E15EEE30AA89)


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #16999: [SPARK-18922][TESTS] Fix new test failures on Windows du...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/16999
  
    Merged build finished. Test PASSed.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org