[Backport][v1.78.x][Python] Align GRPC_ENABLE_FORK_SUPPORT env defaults in core and python#41588
Merged
sergiitk merged 1 commit intogrpc:v1.78.xfrom Feb 10, 2026
Conversation
…on (grpc#41455) In the core, the default value of the `GRPC_ENABLE_FORK_SUPPORT` environment variable is determined by the value of the `GRPC_ENABLE_FORK_SUPPORT_DEFAULT` macro, which is by default derived from the value of the `GRPC_ENABLE_FORK_SUPPORT` macro. Python sets `GRPC_ENABLE_FORK_SUPPORT`, so the feature is enabled there by default. However, Python also reads the value of the `GRPC_ENABLE_FORK_SUPPORT` environment variable and sets its own default in `fork_posix.pyx.pxi`, and the feature is disabled there by default. The result is a mixed state that causes problems. This change fixes that by disabling the feature by default in both places. In the long run we want to enable it by default everywhere, but for now we don't have confidence in its stability. Closes grpc#41455 COPYBARA_INTEGRATE_REVIEW=grpc#41455 from sergiitk:fix/py/fork-defaults 73be72d PiperOrigin-RevId: 859928704
|
The investigation was done via claude code. But the outage on our end was 1.78.0 -> 1.78.1 where we had a :latest tag on build pack which led us here. This minor vision upgrade caused our google cloud run to hang. Not an expert here but if you guys have recommendation into what should be done OR if you guys should go a different route with how to fix the grpc packages |
sergiitk
added a commit
to sergiitk/grpc
that referenced
this pull request
Feb 24, 2026
…v defaults in core and python (grpc#41588)" This reverts commit de33c9c.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of #41455 to v1.78.x.
In the core, the default value of the
GRPC_ENABLE_FORK_SUPPORTenvironment variable is determined by the value of theGRPC_ENABLE_FORK_SUPPORT_DEFAULTmacro, which is by default derived from the value of theGRPC_ENABLE_FORK_SUPPORTmacro. Python setsGRPC_ENABLE_FORK_SUPPORT, so the feature is enabled there by default. However, Python also reads the value of theGRPC_ENABLE_FORK_SUPPORTenvironment variable and sets its own default infork_posix.pyx.pxi, and the feature is disabled there by default. The result is a mixed state that causes problems.This change fixes that by disabling the feature by default in both places. In the long run we want to enable it by default everywhere, but for now we don't have confidence in its stability.