Cheng-Yu Chung
0356ff3a72
Remove `include/grpc/impl/codegen/gpr_types.h` ( #31818 )
...
* Remove `include/grpc/impl/codegen/gpr_types.h`
* Automated change: Fix sanity tests
2 years ago
Craig Tiller
7c206579ab
[time] Fix multiple second stall at startup of mac/ios apps ( #31844 )
...
Quick explainer (this is gross):
- `grpc_core::Timestamp` measures millis since an arbitrary epoch, and on 32-bit platforms is 32-bit precise
- `gpr_now(GPR_CLOCK_MONOTONIC)` measures nanos since a different arbitrary epoch
- since Timestamp has limited range, we choose its epoch to roughly correlate with process startup to avoid overflow
- since we have static initialization problems on some platforms we choose 0 as an uninitialized designator for that epoch
- since we have bugs elsewhere, we insist that time values are >1 second from Timestamp
- to deal with all that, if we get `gpr_now(GPR_CLOCK_MONOTONIC)` values that are close to 0 or 1 seconds we wait for a little while to get values that will work better later
- on mac and windows gpr_now(GPR_CLOCK_MONOTONIC) was setting its epoch to be process startup exactly, and so we hit this all the time
This PR fixes some bugs in initialization of the Timestamp epoch and clarifies the code somewhat, and (more importantly) shifts the Windows and Mac epochs five seconds prior to process startup, guaranteeing that the logic in `grpc_core::Timestamp`'s epoch sees values that it can immediately use in all cases and eliminating the need for the pause.
2 years ago
Craig Tiller
1f15f21540
Revert "Revert "Revert "[experiments] Enable memory_pressure_controller for debug builds ( #31811 )" ( #31824 )" ( #31832 )" ( #31846 )
...
This reverts commit 322e85253e
.
2 years ago
Craig Tiller
f32701f840
make log lines info to help out a customer ( #31842 )
2 years ago
Cheng-Yu Chung
c3132358d6
Remove `include/grpc/impl/codegen/status.h` ( #31817 )
...
* Remove `include/grpc/impl/codegen/status.h`
* Automated change: Fix sanity tests
2 years ago
Eryu Xia
a8ac4e7265
Revert "[ObjC]fix 64 to 32 bit clang conversion warning in src/core/lib ( #29877 )" ( #31843 )
...
This reverts commit eb0a591811
.
2 years ago
Hannah Shi
eb0a591811
[ObjC]fix 64 to 32 bit clang conversion warning in src/core/lib ( #29877 )
2 years ago
AJ Heller
f17592d48d
EventEngine::RunAfter: Priority LB ( #30045 )
...
* EventEngine::RunAfter: Priority LB
* Have the ChildPriority own an EventEngine
* Automated change: Fix sanity tests
* fix use after move; add exec_ctx
* Automated change: Fix sanity tests
* fix cancellation ordering problem
* reviewer feedback
Co-authored-by: drfloob <drfloob@users.noreply.github.com>
2 years ago
Yijie Ma
89f3b1f293
PollingResolver: Honor cancel action in Timer callback ( #31826 )
...
* reset timer handle when cancel failed, meaning the timer callback has
already been scheduled
* review
* review
2 years ago
AJ Heller
b19604ea60
EventEngine::RunAfter: GrpcLb ( #30043 )
...
* EventEngine::RunAfter: GrpcLb
* Automated change: Fix sanity tests
* add exec_ctx to callbacks
* fix use after move
* remove ref-counting bug; add more ref traces
* reviewer feedback
Co-authored-by: drfloob <drfloob@users.noreply.github.com>
2 years ago
AJ Heller
7eb99baad8
EventEngine::RunAfter: OutlierDetection LB Policy ( #30040 )
...
* EventEngine::RunAfter: OutlierDetection LB Policy
* iwyu, clang format, fix_auto_deps
* fix TSAN: EjectionTimer needs no cleanup on cancellation
* redo
* exec_ctx and fix use after move
* handle orphaning with an unset timer handle
* Automated change: Fix sanity tests
* reviewer feedback
Co-authored-by: drfloob <drfloob@users.noreply.github.com>
2 years ago
Craig Tiller
322e85253e
Revert "Revert "[experiments] Enable memory_pressure_controller for debug builds ( #31811 )" ( #31824 )" ( #31832 )
...
This reverts commit 4d7df5580d
.
2 years ago
Allan Boll
657b825c81
XdsClient: inject version string at construction time ( #31812 )
...
* Decouple XdsClient from grpc_version_string
* Updated tests too
* clang format fixes
2 years ago
Alisha Nanda
38fd9c87e3
Revert "Sends out-of-band close for streams from client side when destroying transport ( #31814 )" ( #31833 )
...
This reverts commit 1daa3877ed
.
2 years ago
Stanley Cheung
fa42edef83
Update PHP docker images PHP versions ( #31779 )
2 years ago
Mark D. Roth
a34f9e170f
ring_hash LB: cap ring size to 4096 with channel arg to override ( #31692 )
...
* ring_hash LB: cap ring size to 4096 with channel arg to override
* change default max_ring_size value to 4096 in LB policy config
2 years ago
Cheng-Yu Chung
4e90f43a75
Remove functions in `class CoreCodegen` ( #31796 )
...
* Update include
* Clean up `grpc_empty_slice()`
* Clean up `grpc_slice_malloc()`
* Clean up `grpc_slice_unref()`
* Clean up `grpc_slice_ref()`
* Clean up `grpc_slice_split_tail()`
* Clean up `grpc_slice_split_head()`
* Clean up `grpc_slice_sub()`
* Clean up `grpc_slice_buffer_add()`
* Clean up `grpc_slice_buffer_add_indexed()`
* Clean up `grpc_slice_buffer_pop()`
* Clean up `grpc_slice_from_static_buffer()`
* Clean up `grpc_slice_from_copied_buffer()`
* Clean up `grpc_metadata_array_init()`
* Clean up `grpc_metadata_array_destroy()`
* Clean up `gpr_inf_future()`
* Clean up `gpr_time_0()`
2 years ago
Vignesh Babu
14cdae3d1c
Change ignore http2 setting log level to DEBUG ( #31825 )
2 years ago
Mao
1daa3877ed
Sends out-of-band close for streams from client side when destroying transport ( #31814 )
...
* Send out-of-band close for streams when destroying transport
* Remove unnecessary blank lines
* Print error if transaction messages don't match
2 years ago
Hannah Shi
0ca4bbfb9f
run cf stream test with bazel ( #31555 )
2 years ago
Mark D. Roth
281228407f
xDS cluster: use absl::variant for cluster type ( #31820 )
...
* xDS cluster: use absl::variant for cluster type
* fix xds_cluster_resource_type test
2 years ago
Mark D. Roth
040617028c
Revert "Revert "xDS stateful session affinity: support xDS HTTP filter config ( #31793 )" ( #31821 )" ( #31823 )
...
This reverts commit 0fd59754b1
.
2 years ago
Cheng-Yu Chung
0d3fcb41ea
Revert "Move google_default channel_credentials out of `include/grpc/grpc_security.h` ( #31786 )" ( #31822 )
...
This reverts commit 3d59abc94e
.
2 years ago
Craig Tiller
4d7df5580d
Revert "[experiments] Enable memory_pressure_controller for debug builds ( #31811 )" ( #31824 )
...
This reverts commit 244e39b86e
.
2 years ago
AJ Heller
0fd59754b1
Revert "xDS stateful session affinity: support xDS HTTP filter config ( #31793 )" ( #31821 )
...
This reverts commit 7f054ffab0
.
2 years ago
AJ Heller
18029913b9
Remove posix_engine namespace ( #31787 )
...
* Remove posix_engine namespace
* Automated change: Fix sanity tests
* rm redundant using statements
Co-authored-by: drfloob <drfloob@users.noreply.github.com>
2 years ago
Mohan Li
3382270efc
Log xDS node ID with verbosity INFO ( #31797 )
...
* Log xDS node ID with verbosity INFO
* Log xDS node ID with verbosity INFO
* Log xDS node ID with verbosity INFO
* Log xDS node ID with verbosity INFO
* Log xDS node ID with verbosity INFO
* Log xDS node ID with verbosity INFO
2 years ago
Mark D. Roth
7f054ffab0
xDS stateful session affinity: support xDS HTTP filter config ( #31793 )
...
* stateful session affinity: implement filter
* register filter config parser
* fix unused parameter errors
* remove some FIXMEs that are not longer needed
* clang-tidy
* iwyu
* xDS stateful session affinity: support xDS HTTP filter config
* buildifier
* iwyu
* revert iwyu changes to observability_logging_sink.cc
* generate_projects
* generate_projects
* Automated change: Fix sanity tests
* fix build
* fix xds_http_filters_test
* add tests
* clang-format
* shorten filter name
* don't use absl::optional for path
* fix build
* don't add cookie to trailing metadata unless it's Trailers-Only
* fix sanity
Co-authored-by: markdroth <markdroth@users.noreply.github.com>
2 years ago
Craig Tiller
b2b7051558
[hpack] Include context when failing due to metadata size exceeded ( #31809 )
...
* better error
* Automated change: Fix sanity tests
* Update hpack_parser.cc
* fix
* reduce-bloat
* Automated change: Fix sanity tests
Co-authored-by: ctiller <ctiller@users.noreply.github.com>
2 years ago
Cheng-Yu Chung
5fe132a211
Revert "Revert "Remove `include/grpc/impl/codegen/gpr_slice.h` ( #31774 )" ( #31805 )" ( #31806 )
...
This reverts commit 39a4343044
.
Fixing forward the original PR. The content should be the same as the original PR. The broken part is in the internal.
2 years ago
Ashitha Santhosh
62680e0a83
Detect unknown fields in SDK to RBAC translator ( #27669 )
...
* detect unknown fields
* detect unknown fields
* formatting
* formatting
* sanity check fix
* Resolving comments
* sanity check
* sanity check
* resolve comments
* sanity check
* resolve comments
* fix iwyu
2 years ago
Cheng-Yu Chung
3d59abc94e
Move google_default channel_credentials out of `include/grpc/grpc_security.h` ( #31786 )
2 years ago
Craig Tiller
244e39b86e
[experiments] Enable memory_pressure_controller for debug builds ( #31811 )
...
* [experiments] Enable memory_pressure_controller by default
* fix found crash
* fixy
2 years ago
Yijie Ma
6b79989d86
EventEngine::RunAfter: PollingResolver ( #31717 )
...
* EventEngine::RunAfter: polling_resolver
initial draft
* restore some iwyu change
* fix: get rid of OnNextResolution
* fix some test crashes
* fix more tests
* clang-tidy
* review
* clang-tidy
* fix
* review
* review
* review
* fix use-after-move
* revert
* review
2 years ago
Mark D. Roth
5e4d9f4bcf
xDS stateful session affinity: implement C-core filter ( #31788 )
...
* stateful session affinity: implement filter
* register filter config parser
* fix unused parameter errors
* remove some FIXMEs that are not longer needed
* clang-tidy
* iwyu
* iwyu
* revert iwyu changes to observability_logging_sink.cc
* generate_projects
* shorten filter name
* don't use absl::optional for path
* fix build
* don't add cookie to trailing metadata unless it's Trailers-Only
2 years ago
Craig Tiller
1bfc50f27e
[experiments] Enable flow_control_fixes by default ( #31810 )
2 years ago
Cheng-Yu Chung
39a4343044
Revert "Remove `include/grpc/impl/codegen/gpr_slice.h` ( #31774 )" ( #31805 )
...
This reverts commit ac1dee8ac1
.
2 years ago
Cheng-Yu Chung
ac1dee8ac1
Remove `include/grpc/impl/codegen/gpr_slice.h` ( #31774 )
2 years ago
Alisha Nanda
ad91404e0e
Remove static initialization of memory allocator in tests ( #31776 )
...
* Add more info to error
* Fix tests
* Remove static initialization of memory allocator
* Fix test failure
* Automated change: Fix sanity tests
Co-authored-by: ananda1066 <ananda1066@users.noreply.github.com>
2 years ago
Vignesh Babu
6eb6e00954
Enable posix_event_engine_polling experiment ( #31801 )
2 years ago
Craig Tiller
2438b58b03
[promises] TryConcurrently: add tests for many push/pulls ( #31758 )
2 years ago
Cheng-Yu Chung
9d09a8ff2f
Remove `include/grpc/impl/codegen/sync.h` ( #31777 )
2 years ago
Cheng-Yu Chung
dba82c9be6
Remove `include/grpc/impl/codegen/log.h` ( #31775 )
...
* Remove `include/grpc/impl/codegen/log.h`
* Automated change: Fix sanity tests
2 years ago
Yijie Ma
044e0557a7
EventEngine::RunAfter migration StateWatcher ( #31790 )
...
* EventEngine::RunAfter migration StateWatcher
initial commit
* comment
* ref-count fun
* ExecCtx fun
* more ExecCtx fun
* fix
* more ref-counting fun
* remove debug log
* add mutex
2 years ago
Eugene Ostroukhov
1e13612d4a
Introduce the xds_override_host policy ( #31730 )
...
Introduce the xds_override_host policy
2 years ago
Cheng-Yu Chung
1d968a36aa
Remove functions in `class CoreCodegen` ( #31767 )
...
* Clean up `grpc_byte_buffer_copy()`
* Clean up `grpc_byte_buffer_destroy()`
* Clean up `grpc_byte_buffer_length()`
* Clean up `grpc_byte_buffer_reader_init()`
* Clean up `grpc_byte_buffer_reader_destroy()`
* Clean up `grpc_byte_buffer_reader_next()`
* Clean up `grpc_byte_buffer_reader_peek()`
* Clean up `grpc_raw_byte_buffer_create()`
* Clean up `grpc_slice_new_with_user_data()`
* Clean up `grpc_slice_new_with_len()`
* Clean up `grpc_call_start_batch()`
* Clean up `grpc_call_cancel_with_status()`
* Clean up `grpc_call_failed_before_recv_message()`
* Clean up `grpc_call_ref()`
* Clean up `grpc_call_unref()`
* Clean up `grpc_call_error_to_string()`
* Fix typos
* Automated change: Fix sanity tests
2 years ago
Richard Belleville
5933b52e11
Build native MacOS arm64 artifacts (universal2) ( #31747 )
...
* Attempt to build universal2 artifacts
* Whoops
* Reverse the hack
* Turn off boringssl assembly optimizations
* Whoopsie
2 years ago
Mark D. Roth
964f101b4b
Second attempt: subchannel: use WorkSerializer for connectivity state notifications ( #31634 )
...
* subchannel: use WorkSerializer for connectivity state notifications
* code review comment
2 years ago
Mehrdad Afshari
c9250fb3c2
Add empty constructor to workaround gcc/clang bug ( #31780 )
...
Some versions of gcc/clang have a bug that fail to compile
with an error message without a constructor definition.
Adding a no-op constructor to avoid this issue.
2 years ago
Zhan Jiang
ec6d6025e5
security: Refactor some utility functions in TSI for better internal use ( #31736 )
...
security: Refactor some utility functions in TSI for better internal use
2 years ago