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-36681][CORE][TEST] Enable SnappyCodec test in FileSuite #35784

Closed
wants to merge 1 commit into from

Conversation

viirya
Copy link
Member

@viirya viirya commented Mar 9, 2022

What changes were proposed in this pull request?

This patch enables SnappyCodec test in FileSuite as snappy-java relocation issue was fixed in Hadoop 3.3.2 that Spark is using now.

Why are the changes needed?

Enabling test case.

Does this PR introduce any user-facing change?

No

How was this patch tested?

Updated test.

@github-actions github-actions bot added the CORE label Mar 9, 2022
@viirya
Copy link
Member Author

viirya commented Mar 9, 2022

cc @sunchao @dongjoon-hyun

Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

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

+1, LGTM. Thanks, @viirya .

@viirya
Copy link
Member Author

viirya commented Mar 9, 2022

Thanks @martin-g @dongjoon-hyun

@viirya
Copy link
Member Author

viirya commented Mar 9, 2022

Merging to master.

@viirya viirya closed this in effef84 Mar 9, 2022
@viirya viirya deleted the SPARK-36681 branch March 9, 2022 17:08
LuciferYang pushed a commit to LuciferYang/spark that referenced this pull request Mar 10, 2022
### What changes were proposed in this pull request?

This patch enables `SnappyCodec` test in `FileSuite` as snappy-java relocation issue was fixed in Hadoop 3.3.2 that Spark is using now.

### Why are the changes needed?

Enabling test case.

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

No

### How was this patch tested?

Updated test.

Closes apache#35784 from viirya/SPARK-36681.

Authored-by: Liang-Chi Hsieh <[email protected]>
Signed-off-by: Liang-Chi Hsieh <[email protected]>
@HyukjinKwon
Copy link
Member

@viirya
Copy link
Member Author

viirya commented Mar 29, 2022

Hmm, SnappyCodec.checkNativeCodeLoaded was removed since 3.3.1. This looks like the runs were against older Hadoop dependencies?

HyukjinKwon added a commit that referenced this pull request Apr 11, 2022
…ibrary is available in low Hadoop versions

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

This PR is a minor followup to only test when Snappy native library is available in low Hadoop versions.
From Hadoop 3.3.1 with `HADOOP-17125`, the tests should pass but it fails in lower versions of Hadoop when Snappy native library is unavailable (see also #35784 (comment)).

### Why are the changes needed?

To make the tests robust.

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

Nope, this is test-only.

### How was this patch tested?

Should monitor CI

Closes #36136 from HyukjinKwon/SPARK-36681.

Authored-by: Hyukjin Kwon <[email protected]>
Signed-off-by: Hyukjin Kwon <[email protected]>
(cherry picked from commit bf19a5e)
Signed-off-by: Hyukjin Kwon <[email protected]>
HyukjinKwon added a commit that referenced this pull request Apr 11, 2022
…ibrary is available in low Hadoop versions

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

This PR is a minor followup to only test when Snappy native library is available in low Hadoop versions.
From Hadoop 3.3.1 with `HADOOP-17125`, the tests should pass but it fails in lower versions of Hadoop when Snappy native library is unavailable (see also #35784 (comment)).

### Why are the changes needed?

To make the tests robust.

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

Nope, this is test-only.

### How was this patch tested?

Should monitor CI

Closes #36136 from HyukjinKwon/SPARK-36681.

Authored-by: Hyukjin Kwon <[email protected]>
Signed-off-by: Hyukjin Kwon <[email protected]>
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