Skip to content

[SPARK-26266][BUILD] Update to Scala 2.12.8 #23218

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

srowen
Copy link
Member

@srowen srowen commented Dec 4, 2018

What changes were proposed in this pull request?

Update to Scala 2.12.8

How was this patch tested?

Existing tests.

@SparkQA
Copy link

SparkQA commented Dec 4, 2018

Test build #99666 has finished for PR 23218 at commit b667d37.

  • This patch fails to build.
  • This patch merges cleanly.
  • This patch adds no public classes.

@srowen
Copy link
Member Author

srowen commented Dec 4, 2018

Hm, looks like genjavadocplugin is published for individual Scala releases and doesn't exist yet for 2.12.8: https://mvnrepository.com/artifact/com.typesafe.genjavadoc/genjavadoc-plugin . I'll look at whether we can leave it at 2.12.7 or whether to expect it will be released soon.

@dongjoon-hyun
Copy link
Member

@dongjoon-hyun
Copy link
Member

Retest this please.

Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I build this PR with maven, too. The building itself looks good.
Let's see the Jenkins result.

@SparkQA
Copy link

SparkQA commented Dec 4, 2018

Test build #99679 has finished for PR 23218 at commit b667d37.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Dec 4, 2018

Test build #4451 has finished for PR 23218 at commit b667d37.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Dec 5, 2018

Test build #4452 has finished for PR 23218 at commit b667d37.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@srowen
Copy link
Member Author

srowen commented Dec 5, 2018

Hm, one failure was due to a JVM crash, but it fails twice consistent, with sbt just exiting with status 134. No other failures are logged. Not sure what to make of that!

Copy link
Member

@felixcheung felixcheung left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change is ok, but maybe the crash is related to .7 -> .8?

@dongjoon-hyun
Copy link
Member

dongjoon-hyun commented Dec 5, 2018

Surprisingly, all of three are due to consistent JVM crashes. It seems that Scala 2.12.8, scalatest, or Spark has some unstable code somewhere.

[info] <span style="color: #00CD00;">- SPARK-17641: collect functions should not collect null values (231 milliseconds)</span>
10:51:04.251 WARN org.apache.spark.sql.execution.window.WindowExec: No Partition Defined for Window operation! Moving all data to a single partition, this can cause serious performance degradation.
10:51:04.262 WARN org.apache.spark.sql.execution.window.WindowExec: No Partition Defined for Window operation! Moving all data to a single partition, this can cause serious performance degradation.
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007fa843744e44, pid=116353, tid=140360030242560
[info] <span style="color: #00CD00;">- read from textfile (508 milliseconds)</span>
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f60ec641e44, pid=40380, tid=140053491689216
#
[info] <span style="color: #00CD00;">- SPARK-21996 read from text files generated by file sink -- file name has space (532 milliseconds)</span>
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f399e84ee44, pid=106264, tid=139883238606592
#

@dongjoon-hyun
Copy link
Member

dongjoon-hyun commented Dec 5, 2018

This might be https://bugs.openjdk.java.net/browse/JDK-8136447 (which is resolved later by other issue)

$ grep build_loop_late_post consoleFull*
consoleFull.4451:# V  [libjvm.so+0x812e44]  PhaseIdealLoop::build_loop_late_post(Node*)+0x144
consoleFull.4451:# V  [libjvm.so+0x812e44]  PhaseIdealLoop::build_loop_late_post(Node*)+0x144
consoleFull.4452:# V  [libjvm.so+0x812e44]  PhaseIdealLoop::build_loop_late_post(Node*)+0x144
consoleFull.4452:# V  [libjvm.so+0x812e44]  PhaseIdealLoop::build_loop_late_post(Node*)+0x144
consoleFull.4452:# V  [libjvm.so+0x812e44]  PhaseIdealLoop::build_loop_late_post(Node*)+0x144
consoleFull.99679:# V  [libjvm.so+0x812e44]  PhaseIdealLoop::build_loop_late_post(Node*)+0x144
consoleFull.99679:# V  [libjvm.so+0x812e44]  PhaseIdealLoop::build_loop_late_post(Node*)+0x144
consoleFull.99679:# V  [libjvm.so+0x812e44]  PhaseIdealLoop::build_loop_late_post(Node*)+0x144

Our jenkins are using the following affected version.

JRE version: Java(TM) SE Runtime Environment (8.0_60-b27) (build 1.8.0_60-b27)

cc @shaneknapp

@srowen
Copy link
Member Author

srowen commented Dec 5, 2018

Ah OK, so all of them were a JVM crash. It would probably be a good idea to update the JVM on all the workers as _60 is over 3 years old. It's probably not as simple as it sounds but WDYT @shaneknapp ?

@shaneknapp
Copy link
Contributor

shaneknapp commented Dec 5, 2018 via email

@shaneknapp
Copy link
Contributor

@dongjoon-hyun
Copy link
Member

Thank you, @srowen , @HyukjinKwon , @shaneknapp !

@felixcheung
Copy link
Member

do we need to relnote jvm compatibility?

@srowen
Copy link
Member Author

srowen commented Dec 7, 2018

