diff options
author | Yijie Ma <yijiem@google.com> | 2024-04-09 21:51:00 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-09 21:51:00 -0700 |
commit | c73c24a8ef4c1a18de138ee349cadc1b4c88b69e (patch) | |
tree | e89b31e229cbb4c741a8f72eb9c7e772c8705118 | |
parent | 0a7a85a323d037d848c65286965c12808c241326 (diff) | |
download | grpc-grpc-c73c24a8ef4c1a18de138ee349cadc1b4c88b69e.tar.gz |
[experiments] Set `call_status_override_on_cancellation` default to `false` from `debug` (#36325)
-rw-r--r-- | src/core/lib/experiments/experiments.cc | 21 | ||||
-rw-r--r-- | src/core/lib/experiments/experiments.h | 33 | ||||
-rw-r--r-- | src/core/lib/experiments/rollouts.yaml | 2 |
3 files changed, 7 insertions, 49 deletions
diff --git a/src/core/lib/experiments/experiments.cc b/src/core/lib/experiments/experiments.cc index e668ab3ee7..aec3bc3c9b 100644 --- a/src/core/lib/experiments/experiments.cc +++ b/src/core/lib/experiments/experiments.cc @@ -139,11 +139,6 @@ const char* const description_work_serializer_dispatch = const char* const additional_constraints_work_serializer_dispatch = "{}"; const uint8_t required_experiments_work_serializer_dispatch[] = { static_cast<uint8_t>(grpc_core::kExperimentIdEventEngineClient)}; -#ifdef NDEBUG -const bool kDefaultForDebugOnly = false; -#else -const bool kDefaultForDebugOnly = true; -#endif } // namespace namespace grpc_core { @@ -152,7 +147,7 @@ const ExperimentMetadata g_experiment_metadata[] = { {"call_status_override_on_cancellation", description_call_status_override_on_cancellation, additional_constraints_call_status_override_on_cancellation, nullptr, 0, - kDefaultForDebugOnly, true}, + false, true}, {"call_v3", description_call_v3, additional_constraints_call_v3, nullptr, 0, false, true}, {"canary_client_privacy", description_canary_client_privacy, @@ -339,11 +334,6 @@ const char* const description_work_serializer_dispatch = const char* const additional_constraints_work_serializer_dispatch = "{}"; const uint8_t required_experiments_work_serializer_dispatch[] = { static_cast<uint8_t>(grpc_core::kExperimentIdEventEngineClient)}; -#ifdef NDEBUG -const bool kDefaultForDebugOnly = false; -#else -const bool kDefaultForDebugOnly = true; -#endif } // namespace namespace grpc_core { @@ -352,7 +342,7 @@ const ExperimentMetadata g_experiment_metadata[] = { {"call_status_override_on_cancellation", description_call_status_override_on_cancellation, additional_constraints_call_status_override_on_cancellation, nullptr, 0, - kDefaultForDebugOnly, true}, + false, true}, {"call_v3", description_call_v3, additional_constraints_call_v3, nullptr, 0, false, true}, {"canary_client_privacy", description_canary_client_privacy, @@ -539,11 +529,6 @@ const char* const description_work_serializer_dispatch = const char* const additional_constraints_work_serializer_dispatch = "{}"; const uint8_t required_experiments_work_serializer_dispatch[] = { static_cast<uint8_t>(grpc_core::kExperimentIdEventEngineClient)}; -#ifdef NDEBUG -const bool kDefaultForDebugOnly = false; -#else -const bool kDefaultForDebugOnly = true; -#endif } // namespace namespace grpc_core { @@ -552,7 +537,7 @@ const ExperimentMetadata g_experiment_metadata[] = { {"call_status_override_on_cancellation", description_call_status_override_on_cancellation, additional_constraints_call_status_override_on_cancellation, nullptr, 0, - kDefaultForDebugOnly, true}, + false, true}, {"call_v3", description_call_v3, additional_constraints_call_v3, nullptr, 0, false, true}, {"canary_client_privacy", description_canary_client_privacy, diff --git a/src/core/lib/experiments/experiments.h b/src/core/lib/experiments/experiments.h index b82a77b463..9a04a4a906 100644 --- a/src/core/lib/experiments/experiments.h +++ b/src/core/lib/experiments/experiments.h @@ -57,16 +57,7 @@ namespace grpc_core { #ifdef GRPC_EXPERIMENTS_ARE_FINAL #if defined(GRPC_CFSTREAM) -#ifndef NDEBUG -#define GRPC_EXPERIMENT_IS_INCLUDED_CALL_STATUS_OVERRIDE_ON_CANCELLATION -#endif -inline bool IsCallStatusOverrideOnCancellationEnabled() { -#ifdef NDEBUG - return false; -#else - return true; -#endif -} +inline bool IsCallStatusOverrideOnCancellationEnabled() { return false; } inline bool IsCallV3Enabled() { return false; } inline bool IsCanaryClientPrivacyEnabled() { return false; } inline bool IsClientPrivacyEnabled() { return false; } @@ -100,16 +91,7 @@ inline bool IsWorkSerializerClearsTimeCacheEnabled() { return true; } inline bool IsWorkSerializerDispatchEnabled() { return false; } #elif defined(GPR_WINDOWS) -#ifndef NDEBUG -#define GRPC_EXPERIMENT_IS_INCLUDED_CALL_STATUS_OVERRIDE_ON_CANCELLATION -#endif -inline bool IsCallStatusOverrideOnCancellationEnabled() { -#ifdef NDEBUG - return false; -#else - return true; -#endif -} +inline bool IsCallStatusOverrideOnCancellationEnabled() { return false; } inline bool IsCallV3Enabled() { return false; } inline bool IsCanaryClientPrivacyEnabled() { return false; } inline bool IsClientPrivacyEnabled() { return false; } @@ -144,16 +126,7 @@ inline bool IsWorkSerializerClearsTimeCacheEnabled() { return true; } inline bool IsWorkSerializerDispatchEnabled() { return false; } #else -#ifndef NDEBUG -#define GRPC_EXPERIMENT_IS_INCLUDED_CALL_STATUS_OVERRIDE_ON_CANCELLATION -#endif -inline bool IsCallStatusOverrideOnCancellationEnabled() { -#ifdef NDEBUG - return false; -#else - return true; -#endif -} +inline bool IsCallStatusOverrideOnCancellationEnabled() { return false; } inline bool IsCallV3Enabled() { return false; } inline bool IsCanaryClientPrivacyEnabled() { return false; } inline bool IsClientPrivacyEnabled() { return false; } diff --git a/src/core/lib/experiments/rollouts.yaml b/src/core/lib/experiments/rollouts.yaml index ae0dd487d7..be4b58a779 100644 --- a/src/core/lib/experiments/rollouts.yaml +++ b/src/core/lib/experiments/rollouts.yaml @@ -41,7 +41,7 @@ # Supported platforms: ios, windows, posix - name: call_status_override_on_cancellation - default: debug + default: false - name: call_v3 default: false - name: canary_client_privacy |