Skip to content
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

[SPARK-31716][SQL] Use fallback versions in HiveExternalCatalogVersionsSuite #28536

Closed
wants to merge 2 commits into from
Closed

[SPARK-31716][SQL] Use fallback versions in HiveExternalCatalogVersionsSuite #28536

wants to merge 2 commits into from

Conversation

dongjoon-hyun
Copy link
Member

@dongjoon-hyun dongjoon-hyun commented May 15, 2020

What changes were proposed in this pull request?

This PR aims to provide a fallback version instead of Nil in HiveExternalCatalogVersionsSuite. The provided fallback Spark versions recovers Jenkins jobs instead of failing.

Why are the changes needed?

Currently, HiveExternalCatalogVersionsSuite is aborted in all Jenkins jobs except JDK11 Jenkins jobs which don't have old Spark releases supporting JDK11.

HiveExternalCatalogVersionsSuite:
org.apache.spark.sql.hive.HiveExternalCatalogVersionsSuite *** ABORTED ***
  Exception encountered when invoking run on a nested suite - Fail to get the lates Spark versions to test. (HiveExternalCatalogVersionsSuite.scala:180)

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Pass the Jenkins

@dongjoon-hyun dongjoon-hyun marked this pull request as draft May 15, 2020 03:45
@dongjoon-hyun dongjoon-hyun changed the title [WIP][SPARK-XXX][SQL] Use a fallback version in HiveExternalCatalogVersionsSuite [SPARK-31716][SQL] Use a fallback version in HiveExternalCatalogVersionsSuite May 15, 2020
@dongjoon-hyun dongjoon-hyun marked this pull request as ready for review May 15, 2020 05:34
@dongjoon-hyun
Copy link
Member Author

Hi, @cloud-fan and @HyukjinKwon .
Could you review this PR? This PR is providing a fallback Spark versions instead of failing. AFAIK, this is the only way to recover our Jenkins jobs without losing the test coverage. I filed SPARK-31717 together to revert or replace this ad-hoc later.

@dongjoon-hyun dongjoon-hyun changed the title [SPARK-31716][SQL] Use a fallback version in HiveExternalCatalogVersionsSuite [SPARK-31716][SQL] Use fallback versions in HiveExternalCatalogVersionsSuite May 15, 2020
Copy link
Member

@viirya viirya left a comment

Choose a reason for hiding this comment

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

Even we have fallback versions, don't we still need to download them from network? If we cannot get Spark release list from network, can we download it?

@cloud-fan
Copy link
Contributor

same question with @viirya

@dongjoon-hyun
Copy link
Member Author

dongjoon-hyun commented May 15, 2020

The real download is okay. As you see the Jenkins running status, the download logic have a fallback logic (try some mirror and go to https://archive.apache.org/dist). The URLs are different and the network issue happens differently on the URL, @viirya and @cloud-fan .

For example, gitbox.apache.org failed while github.com succeeded. Please see SPARK-31693~

@dongjoon-hyun
Copy link
Member Author

Both jenkins test jobs are running on R test stage, but they will fail soon since it's PST midnight.

@dongjoon-hyun
Copy link
Member Author

BTW, there was several blockers until now. I believe this will recover most jobs. master branch Hadoop 3.2 profile jobs are failing on suspicious YARN patches. I also pinged on that commit, too.

@SparkQA
Copy link

SparkQA commented May 15, 2020

Test build #122644 has finished for PR 28536 at commit 5505ab1.

  • This patch fails due to an unknown error code, -9.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented May 15, 2020

Test build #122643 has finished for PR 28536 at commit 6d44e9e.

  • This patch fails due to an unknown error code, -9.
  • This patch merges cleanly.
  • This patch adds no public classes.

@dongjoon-hyun
Copy link
Member Author

dongjoon-hyun commented May 15, 2020

If you don't mind, I'll merge this to master/3.0/2.4 to recover them. Currently, this is a blocker for all. Current situation is a kind of disaster.

@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/122644/
Test FAILed.

@dongjoon-hyun
Copy link
Member Author

Merged to master/3.0/2.4.

dongjoon-hyun added a commit that referenced this pull request May 15, 2020
…nsSuite

# What changes were proposed in this pull request?

This PR aims to provide a fallback version instead of `Nil` in `HiveExternalCatalogVersionsSuite`. The provided fallback Spark versions recovers Jenkins jobs instead of failing.

### Why are the changes needed?

Currently, `HiveExternalCatalogVersionsSuite` is aborted in all Jenkins jobs except JDK11 Jenkins jobs which don't have old Spark releases supporting JDK11.
```
HiveExternalCatalogVersionsSuite:
org.apache.spark.sql.hive.HiveExternalCatalogVersionsSuite *** ABORTED ***
  Exception encountered when invoking run on a nested suite - Fail to get the lates Spark versions to test. (HiveExternalCatalogVersionsSuite.scala:180)
```

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

Pass the Jenkins

Closes #28536 from dongjoon-hyun/SPARK-HiveExternalCatalogVersionsSuite.

Authored-by: Dongjoon Hyun <dongjoon@apache.org>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
(cherry picked from commit 5d90886)
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
dongjoon-hyun added a commit that referenced this pull request May 15, 2020
…nsSuite

# What changes were proposed in this pull request?

This PR aims to provide a fallback version instead of `Nil` in `HiveExternalCatalogVersionsSuite`. The provided fallback Spark versions recovers Jenkins jobs instead of failing.

### Why are the changes needed?

Currently, `HiveExternalCatalogVersionsSuite` is aborted in all Jenkins jobs except JDK11 Jenkins jobs which don't have old Spark releases supporting JDK11.
```
HiveExternalCatalogVersionsSuite:
org.apache.spark.sql.hive.HiveExternalCatalogVersionsSuite *** ABORTED ***
  Exception encountered when invoking run on a nested suite - Fail to get the lates Spark versions to test. (HiveExternalCatalogVersionsSuite.scala:180)
```

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

Pass the Jenkins

Closes #28536 from dongjoon-hyun/SPARK-HiveExternalCatalogVersionsSuite.

Authored-by: Dongjoon Hyun <dongjoon@apache.org>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
(cherry picked from commit 5d90886)
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
@@ -242,7 +242,7 @@ object PROCESS_TABLES extends QueryTest with SQLTestUtils {
.filter(_ < org.apache.spark.SPARK_VERSION)
} catch {
// do not throw exception during object initialization.
case NonFatal(_) => Nil
case NonFatal(_) => Seq("2.3.4", "2.4.5") // A temporary fallback to use a specific version
Copy link
Member

Choose a reason for hiding this comment

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

@dongjoon-hyun, is it a temporary fix? If we want to keep this, looks like we don't need to try to have this list above.

Copy link
Member

Choose a reason for hiding this comment

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

Ah, okay. Just read about SPARK-31717.

@HyukjinKwon
Copy link
Member

LGTM

@dongjoon-hyun
Copy link
Member Author

Thank you, @HyukjinKwon .

@dongjoon-hyun dongjoon-hyun deleted the SPARK-HiveExternalCatalogVersionsSuite branch June 4, 2020 22:30
dongjoon-hyun pushed a commit that referenced this pull request Sep 14, 2020
…7 in HiveExternalCatalogVersionsSuite

### What changes were proposed in this pull request?

The Jenkins job fails to get the versions. This was fixed by adding temporary fallbacks at #28536.
This still doesn't work without the temporary fallbacks. See #29694

This PR adds new fallbacks since 2.3 is EOL and Spark 3.0.1 and 2.4.7 are released.

### Why are the changes needed?

To test correctly in Jenkins.

### Does this PR introduce _any_ user-facing change?

No, dev-only

### How was this patch tested?

Jenkins and GitHub Actions builds should test.

Closes #29748 from HyukjinKwon/SPARK-32876.

Authored-by: HyukjinKwon <gurwls223@apache.org>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
dongjoon-hyun pushed a commit that referenced this pull request Sep 14, 2020
…7 in HiveExternalCatalogVersionsSuite

### What changes were proposed in this pull request?

The Jenkins job fails to get the versions. This was fixed by adding temporary fallbacks at #28536.
This still doesn't work without the temporary fallbacks. See #29694

This PR adds new fallbacks since 2.3 is EOL and Spark 3.0.1 and 2.4.7 are released.

### Why are the changes needed?

To test correctly in Jenkins.

### Does this PR introduce _any_ user-facing change?

No, dev-only

### How was this patch tested?

Jenkins and GitHub Actions builds should test.

Closes #29748 from HyukjinKwon/SPARK-32876.

Authored-by: HyukjinKwon <gurwls223@apache.org>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
(cherry picked from commit 0696f04)
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
holdenk pushed a commit to holdenk/spark that referenced this pull request Oct 27, 2020
…7 in HiveExternalCatalogVersionsSuite

### What changes were proposed in this pull request?

The Jenkins job fails to get the versions. This was fixed by adding temporary fallbacks at apache#28536.
This still doesn't work without the temporary fallbacks. See apache#29694

This PR adds new fallbacks since 2.3 is EOL and Spark 3.0.1 and 2.4.7 are released.

### Why are the changes needed?

To test correctly in Jenkins.

### Does this PR introduce _any_ user-facing change?

No, dev-only

### How was this patch tested?

Jenkins and GitHub Actions builds should test.

Closes apache#29748 from HyukjinKwon/SPARK-32876.

Authored-by: HyukjinKwon <gurwls223@apache.org>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
(cherry picked from commit 0696f04)
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
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.

6 participants