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-31235][TESTS][FOLLOWUP][test-maven][test-hadoop3.2] Fix Hadoop-3.2 profile UT failure #28550

Closed
wants to merge 4 commits into from

Conversation

dongjoon-hyun
Copy link
Member

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

What changes were proposed in this pull request?

This PR aims to fix a UT failure in Hadoop-3.2 profile.

Why are the changes needed?

Currently, master branch Hadoop-3.2 profile jobs (SBT/Maven) are broken due to the consistent UT failure.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Pass the Jenkins with Hadoop 3.2 profile (SBT/Maven).

@dongjoon-hyun dongjoon-hyun changed the title [SPARK-31235][TESTS][FOLLOWUP][TEST-HADOOP3.2] Fix Hadoop-3.2 profile UT failure [SPARK-31235][TESTS][FOLLOWUP][test-hadoop3.2] Fix Hadoop-3.2 profile UT failure May 16, 2020
@@ -262,7 +264,7 @@ class ClientSuite extends SparkFunSuite with Matchers {
when(appContext.getUnmanagedAM).thenReturn(true)

val rmAppManager = new RMAppManager(rmContext,
null,
mock(classOf[YarnScheduler]),
Copy link
Member Author

Choose a reason for hiding this comment

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

Without this, NPE occurs at this.scheduler of Hadoop code.

@apache apache deleted a comment from SparkQA May 16, 2020
@apache apache deleted a comment from SparkQA May 16, 2020
@SparkQA
Copy link

SparkQA commented May 16, 2020

Test build #122699 has finished for PR 28550 at commit fc381a4.

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

@dongjoon-hyun dongjoon-hyun changed the title [SPARK-31235][TESTS][FOLLOWUP][test-hadoop3.2] Fix Hadoop-3.2 profile UT failure [SPARK-31235][TESTS][FOLLOWUP][test-maven][test-hadoop3.2] Fix Hadoop-3.2 profile UT failure May 16, 2020
@dongjoon-hyun
Copy link
Member Author

Retest this please

@SparkQA
Copy link

SparkQA commented May 16, 2020

Test build #122701 has finished for PR 28550 at commit 9e030e1.

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

This reverts commit 8b74398.
@dongjoon-hyun
Copy link
Member Author

Oh, @HyukjinKwon . It seems that there is still issue (maybe at the last commit.) Sorry.
I'm triggering multiple times this PR intentionally.

@SparkQA

This comment has been minimized.

@dongjoon-hyun dongjoon-hyun changed the title [SPARK-31235][TESTS][FOLLOWUP][test-maven][test-hadoop3.2] Fix Hadoop-3.2 profile UT failure [SPARK-31235][TESTS][FOLLOWUP][test-hadoop3.2] Fix Hadoop-3.2 profile UT failure May 16, 2020
@dongjoon-hyun dongjoon-hyun marked this pull request as draft May 16, 2020 05:00
@dongjoon-hyun
Copy link
Member Author

I converted this PR into the Draft since this is flaky.

@SparkQA

This comment has been minimized.

@SparkQA
Copy link

SparkQA commented May 16, 2020

Test build #122708 has finished for PR 28550 at commit 23a6a41.

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

@SparkQA
Copy link

SparkQA commented May 16, 2020

Test build #122709 has finished for PR 28550 at commit 23a6a41.

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

@dongjoon-hyun dongjoon-hyun changed the title [SPARK-31235][TESTS][FOLLOWUP][test-hadoop3.2] Fix Hadoop-3.2 profile UT failure [SPARK-31235][TESTS][FOLLOWUP][test-maven][test-hadoop3.2] Fix Hadoop-3.2 profile UT failure May 16, 2020
@dongjoon-hyun
Copy link
Member Author

Retest this please

@dongjoon-hyun dongjoon-hyun marked this pull request as ready for review May 16, 2020 05:49
@SparkQA
Copy link

SparkQA commented May 16, 2020

Test build #122711 has finished for PR 28550 at commit 5533177.

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

@SparkQA
Copy link

SparkQA commented May 16, 2020

Test build #122712 has finished for PR 28550 at commit 5533177.

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

@dongjoon-hyun dongjoon-hyun marked this pull request as draft May 16, 2020 06:07
@SparkQA
Copy link

SparkQA commented May 16, 2020

Test build #122713 has finished for PR 28550 at commit 5533177.

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

@dongjoon-hyun
Copy link
Member Author

It seems that I was confused because my local reproducer is not the same with Jenkins. For now, this has the same limitation with the previous reverted commit. I'll close this for now and revisit later.

@SparkQA
Copy link

SparkQA commented May 16, 2020

Test build #122706 has finished for PR 28550 at commit 8b74398.

  • 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 16, 2020

Test build #122714 has finished for PR 28550 at commit 5533177.

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

dongjoon-hyun added a commit that referenced this pull request May 16, 2020
…ific type` in Hadoop-3.2

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

This PR aims to recover Hadoop-3.2 profile jobs on `master` branch by disabling a UT added by SPARK-31235 in Hadoop 3.2 temporarily. The target UT is not a flaky test. It always fail on Hadoop-3.2 profile currently although it works in Hadoop 2.7 profile. So, in this PR, we keep the test coverage in Hadoop 2.7 and ignore the test in Hadoop 3.2 temporarily to unblock the other PRs.

### Why are the changes needed?

SPARK-31235 added a test case which is breaking Hadoop 3.2 and there are two follow-up to fix it. Although two follow-ups can fix the UT in Hadoop 3.2 environment. The side-effect on Hadoop classes cause some random UT failures in the other suites.
- #28456
- #28550

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

No.

### How was this patch tested?

Pass the Jenkins with SBT/Maven.

Closes #28552 from dongjoon-hyun/SPARK-31235-2.

Authored-by: Dongjoon Hyun <dongjoon@apache.org>
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
3 participants