Skip to content

Comments

[SPARK-43285] Fix ReplE2ESuite consistently failing with JDK 17#40948

Closed
vicennial wants to merge 1 commit intoapache:masterfrom
vicennial:SPARK-43285
Closed

[SPARK-43285] Fix ReplE2ESuite consistently failing with JDK 17#40948
vicennial wants to merge 1 commit intoapache:masterfrom
vicennial:SPARK-43285

Conversation

@vicennial
Copy link
Contributor

@vicennial vicennial commented Apr 25, 2023

What changes were proposed in this pull request?

The timeout duration for the REPL has been increased from 10 -> 30 seconds (to address slow start on JDK 17 tests) and the semaphore permits are drained after each test (to avoid cascading failures, context).

Why are the changes needed?

The GA JDK 17 tests consistently fails as described in the jira issue.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Locally verified by installing and running tests with JDK 17 (both the failure and the subsequent fix).

@LuciferYang
Copy link
Contributor

Is there a way to reproduce the failure like GA? I always run successfully using Java 17 locally w/o this pr.

@vicennial
Copy link
Contributor Author

@LuciferYang To repro, I set JAVA_HOME to /usr/lib/jvm/java-17-openjdk-amd64/ and made sure that sbt is picking this settings up (these lines should be in the log Using /usr/lib/jvm/java-17-openjdk-amd64/ as default JAVA_HOME. Note, this will be overridden by -java-home if it is set.)
This was enough to trigger the failure:
Screenshot 2023-04-25 at 21 42 59

@LuciferYang
Copy link
Contributor

@LuciferYang To repro, I set JAVA_HOME to /usr/lib/jvm/java-17-openjdk-amd64/ and made sure that sbt is picking this settings up (these lines should be in the log Using /usr/lib/jvm/java-17-openjdk-amd64/ as default JAVA_HOME. Note, this will be overridden by -java-home if it is set.) This was enough to trigger the failure: Screenshot 2023-04-25 at 21 42 59

Let me give it a try ~ thanks ~

Copy link
Contributor

@hvanhovell hvanhovell left a comment

Choose a reason for hiding this comment

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

LGTM

@hvanhovell
Copy link
Contributor

Merging this unblock JDK 17 build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants