Skip to content

Conversation

@dongjoon-hyun
Copy link
Member

@dongjoon-hyun dongjoon-hyun commented Sep 16, 2019

What changes were proposed in this pull request?

This is a follow-up of #25638 to switch scala-library from test dependency to compile dependency in network-common module.

Why are the changes needed?

Previously, we added scala-library as a test dependency to resolve the followings, but it was insufficient to resolve. This PR aims to switch it to compile dependency.

$ java -version
openjdk version "11.0.3" 2019-04-16
OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.3+7)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.3+7, mixed mode)

$ mvn clean install -pl common/network-common -DskipTests
...
[INFO] --- scala-maven-plugin:4.2.0:doc-jar (attach-scaladocs) @ spark-network-common_2.12 ---
error: fatal error: object scala in compiler mirror not found.
one error found
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Manually, run the following on JDK11.

$ mvn clean install -pl common/network-common -DskipTests

@dongjoon-hyun
Copy link
Member Author

cc @viirya and @srowen . Could you review this once more?
Sorry about making this follow-up.

@viirya
Copy link
Member

viirya commented Sep 16, 2019

Verified.

mvn clean install -pl common/network-common -DskipTests
...
[INFO] --- scala-maven-plugin:4.2.0:doc-jar (attach-scaladocs) @ spark-network-common_2.12 ---
error: fatal error: object scala in compiler mirror not found.
one error found
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE

After this patch:

mvn clean install -pl common/network-common -DskipTests
...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------

@dongjoon-hyun
Copy link
Member Author

Thank you again, @viirya !

@dongjoon-hyun
Copy link
Member Author

This doesn't need to run Jenkins because the new dependency is stronger than the previous one. In addition, this doesn't change dependency manifest and is verified manually me and @viirya . I'll merged this.

@dongjoon-hyun dongjoon-hyun deleted the SPARK-28932-2 branch September 16, 2019 07:13
rshkv pushed a commit to palantir/spark that referenced this pull request Feb 18, 2021
…ency for JDK11

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

This is a follow-up of apache#25638 to switch `scala-library` from `test` dependency to `compile` dependency in `network-common` module.

### Why are the changes needed?

Previously, we added `scala-library` as a test dependency to resolve the followings, but it was insufficient to resolve. This PR aims to switch it to compile dependency.
```
$ java -version
openjdk version "11.0.3" 2019-04-16
OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.3+7)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.3+7, mixed mode)

$ mvn clean install -pl common/network-common -DskipTests
...
[INFO] --- scala-maven-plugin:4.2.0:doc-jar (attach-scaladocs)  spark-network-common_2.12 ---
error: fatal error: object scala in compiler mirror not found.
one error found
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
```

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

No.

### How was this patch tested?

Manually, run the following on JDK11.
```
$ mvn clean install -pl common/network-common -DskipTests
```

Closes apache#25800 from dongjoon-hyun/SPARK-28932-2.

Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
rshkv pushed a commit to palantir/spark that referenced this pull request Feb 19, 2021
…ency for JDK11

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

This is a follow-up of apache#25638 to switch `scala-library` from `test` dependency to `compile` dependency in `network-common` module.

### Why are the changes needed?

Previously, we added `scala-library` as a test dependency to resolve the followings, but it was insufficient to resolve. This PR aims to switch it to compile dependency.
```
$ java -version
openjdk version "11.0.3" 2019-04-16
OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.3+7)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.3+7, mixed mode)

$ mvn clean install -pl common/network-common -DskipTests
...
[INFO] --- scala-maven-plugin:4.2.0:doc-jar (attach-scaladocs)  spark-network-common_2.12 ---
error: fatal error: object scala in compiler mirror not found.
one error found
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
```

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

No.

### How was this patch tested?

Manually, run the following on JDK11.
```
$ mvn clean install -pl common/network-common -DskipTests
```

Closes apache#25800 from dongjoon-hyun/SPARK-28932-2.

Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
dongjoon-hyun pushed a commit that referenced this pull request Sep 25, 2023
…K 11 workaround

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

This PR removes the legacy workaround for JDK 11 added at SPARK-28932

### Why are the changes needed?

To remove legacy workaround. With JDK 17, now it seems working.

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

No.

### How was this patch tested?

As described in #25800

```bash
./build/mvn clean install -pl common/network-common -DskipTests
```

```
...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  48.139 s
[INFO] Finished at: 2023-09-25T12:27:43+09:00
[INFO] ------------------------------------------------------------------------
```

### Was this patch authored or co-authored using generative AI tooling?

No.

Closes #43086 from HyukjinKwon/SPARK-45301.

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

2 participants