I'm not sure. I can't find any other reference to this crash and 2.12.8. It could be something only Spark happens to trigger, or could be specific to this JVM + platform but not Spark or Scala. We could drop a release note at least recommending the latest version of Java 8 (and 11) with Spark 2.4 / 3.0

@shaneknapp
Copy link
Contributor

okie dokie, java8 update is done!
https://issues.apache.org/jira/browse/SPARK-26282

@dongjoon-hyun
Copy link
Member

@shaneknapp .
The above run is still using old one. Do we need to retrigger to use JDK8_191?

[info] Building Spark (w/Hive 1.2.1) using SBT with these arguments:  -Phadoop-2.7 -Pkubernetes -Phive-thriftserver -Pkinesis-asl -Pyarn -Pspark-ganglia-lgpl -Phive -Pmesos test:package streaming-kinesis-asl-assembly/assembly
Using /usr/java/jdk1.8.0_60 as default JAVA_HOME.
Note, this will be overridden by -java-home if it is set.

@shaneknapp
Copy link
Contributor

shaneknapp commented Dec 7, 2018 via email

@shaneknapp
Copy link
Contributor

ok, PRB builds updated w/the new JAVA_HOME

@dongjoon-hyun
Copy link
Member

Retest this please.

@shaneknapp
Copy link
Contributor

it's building w/the proper java now. from the build log:

[EnvInject] - Injecting as environment variables the properties content 
JENKINS_MASTER_HOSTNAME=amp-jenkins-master
JAVA_HOME=/usr/java/jdk1.8.0_191
JAVA_7_HOME=/usr/java/jdk1.7.0_79
SPARK_TESTING=1

@SparkQA
Copy link

SparkQA commented Dec 8, 2018

Test build #4461 has finished for PR 23218 at commit b667d37.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Dec 8, 2018

Test build #99849 has finished for PR 23218 at commit b667d37.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@srowen
Copy link
Member Author

srowen commented Dec 8, 2018

Merged to master. I'll open a separate PR for branch-2.4

@srowen srowen closed this Dec 8, 2018
@srowen srowen deleted the SPARK-26266 branch December 8, 2018 12:05
HyukjinKwon pushed a commit to HyukjinKwon/spark that referenced this pull request Dec 8, 2018
## What changes were proposed in this pull request?

Update to Scala 2.12.8

## How was this patch tested?

Existing tests.

Closes apache#23218 from srowen/SPARK-26266.

Authored-by: Sean Owen <sean.owen@databricks.com>
Signed-off-by: Sean Owen <sean.owen@databricks.com>
asfgit pushed a commit that referenced this pull request Dec 8, 2018
## What changes were proposed in this pull request?

Back-port of #23218 ; updates Scala 2.12 build to 2.12.8

## How was this patch tested?

Existing tests.

Closes #23264 from srowen/SPARK-26266.2.

Authored-by: Sean Owen <sean.owen@databricks.com>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
jackylee-ch pushed a commit to jackylee-ch/spark that referenced this pull request Feb 18, 2019
## What changes were proposed in this pull request?

Update to Scala 2.12.8

## How was this patch tested?

Existing tests.

Closes apache#23218 from srowen/SPARK-26266.

Authored-by: Sean Owen <sean.owen@databricks.com>
Signed-off-by: Sean Owen <sean.owen@databricks.com>
kai-chi pushed a commit to kai-chi/spark that referenced this pull request Jul 23, 2019
## What changes were proposed in this pull request?

Back-port of apache#23218 ; updates Scala 2.12 build to 2.12.8

## How was this patch tested?

Existing tests.

Closes apache#23264 from srowen/SPARK-26266.2.

Authored-by: Sean Owen <sean.owen@databricks.com>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
kai-chi pushed a commit to kai-chi/spark that referenced this pull request Aug 1, 2019
## What changes were proposed in this pull request?

Back-port of apache#23218 ; updates Scala 2.12 build to 2.12.8

## How was this patch tested?

Existing tests.

Closes apache#23264 from srowen/SPARK-26266.2.

Authored-by: Sean Owen <sean.owen@databricks.com>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
zhongjinhan pushed a commit to zhongjinhan/spark-1 that referenced this pull request Sep 3, 2019
## What changes were proposed in this pull request?

Back-port of apache/spark#23218 ; updates Scala 2.12 build to 2.12.8

## How was this patch tested?

Existing tests.

Closes #23264 from srowen/SPARK-26266.2.

Authored-by: Sean Owen <sean.owen@databricks.com>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
(cherry picked from commit 14b75eb)
rshkv pushed a commit to palantir/spark that referenced this pull request Jun 18, 2020
Update to Scala 2.12.8

Existing tests.

Closes apache#23218 from srowen/SPARK-26266.

Authored-by: Sean Owen <sean.owen@databricks.com>
Signed-off-by: Sean Owen <sean.owen@databricks.com>
rshkv pushed a commit to palantir/spark that referenced this pull request Jul 16, 2020
Update to Scala 2.12.8

Existing tests.

Closes apache#23218 from srowen/SPARK-26266.

Authored-by: Sean Owen <sean.owen@databricks.com>
Signed-off-by: Sean Owen <sean.owen@databricks.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants