Skip to content

Conversation

@dongjoon-hyun
Copy link
Member

@dongjoon-hyun dongjoon-hyun commented Jul 29, 2020

What changes were proposed in this pull request?

This PR aims to remove java.ws.rs.NotFoundException from two problematic import statements. All the other use cases are correct.

Why are the changes needed?

In StagesResource and OneApplicationResource, there exist two NotFoundExceptions.

  • javax.ws.rs.NotFoundException
  • org.apache.spark.status.api.v1.NotFoundException

To use org.apache.spark.status.api.v1.NotFoundException correctly, we should not import java.ws.rs.NotFoundException. This causes UT failures in Scala 2.13 environment.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

  • Scala 2.12: Pass the GitHub Action or Jenkins.
  • Scala 2.13: Do the following manually.
$ dev/change-scala-version.sh 2.13
$ build/mvn test -pl core --am -Pscala-2.13 -Dtest=none -DwildcardSuites=org.apache.spark.deploy.history.HistoryServerSuite

BEFORE

*** 4 TESTS FAILED ***

AFTER

*** 1 TEST FAILED ***

@dongjoon-hyun dongjoon-hyun changed the title [SPARK-32487][CORE] Remove javax.ws.rs.NotFoundException from import in StagesResource/OneApplicationResource [SPARK-32487][CORE] Remove j.w.r.NotFoundException from import in [Stages|OneApplication]Resource Jul 29, 2020
@dongjoon-hyun
Copy link
Member Author

cc @srowen

Copy link
Member

@srowen srowen left a comment

Choose a reason for hiding this comment

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

Seems fine if this is the easy way to fix the conflict. You could also explicitly import for j.w.r if there aren't a lot of classes.

@dongjoon-hyun
Copy link
Member Author

Yes. This is the easiest and shortest one~

@SparkQA
Copy link

SparkQA commented Jul 30, 2020

Test build #126787 has finished for PR 29293 at commit 8ceca06.

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

@dongjoon-hyun
Copy link
Member Author

Thanks. Merged to master.

@dongjoon-hyun dongjoon-hyun deleted the SPARK-32487 branch July 30, 2020 00:58
@HyukjinKwon
Copy link
Member

Nice, LGTM

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants