Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-12376

Spark Streaming Java8APISuite fails in assertOrderInvariantEquals method

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.6.0
    • Fix Version/s: 1.6.0
    • Component/s: Tests
    • Labels:
      None
    • Environment:

      Oracle Java 64-bit (build 1.8.0_66-b17)

      Description

      org.apache.spark.streaming.Java8APISuite.java is failing due to trying to sort immutable list in assertOrderInvariantEquals method.

      Here are the errors:

      Tests run: 27, Failures: 0, Errors: 4, Skipped: 0, Time elapsed: 5.948 sec <<< FAILURE! - in org.apache.spark.streaming.Java8APISuite
      testMap(org.apache.spark.streaming.Java8APISuite) Time elapsed: 0.217 sec <<< ERROR!
      java.lang.UnsupportedOperationException: null
      at java.util.AbstractList.set(AbstractList.java:132)
      at java.util.AbstractList$ListItr.set(AbstractList.java:426)
      at java.util.List.sort(List.java:482)
      at java.util.Collections.sort(Collections.java:141)
      at org.apache.spark.streaming.Java8APISuite.lambda$assertOrderInvariantEquals$1(Java8APISuite.java:444)

      testFlatMap(org.apache.spark.streaming.Java8APISuite) Time elapsed: 0.203 sec <<< ERROR!
      java.lang.UnsupportedOperationException: null
      at java.util.AbstractList.set(AbstractList.java:132)
      at java.util.AbstractList$ListItr.set(AbstractList.java:426)
      at java.util.List.sort(List.java:482)
      at java.util.Collections.sort(Collections.java:141)
      at org.apache.spark.streaming.Java8APISuite.lambda$assertOrderInvariantEquals$1(Java8APISuite.java:444)

      testFilter(org.apache.spark.streaming.Java8APISuite) Time elapsed: 0.209 sec <<< ERROR!
      java.lang.UnsupportedOperationException: null
      at java.util.AbstractList.set(AbstractList.java:132)
      at java.util.AbstractList$ListItr.set(AbstractList.java:426)
      at java.util.List.sort(List.java:482)
      at java.util.Collections.sort(Collections.java:141)
      at org.apache.spark.streaming.Java8APISuite.lambda$assertOrderInvariantEquals$1(Java8APISuite.java:444)

      testTransform(org.apache.spark.streaming.Java8APISuite) Time elapsed: 0.215 sec <<< ERROR!
      java.lang.UnsupportedOperationException: null
      at java.util.AbstractList.set(AbstractList.java:132)
      at java.util.AbstractList$ListItr.set(AbstractList.java:426)
      at java.util.List.sort(List.java:482)
      at java.util.Collections.sort(Collections.java:141)
      at org.apache.spark.streaming.Java8APISuite.lambda$assertOrderInvariantEquals$1(Java8APISuite.java:444)

      Results :

      Tests in error:
      Java8APISuite.testFilter:81->assertOrderInvariantEquals:444->lambda$assertOrderInvariantEquals$1:444 » UnsupportedOperation
      Java8APISuite.testFlatMap:360->assertOrderInvariantEquals:444->lambda$assertOrderInvariantEquals$1:444 » UnsupportedOperation
      Java8APISuite.testMap:63->assertOrderInvariantEquals:444->lambda$assertOrderInvariantEquals$1:444 » UnsupportedOperation
      Java8APISuite.testTransform:168->assertOrderInvariantEquals:444->lambda$assertOrderInvariantEquals$1:444 » UnsupportedOperation

        Attachments

          Activity

            People

            • Assignee:
              evanchen92 Evan Chen
              Reporter:
              evanchen92 Evan Chen
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: