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-42934][BUILD] Add spark.hadoop.hadoop.security.key.provider.path to scalatest-maven-plugin #40566

Closed
wants to merge 4 commits into from

Conversation

LuciferYang
Copy link
Contributor

@LuciferYang LuciferYang commented Mar 27, 2023

What changes were proposed in this pull request?

When testing OrcEncryptionSuite using maven, all test suites are always skipped. So this pr add spark.hadoop.hadoop.security.key.provider.path to systemProperties of scalatest-maven-plugin to make OrcEncryptionSuite can test by maven.

Why are the changes needed?

Make OrcEncryptionSuite can test by maven.

Does this PR introduce any user-facing change?

No, just for maven test

How was this patch tested?

  • Pass GitHub Actions
  • Manual testing:

run

build/mvn clean install -pl sql/core -DskipTests -am
build/mvn test -pl sql/core -Dtest=none -DwildcardSuites=org.apache.spark.sql.execution.datasources.orc.OrcEncryptionSuite 

Before

Discovery starting.
Discovery completed in 3 seconds, 218 milliseconds.
Run starting. Expected test count is: 4
OrcEncryptionSuite:
21:57:58.344 WARN org.apache.hadoop.util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
- Write and read an encrypted file !!! CANCELED !!!
  [] was empty org.apache.orc.impl.NullKeyProvider@5af5d76f doesn't has the test keys. ORC shim is created with old Hadoop libraries (OrcEncryptionSuite.scala:37)
- Write and read an encrypted table !!! CANCELED !!!
  [] was empty org.apache.orc.impl.NullKeyProvider@5ad6cc21 doesn't has the test keys. ORC shim is created with old Hadoop libraries (OrcEncryptionSuite.scala:65)
- SPARK-35325: Write and read encrypted nested columns !!! CANCELED !!!
  [] was empty org.apache.orc.impl.NullKeyProvider@691124ee doesn't has the test keys. ORC shim is created with old Hadoop libraries (OrcEncryptionSuite.scala:116)
- SPARK-35992: Write and read fully-encrypted columns with default masking !!! CANCELED !!!
  [] was empty org.apache.orc.impl.NullKeyProvider@5403799b doesn't has the test keys. ORC shim is created with old Hadoop libraries (OrcEncryptionSuite.scala:166)
21:58:00.035 WARN org.apache.spark.sql.execution.datasources.orc.OrcEncryptionSuite: 

===== POSSIBLE THREAD LEAK IN SUITE o.a.s.sql.execution.datasources.orc.OrcEncryptionSuite, threads: rpc-boss-3-1 (daemon=true), shuffle-boss-6-1 (daemon=true) =====

Run completed in 5 seconds, 41 milliseconds.
Total number of tests run: 0
Suites: completed 2, aborted 0
Tests: succeeded 0, failed 0, canceled 4, ignored 0, pending 0
No tests were executed.

After

Discovery starting.
Discovery completed in 3 seconds, 185 milliseconds.
Run starting. Expected test count is: 4
OrcEncryptionSuite:
21:58:46.540 WARN org.apache.hadoop.util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
- Write and read an encrypted file
- Write and read an encrypted table
- SPARK-35325: Write and read encrypted nested columns
- SPARK-35992: Write and read fully-encrypted columns with default masking
21:58:51.933 WARN org.apache.spark.sql.execution.datasources.orc.OrcEncryptionSuite: 

===== POSSIBLE THREAD LEAK IN SUITE o.a.s.sql.execution.datasources.orc.OrcEncryptionSuite, threads: rpc-boss-3-1 (daemon=true), shuffle-boss-6-1 (daemon=true) =====

Run completed in 8 seconds, 708 milliseconds.
Total number of tests run: 4
Suites: completed 2, aborted 0
Tests: succeeded 4, failed 0, canceled 0, ignored 0, pending 0
All tests passed.

@LuciferYang
Copy link
Contributor Author

LuciferYang commented Mar 27, 2023

cc @dongjoon-hyun FYI

If you have time, please help verify this change. I am not sure if only my environment can reproduce this issue. Thanks ~

@LuciferYang LuciferYang changed the title [SPARK-42934][SQL][TESTS] Move spark.hadoop.hadoop.security.key.provider.path from systemPropertyVariables of maven-surefire-plugin to systemProperties of scalatest-maven-plugin [SPARK-42934][SQL][TESTS] Move spark.hadoop.hadoop.security.key.provider.path config from maven-surefire-plugin to scalatest-maven-plugin Mar 27, 2023
@LuciferYang LuciferYang changed the title [SPARK-42934][SQL][TESTS] Move spark.hadoop.hadoop.security.key.provider.path config from maven-surefire-plugin to scalatest-maven-plugin [SPARK-42934][SQL][TESTS] Move test property spark.hadoop.hadoop.security.key.provider.path from maven-surefire-plugin to scalatest-maven-plugin Mar 27, 2023
@github-actions github-actions bot added the BUILD label Mar 27, 2023
@LuciferYang LuciferYang changed the title [SPARK-42934][SQL][TESTS] Move test property spark.hadoop.hadoop.security.key.provider.path from maven-surefire-plugin to scalatest-maven-plugin [SPARK-42934][BUILD] Move test property spark.hadoop.hadoop.security.key.provider.path from maven-surefire-plugin to scalatest-maven-plugin Mar 27, 2023
@dongjoon-hyun
Copy link
Member

Thank you for pinging me, @LuciferYang .

pom.xml Outdated
@@ -2970,7 +2970,6 @@
<spark.ui.showConsoleProgress>false</spark.ui.showConsoleProgress>
<spark.unsafe.exceptionOnMemoryLeak>true</spark.unsafe.exceptionOnMemoryLeak>
<spark.memory.debugFill>true</spark.memory.debugFill>
<spark.hadoop.hadoop.security.key.provider.path>test:///</spark.hadoop.hadoop.security.key.provider.path>
Copy link
Member

Choose a reason for hiding this comment

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

To be safe, shall we keep this, @LuciferYang ? We have spark.ui.enabled in both places.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK ~

@LuciferYang LuciferYang changed the title [SPARK-42934][BUILD] Move test property spark.hadoop.hadoop.security.key.provider.path from maven-surefire-plugin to scalatest-maven-plugin [SPARK-42934][BUILD] Add test property spark.hadoop.hadoop.security.key.provider.path to scalatest-maven-plugin Mar 27, 2023
@dongjoon-hyun dongjoon-hyun changed the title [SPARK-42934][BUILD] Add test property spark.hadoop.hadoop.security.key.provider.path to scalatest-maven-plugin [SPARK-42934][BUILD] Add spark.hadoop.hadoop.security.key.provider.path to scalatest-maven-plugin Mar 27, 2023
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.

@dongjoon-hyun
Copy link
Member

I verified this manually via Maven. Merged to master/3.4/3.3/3.2.

dongjoon-hyun pushed a commit that referenced this pull request Mar 27, 2023
…ath` to `scalatest-maven-plugin`

### What changes were proposed in this pull request?
When testing `OrcEncryptionSuite` using maven, all test suites are always skipped. So this pr add `spark.hadoop.hadoop.security.key.provider.path`  to `systemProperties` of `scalatest-maven-plugin` to make `OrcEncryptionSuite` can test by maven.

### Why are the changes needed?
Make `OrcEncryptionSuite` can test by maven.

### Does this PR introduce _any_ user-facing change?
No, just for maven test

### How was this patch tested?

- Pass GitHub Actions
- Manual testing:

run

```
build/mvn clean install -pl sql/core -DskipTests -am
build/mvn test -pl sql/core -Dtest=none -DwildcardSuites=org.apache.spark.sql.execution.datasources.orc.OrcEncryptionSuite
```

**Before**

```
Discovery starting.
Discovery completed in 3 seconds, 218 milliseconds.
Run starting. Expected test count is: 4
OrcEncryptionSuite:
21:57:58.344 WARN org.apache.hadoop.util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
- Write and read an encrypted file !!! CANCELED !!!
  [] was empty org.apache.orc.impl.NullKeyProvider5af5d76f doesn't has the test keys. ORC shim is created with old Hadoop libraries (OrcEncryptionSuite.scala:37)
- Write and read an encrypted table !!! CANCELED !!!
  [] was empty org.apache.orc.impl.NullKeyProvider5ad6cc21 doesn't has the test keys. ORC shim is created with old Hadoop libraries (OrcEncryptionSuite.scala:65)
- SPARK-35325: Write and read encrypted nested columns !!! CANCELED !!!
  [] was empty org.apache.orc.impl.NullKeyProvider691124ee doesn't has the test keys. ORC shim is created with old Hadoop libraries (OrcEncryptionSuite.scala:116)
- SPARK-35992: Write and read fully-encrypted columns with default masking !!! CANCELED !!!
  [] was empty org.apache.orc.impl.NullKeyProvider5403799b doesn't has the test keys. ORC shim is created with old Hadoop libraries (OrcEncryptionSuite.scala:166)
21:58:00.035 WARN org.apache.spark.sql.execution.datasources.orc.OrcEncryptionSuite:

===== POSSIBLE THREAD LEAK IN SUITE o.a.s.sql.execution.datasources.orc.OrcEncryptionSuite, threads: rpc-boss-3-1 (daemon=true), shuffle-boss-6-1 (daemon=true) =====

Run completed in 5 seconds, 41 milliseconds.
Total number of tests run: 0
Suites: completed 2, aborted 0
Tests: succeeded 0, failed 0, canceled 4, ignored 0, pending 0
No tests were executed.
```

**After**

```
Discovery starting.
Discovery completed in 3 seconds, 185 milliseconds.
Run starting. Expected test count is: 4
OrcEncryptionSuite:
21:58:46.540 WARN org.apache.hadoop.util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
- Write and read an encrypted file
- Write and read an encrypted table
- SPARK-35325: Write and read encrypted nested columns
- SPARK-35992: Write and read fully-encrypted columns with default masking
21:58:51.933 WARN org.apache.spark.sql.execution.datasources.orc.OrcEncryptionSuite:

===== POSSIBLE THREAD LEAK IN SUITE o.a.s.sql.execution.datasources.orc.OrcEncryptionSuite, threads: rpc-boss-3-1 (daemon=true), shuffle-boss-6-1 (daemon=true) =====

Run completed in 8 seconds, 708 milliseconds.
Total number of tests run: 4
Suites: completed 2, aborted 0
Tests: succeeded 4, failed 0, canceled 0, ignored 0, pending 0
All tests passed.
```

Closes #40566 from LuciferYang/SPARK-42934-2.

Authored-by: yangjie01 <yangjie01@baidu.com>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
(cherry picked from commit a3d9e0a)
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
dongjoon-hyun pushed a commit that referenced this pull request Mar 27, 2023
…ath` to `scalatest-maven-plugin`

### What changes were proposed in this pull request?
When testing `OrcEncryptionSuite` using maven, all test suites are always skipped. So this pr add `spark.hadoop.hadoop.security.key.provider.path`  to `systemProperties` of `scalatest-maven-plugin` to make `OrcEncryptionSuite` can test by maven.

### Why are the changes needed?
Make `OrcEncryptionSuite` can test by maven.

### Does this PR introduce _any_ user-facing change?
No, just for maven test

### How was this patch tested?

- Pass GitHub Actions
- Manual testing:

run

```
build/mvn clean install -pl sql/core -DskipTests -am
build/mvn test -pl sql/core -Dtest=none -DwildcardSuites=org.apache.spark.sql.execution.datasources.orc.OrcEncryptionSuite
```

**Before**

```
Discovery starting.
Discovery completed in 3 seconds, 218 milliseconds.
Run starting. Expected test count is: 4
OrcEncryptionSuite:
21:57:58.344 WARN org.apache.hadoop.util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
- Write and read an encrypted file !!! CANCELED !!!
  [] was empty org.apache.orc.impl.NullKeyProvider5af5d76f doesn't has the test keys. ORC shim is created with old Hadoop libraries (OrcEncryptionSuite.scala:37)
- Write and read an encrypted table !!! CANCELED !!!
  [] was empty org.apache.orc.impl.NullKeyProvider5ad6cc21 doesn't has the test keys. ORC shim is created with old Hadoop libraries (OrcEncryptionSuite.scala:65)
- SPARK-35325: Write and read encrypted nested columns !!! CANCELED !!!
  [] was empty org.apache.orc.impl.NullKeyProvider691124ee doesn't has the test keys. ORC shim is created with old Hadoop libraries (OrcEncryptionSuite.scala:116)
- SPARK-35992: Write and read fully-encrypted columns with default masking !!! CANCELED !!!
  [] was empty org.apache.orc.impl.NullKeyProvider5403799b doesn't has the test keys. ORC shim is created with old Hadoop libraries (OrcEncryptionSuite.scala:166)
21:58:00.035 WARN org.apache.spark.sql.execution.datasources.orc.OrcEncryptionSuite:

===== POSSIBLE THREAD LEAK IN SUITE o.a.s.sql.execution.datasources.orc.OrcEncryptionSuite, threads: rpc-boss-3-1 (daemon=true), shuffle-boss-6-1 (daemon=true) =====

Run completed in 5 seconds, 41 milliseconds.
Total number of tests run: 0
Suites: completed 2, aborted 0
Tests: succeeded 0, failed 0, canceled 4, ignored 0, pending 0
No tests were executed.
```

**After**

```
Discovery starting.
Discovery completed in 3 seconds, 185 milliseconds.
Run starting. Expected test count is: 4
OrcEncryptionSuite:
21:58:46.540 WARN org.apache.hadoop.util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
- Write and read an encrypted file
- Write and read an encrypted table
- SPARK-35325: Write and read encrypted nested columns
- SPARK-35992: Write and read fully-encrypted columns with default masking
21:58:51.933 WARN org.apache.spark.sql.execution.datasources.orc.OrcEncryptionSuite:

===== POSSIBLE THREAD LEAK IN SUITE o.a.s.sql.execution.datasources.orc.OrcEncryptionSuite, threads: rpc-boss-3-1 (daemon=true), shuffle-boss-6-1 (daemon=true) =====

Run completed in 8 seconds, 708 milliseconds.
Total number of tests run: 4
Suites: completed 2, aborted 0
Tests: succeeded 4, failed 0, canceled 0, ignored 0, pending 0
All tests passed.
```

Closes #40566 from LuciferYang/SPARK-42934-2.

Authored-by: yangjie01 <yangjie01@baidu.com>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
(cherry picked from commit a3d9e0a)
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
dongjoon-hyun pushed a commit that referenced this pull request Mar 27, 2023
…ath` to `scalatest-maven-plugin`

### What changes were proposed in this pull request?
When testing `OrcEncryptionSuite` using maven, all test suites are always skipped. So this pr add `spark.hadoop.hadoop.security.key.provider.path`  to `systemProperties` of `scalatest-maven-plugin` to make `OrcEncryptionSuite` can test by maven.

### Why are the changes needed?
Make `OrcEncryptionSuite` can test by maven.

### Does this PR introduce _any_ user-facing change?
No, just for maven test

### How was this patch tested?

- Pass GitHub Actions
- Manual testing:

run

```
build/mvn clean install -pl sql/core -DskipTests -am
build/mvn test -pl sql/core -Dtest=none -DwildcardSuites=org.apache.spark.sql.execution.datasources.orc.OrcEncryptionSuite
```

**Before**

```
Discovery starting.
Discovery completed in 3 seconds, 218 milliseconds.
Run starting. Expected test count is: 4
OrcEncryptionSuite:
21:57:58.344 WARN org.apache.hadoop.util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
- Write and read an encrypted file !!! CANCELED !!!
  [] was empty org.apache.orc.impl.NullKeyProvider5af5d76f doesn't has the test keys. ORC shim is created with old Hadoop libraries (OrcEncryptionSuite.scala:37)
- Write and read an encrypted table !!! CANCELED !!!
  [] was empty org.apache.orc.impl.NullKeyProvider5ad6cc21 doesn't has the test keys. ORC shim is created with old Hadoop libraries (OrcEncryptionSuite.scala:65)
- SPARK-35325: Write and read encrypted nested columns !!! CANCELED !!!
  [] was empty org.apache.orc.impl.NullKeyProvider691124ee doesn't has the test keys. ORC shim is created with old Hadoop libraries (OrcEncryptionSuite.scala:116)
- SPARK-35992: Write and read fully-encrypted columns with default masking !!! CANCELED !!!
  [] was empty org.apache.orc.impl.NullKeyProvider5403799b doesn't has the test keys. ORC shim is created with old Hadoop libraries (OrcEncryptionSuite.scala:166)
21:58:00.035 WARN org.apache.spark.sql.execution.datasources.orc.OrcEncryptionSuite:

===== POSSIBLE THREAD LEAK IN SUITE o.a.s.sql.execution.datasources.orc.OrcEncryptionSuite, threads: rpc-boss-3-1 (daemon=true), shuffle-boss-6-1 (daemon=true) =====

Run completed in 5 seconds, 41 milliseconds.
Total number of tests run: 0
Suites: completed 2, aborted 0
Tests: succeeded 0, failed 0, canceled 4, ignored 0, pending 0
No tests were executed.
```

**After**

```
Discovery starting.
Discovery completed in 3 seconds, 185 milliseconds.
Run starting. Expected test count is: 4
OrcEncryptionSuite:
21:58:46.540 WARN org.apache.hadoop.util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
- Write and read an encrypted file
- Write and read an encrypted table
- SPARK-35325: Write and read encrypted nested columns
- SPARK-35992: Write and read fully-encrypted columns with default masking
21:58:51.933 WARN org.apache.spark.sql.execution.datasources.orc.OrcEncryptionSuite:

===== POSSIBLE THREAD LEAK IN SUITE o.a.s.sql.execution.datasources.orc.OrcEncryptionSuite, threads: rpc-boss-3-1 (daemon=true), shuffle-boss-6-1 (daemon=true) =====

Run completed in 8 seconds, 708 milliseconds.
Total number of tests run: 4
Suites: completed 2, aborted 0
Tests: succeeded 4, failed 0, canceled 0, ignored 0, pending 0
All tests passed.
```

Closes #40566 from LuciferYang/SPARK-42934-2.

Authored-by: yangjie01 <yangjie01@baidu.com>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
(cherry picked from commit a3d9e0a)
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
@LuciferYang
Copy link
Contributor Author

Thanks very much @dongjoon-hyun 😄

sunchao pushed a commit to sunchao/spark that referenced this pull request Jun 2, 2023
…ath` to `scalatest-maven-plugin`

### What changes were proposed in this pull request?
When testing `OrcEncryptionSuite` using maven, all test suites are always skipped. So this pr add `spark.hadoop.hadoop.security.key.provider.path`  to `systemProperties` of `scalatest-maven-plugin` to make `OrcEncryptionSuite` can test by maven.

### Why are the changes needed?
Make `OrcEncryptionSuite` can test by maven.

### Does this PR introduce _any_ user-facing change?
No, just for maven test

### How was this patch tested?

- Pass GitHub Actions
- Manual testing:

run

```
build/mvn clean install -pl sql/core -DskipTests -am
build/mvn test -pl sql/core -Dtest=none -DwildcardSuites=org.apache.spark.sql.execution.datasources.orc.OrcEncryptionSuite
```

**Before**

```
Discovery starting.
Discovery completed in 3 seconds, 218 milliseconds.
Run starting. Expected test count is: 4
OrcEncryptionSuite:
21:57:58.344 WARN org.apache.hadoop.util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
- Write and read an encrypted file !!! CANCELED !!!
  [] was empty org.apache.orc.impl.NullKeyProvider5af5d76f doesn't has the test keys. ORC shim is created with old Hadoop libraries (OrcEncryptionSuite.scala:37)
- Write and read an encrypted table !!! CANCELED !!!
  [] was empty org.apache.orc.impl.NullKeyProvider5ad6cc21 doesn't has the test keys. ORC shim is created with old Hadoop libraries (OrcEncryptionSuite.scala:65)
- SPARK-35325: Write and read encrypted nested columns !!! CANCELED !!!
  [] was empty org.apache.orc.impl.NullKeyProvider691124ee doesn't has the test keys. ORC shim is created with old Hadoop libraries (OrcEncryptionSuite.scala:116)
- SPARK-35992: Write and read fully-encrypted columns with default masking !!! CANCELED !!!
  [] was empty org.apache.orc.impl.NullKeyProvider5403799b doesn't has the test keys. ORC shim is created with old Hadoop libraries (OrcEncryptionSuite.scala:166)
21:58:00.035 WARN org.apache.spark.sql.execution.datasources.orc.OrcEncryptionSuite:

===== POSSIBLE THREAD LEAK IN SUITE o.a.s.sql.execution.datasources.orc.OrcEncryptionSuite, threads: rpc-boss-3-1 (daemon=true), shuffle-boss-6-1 (daemon=true) =====

Run completed in 5 seconds, 41 milliseconds.
Total number of tests run: 0
Suites: completed 2, aborted 0
Tests: succeeded 0, failed 0, canceled 4, ignored 0, pending 0
No tests were executed.
```

**After**

```
Discovery starting.
Discovery completed in 3 seconds, 185 milliseconds.
Run starting. Expected test count is: 4
OrcEncryptionSuite:
21:58:46.540 WARN org.apache.hadoop.util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
- Write and read an encrypted file
- Write and read an encrypted table
- SPARK-35325: Write and read encrypted nested columns
- SPARK-35992: Write and read fully-encrypted columns with default masking
21:58:51.933 WARN org.apache.spark.sql.execution.datasources.orc.OrcEncryptionSuite:

===== POSSIBLE THREAD LEAK IN SUITE o.a.s.sql.execution.datasources.orc.OrcEncryptionSuite, threads: rpc-boss-3-1 (daemon=true), shuffle-boss-6-1 (daemon=true) =====

Run completed in 8 seconds, 708 milliseconds.
Total number of tests run: 4
Suites: completed 2, aborted 0
Tests: succeeded 4, failed 0, canceled 0, ignored 0, pending 0
All tests passed.
```

Closes apache#40566 from LuciferYang/SPARK-42934-2.

Authored-by: yangjie01 <yangjie01@baidu.com>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
(cherry picked from commit a3d9e0a)
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
snmvaughan pushed a commit to snmvaughan/spark that referenced this pull request Jun 20, 2023
…ath` to `scalatest-maven-plugin`

### What changes were proposed in this pull request?
When testing `OrcEncryptionSuite` using maven, all test suites are always skipped. So this pr add `spark.hadoop.hadoop.security.key.provider.path`  to `systemProperties` of `scalatest-maven-plugin` to make `OrcEncryptionSuite` can test by maven.

### Why are the changes needed?
Make `OrcEncryptionSuite` can test by maven.

### Does this PR introduce _any_ user-facing change?
No, just for maven test

### How was this patch tested?

- Pass GitHub Actions
- Manual testing:

run

```
build/mvn clean install -pl sql/core -DskipTests -am
build/mvn test -pl sql/core -Dtest=none -DwildcardSuites=org.apache.spark.sql.execution.datasources.orc.OrcEncryptionSuite
```

**Before**

```
Discovery starting.
Discovery completed in 3 seconds, 218 milliseconds.
Run starting. Expected test count is: 4
OrcEncryptionSuite:
21:57:58.344 WARN org.apache.hadoop.util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
- Write and read an encrypted file !!! CANCELED !!!
  [] was empty org.apache.orc.impl.NullKeyProvider5af5d76f doesn't has the test keys. ORC shim is created with old Hadoop libraries (OrcEncryptionSuite.scala:37)
- Write and read an encrypted table !!! CANCELED !!!
  [] was empty org.apache.orc.impl.NullKeyProvider5ad6cc21 doesn't has the test keys. ORC shim is created with old Hadoop libraries (OrcEncryptionSuite.scala:65)
- SPARK-35325: Write and read encrypted nested columns !!! CANCELED !!!
  [] was empty org.apache.orc.impl.NullKeyProvider691124ee doesn't has the test keys. ORC shim is created with old Hadoop libraries (OrcEncryptionSuite.scala:116)
- SPARK-35992: Write and read fully-encrypted columns with default masking !!! CANCELED !!!
  [] was empty org.apache.orc.impl.NullKeyProvider5403799b doesn't has the test keys. ORC shim is created with old Hadoop libraries (OrcEncryptionSuite.scala:166)
21:58:00.035 WARN org.apache.spark.sql.execution.datasources.orc.OrcEncryptionSuite:

===== POSSIBLE THREAD LEAK IN SUITE o.a.s.sql.execution.datasources.orc.OrcEncryptionSuite, threads: rpc-boss-3-1 (daemon=true), shuffle-boss-6-1 (daemon=true) =====

Run completed in 5 seconds, 41 milliseconds.
Total number of tests run: 0
Suites: completed 2, aborted 0
Tests: succeeded 0, failed 0, canceled 4, ignored 0, pending 0
No tests were executed.
```

**After**

```
Discovery starting.
Discovery completed in 3 seconds, 185 milliseconds.
Run starting. Expected test count is: 4
OrcEncryptionSuite:
21:58:46.540 WARN org.apache.hadoop.util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
- Write and read an encrypted file
- Write and read an encrypted table
- SPARK-35325: Write and read encrypted nested columns
- SPARK-35992: Write and read fully-encrypted columns with default masking
21:58:51.933 WARN org.apache.spark.sql.execution.datasources.orc.OrcEncryptionSuite:

===== POSSIBLE THREAD LEAK IN SUITE o.a.s.sql.execution.datasources.orc.OrcEncryptionSuite, threads: rpc-boss-3-1 (daemon=true), shuffle-boss-6-1 (daemon=true) =====

Run completed in 8 seconds, 708 milliseconds.
Total number of tests run: 4
Suites: completed 2, aborted 0
Tests: succeeded 4, failed 0, canceled 0, ignored 0, pending 0
All tests passed.
```

Closes apache#40566 from LuciferYang/SPARK-42934-2.

Authored-by: yangjie01 <yangjie01@baidu.com>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
(cherry picked from commit a3d9e0a)
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.

2 participants