Skip to content

[#1243] fix(test): Fix the flaky test SparkSQLTest and `Repartition… - #1244

Merged
kaijchen merged 1 commit into
apache:masterfrom
summaryzb:flaky_test_npe
Oct 17, 2023
Merged

[#1243] fix(test): Fix the flaky test SparkSQLTest and `Repartition…#1244
kaijchen merged 1 commit into
apache:masterfrom
summaryzb:flaky_test_npe

Conversation

@summaryzb

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Remove static tmpDir field annotated with @TempDir of which their super class has the same field with the same annotation

Why are the changes needed?

When both static tmpDir field annotated with @TempDir exists, the tmpDir of the super class is not initialized by the junit framework, then NullPointerException occurs when call IntegrationTestBase.getShuffleServerConf()

#1243

Does this PR introduce any user-facing change?

No.

How was this patch tested?

mvn -B package -Dtest=org.apache.uniffle.test.SparkSQLWithDelegationShuffleManagerTest -Pspark3
mvn -B package -Dtest=org.apache.uniffle.test.RepartitionWithLocalFileRssTest -Pspark3

@summaryzb

Copy link
Copy Markdown
Contributor Author

@jerqi @kaijchen PTAL

@kaijchen kaijchen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@kaijchen
kaijchen merged commit b2154c7 into apache:master Oct 17, 2023
@roryqi

roryqi commented Oct 18, 2023

Copy link
Copy Markdown
Contributor

@kaijchen Could you merge this pr to branch-0.8, too?

kaijchen pushed a commit that referenced this pull request Oct 18, 2023
…Test` (#1244)

### What changes were proposed in this pull request?
Remove static tmpDir field annotated with `@TempDir` of which their super class has the same field  with the same annotation

### Why are the changes needed?
When both static tmpDir field annotated with `@TempDir` exists, the tmpDir of the super class is not initialized by the junit framework, then NullPointerException occurs when call `IntegrationTestBase.getShuffleServerConf()`

#1243

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

### How was this patch tested?
mvn -B   package -Dtest=org.apache.uniffle.test.SparkSQLWithDelegationShuffleManagerTest -Pspark3
mvn -B   package -Dtest=org.apache.uniffle.test.RepartitionWithLocalFileRssTest -Pspark3
@summaryzb
summaryzb deleted the flaky_test_npe branch November 17, 2023 05:26
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.

3 participants