Skip to content

[SPARK-46919][BUILD][CONNECT] Upgrade grpcio* and grpc-java to 1.62.x#44929

Closed
LuciferYang wants to merge 18 commits intoapache:masterfrom
LuciferYang:grpc-16
Closed

[SPARK-46919][BUILD][CONNECT] Upgrade grpcio* and grpc-java to 1.62.x#44929
LuciferYang wants to merge 18 commits intoapache:masterfrom
LuciferYang:grpc-16

Conversation

@LuciferYang
Copy link
Contributor

@LuciferYang LuciferYang commented Jan 29, 2024

What changes were proposed in this pull request?

This PR aims to upgrade grpcio* from 1.59.3 to 1.62.0and grpc-java from 1.59.0 to 1.62.2 for Apache Spark 4.0.0.

Why are the changes needed?

grpc 1.60.0 start to support dualstack IPv4 and IPv6 backend support:

  • Implemented dualstack IPv4 and IPv6 backend support, as per draft gRFC A61. xDS support currently guarded by GRPC_EXPERIMENTAL_XDS_DUALSTACK_ENDPOINTS env var.

Note that in grpc-java 1.61.0, since the dependency scope of grpc-protobuf on grpc-protobuf-lite has been changed from compile to runtime, we need to manually configure the dependency of the connect module on grpc-protobuf-lite and explicitly exclude the dependency on protobuf-javalite because SparkConnectService uses io.grpc.protobuf.lite.ProtoLiteUtils

The relevant release notes are as follows:

Does this PR introduce any user-facing change?

No

How was this patch tested?

Pass GitHub Actions

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

No

<artifactId>grpc-protobuf</artifactId>
<version>${io.grpc.version}</version>
</dependency>
<dependency>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

"io.grpc.protobuf.lite.ProtoLiteUtils has been moved to the grpc-protobuf-lite module, but protobuf-javalite and protobuf-java cannot be used simultaneously because there would be a conflict with com.google.protobuf.Any."

@LuciferYang LuciferYang changed the title [WIP][BUILD] Test grpcio* 1.60.0 [SPARK-46919][BUILD][CONNECT] Upgrade grpcio* to 1.60.0 and grpc-java to 1.61.0 Jan 30, 2024
@LuciferYang LuciferYang marked this pull request as ready for review January 30, 2024 12:14
ipython ipython_genutils sphinx_plotly_directive 'numpy>=1.20.0' pyarrow pandas 'plotly>=4.8' 'docutils<0.18.0' \
'flake8==3.9.0' 'mypy==0.982' 'pytest==7.1.3' 'pytest-mypy-plugins==1.9.3' 'black==23.9.1' \
'pandas-stubs==1.2.0.53' 'grpcio==1.59.3' 'grpc-stubs==1.24.11' 'googleapis-common-protos-stubs==2.2.0' \
'pandas-stubs==1.2.0.53' 'grpcio==1.60.0' 'grpc-stubs==1.24.11' 'googleapis-common-protos-stubs==2.2.0' \
Copy link
Member

Choose a reason for hiding this comment

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

Ah, there is no 1.61.0 on the python side yet?
I think this is OK, but should we stick to 1.61.0 on the JVM side for now then too?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It seems that they are compatible, and grpc-java 1.61.0 brings an additional optimization related to memory use:

so this PR has upgraded grpc-java to version 1.61.0.

@LuciferYang
Copy link
Contributor Author

LuciferYang commented Feb 4, 2024

1.61.0 released, mark this one to draft first

@LuciferYang LuciferYang marked this pull request as draft February 4, 2024 05:38
@LuciferYang LuciferYang changed the title [SPARK-46919][BUILD][CONNECT] Upgrade grpcio* to 1.60.0 and grpc-java to 1.61.0 [SPARK-46919][BUILD][CONNECT] Upgrade grpcio* and grpc-java to 1.62.0 Feb 23, 2024
@LuciferYang LuciferYang changed the title [SPARK-46919][BUILD][CONNECT] Upgrade grpcio* and grpc-java to 1.62.0 [SPARK-46919][BUILD][CONNECT] Upgrade grpcio* and grpc-java to 1.62 Feb 27, 2024
@LuciferYang LuciferYang changed the title [SPARK-46919][BUILD][CONNECT] Upgrade grpcio* and grpc-java to 1.62 [SPARK-46919][BUILD][CONNECT] Upgrade grpcio* and grpc-java to 1.62.x Feb 28, 2024
@LuciferYang LuciferYang changed the title [SPARK-46919][BUILD][CONNECT] Upgrade grpcio* and grpc-java to 1.62.x [SPARK-46919][BUILD][INFRA][CONNECT] Upgrade grpcio* and grpc-java to 1.62.x Feb 28, 2024
@LuciferYang LuciferYang marked this pull request as ready for review February 28, 2024 13:31
@LuciferYang
Copy link
Contributor Author

The version has been unified to the 1.62 series now

@LuciferYang LuciferYang changed the title [SPARK-46919][BUILD][INFRA][CONNECT] Upgrade grpcio* and grpc-java to 1.62.x [SPARK-46919][BUILD][CONNECT] Upgrade grpcio* and grpc-java to 1.62.x Feb 28, 2024
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. Thank you, @LuciferYang .
Merged to master for Apache Spark 4.0.0.

@LuciferYang
Copy link
Contributor Author

LuciferYang commented Mar 13, 2024

Thanks @dongjoon-hyun and @srowen

@LuciferYang LuciferYang deleted the grpc-16 branch March 19, 2024 07:35
dongjoon-hyun added a commit that referenced this pull request Feb 16, 2025
…sion` to 1.67.0

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

This PR aims to fix PySpark Connect `_minimum_grpc_version` from 1.59.3 to 1.67.0 correctly.

https://github.com/apache/spark/blob/c36916f7a112dc6c6505c12d68c3f63c5aa31db2/python/docs/source/getting_started/install.rst?plain=1#L211

https://github.com/apache/spark/blob/c36916f7a112dc6c6505c12d68c3f63c5aa31db2/dev/spark-test-image/python-minimum/Dockerfile#L76

### Why are the changes needed?

It seems that we missed to this at
- #44929
- #48524

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

This will make it sure that PySpark Connect installation meets the minimum requirement correctly.

### How was this patch tested?

Pass the CIs.

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

No.

Closes #49968 from dongjoon-hyun/SPARK-51227.

Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
dongjoon-hyun added a commit that referenced this pull request Feb 16, 2025
…sion` to 1.67.0

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

This PR aims to fix PySpark Connect `_minimum_grpc_version` from 1.59.3 to 1.67.0 correctly.

https://github.com/apache/spark/blob/c36916f7a112dc6c6505c12d68c3f63c5aa31db2/python/docs/source/getting_started/install.rst?plain=1#L211

https://github.com/apache/spark/blob/c36916f7a112dc6c6505c12d68c3f63c5aa31db2/dev/spark-test-image/python-minimum/Dockerfile#L76

### Why are the changes needed?

It seems that we missed to this at
- #44929
- #48524

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

This will make it sure that PySpark Connect installation meets the minimum requirement correctly.

### How was this patch tested?

Pass the CIs.

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

No.

Closes #49968 from dongjoon-hyun/SPARK-51227.

Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
(cherry picked from commit 3f4ba72)
Signed-off-by: Dongjoon Hyun <[email protected]>
zifeif2 pushed a commit to zifeif2/spark that referenced this pull request Nov 14, 2025
…sion` to 1.67.0

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

This PR aims to fix PySpark Connect `_minimum_grpc_version` from 1.59.3 to 1.67.0 correctly.

https://github.com/apache/spark/blob/acc254463533b863b8afe8dccad6565bbff9e35c/python/docs/source/getting_started/install.rst?plain=1#L211

https://github.com/apache/spark/blob/acc254463533b863b8afe8dccad6565bbff9e35c/dev/spark-test-image/python-minimum/Dockerfile#L76

### Why are the changes needed?

It seems that we missed to this at
- apache#44929
- apache#48524

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

This will make it sure that PySpark Connect installation meets the minimum requirement correctly.

### How was this patch tested?

Pass the CIs.

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

No.

Closes apache#49968 from dongjoon-hyun/SPARK-51227.

Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
(cherry picked from commit 52fc668)
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants