Commit Graph

26634 Commits

Author SHA1 Message Date
Jan Tattermusch 288fe131b4
Reintroduce #22964 with extra fixes (#26465)
* Revert "Revert "Upgrade dotnet SDK 3 for C# build (#22964)" (#26462)"

This reverts commit 736d914cfd.

* Revert "Exclude csharp from performance test continuous runs. (#26458)"

This reverts commit 6744e8f84a.

* switch remaining tests to C# buster image

* remove C#'s global.json (which requires dotnet SDK 3+)

* dotnet SDK3 currently breaks C# package build

* regenerate dockerfiles
2021-06-15 18:50:13 +02:00
Jan Tattermusch 451127740d
Revert "Replace in-house rand with absl::Random for backoff (#26463)" (#26476)
This reverts commit b5191d0930.
2021-06-14 21:56:35 -07:00
Mark D. Roth 1e2f19b286
fix retry code to handle failed send ops (#26418)
* optimize retry per-call-attempt memory usage

* fix retry code to handle failed send ops

* clang-format

* fix memory leak

* clang-format

* fix proxy tests

* fix race condition in test
2021-06-14 15:29:40 -07:00
Jan Tattermusch 156edd687e
set xds user agent name everywhere where grpc_csharp_ext is built (#26337)
* set xds user agent name everywhere where grpc_csharp_ext is built

* regenerate projects
2021-06-14 08:25:14 +02:00
Esun Kim b5191d0930
Replace in-house rand with absl::Random for backoff (#26463)
* Replace in-house rand with absl::Random for backoff

* Run sanity

* Added bscrypt dependency
2021-06-11 16:29:45 -07:00
ZhenLian 5a91a513fd
Allow to specify user provided audience in google default credentials and JWT credentials (#26456)
* support user provided audience in gdc and jwt
2021-06-11 09:44:46 -07:00
Yan Reznikov 39d007e83b
Updated instructions for vcpkg install on Windows (#26373)
* Updated instructions for vcpkg install on Windows

bootstrap-vcpkg.sh script doesn't work out of the box on Windows
Rest of the commands are OS-neutral

* Update README.md
2021-06-11 11:21:49 +02:00
Esun Kim 736d914cfd
Revert "Upgrade dotnet SDK 3 for C# build (#22964)" (#26462)
This reverts commit a44bafec08.
2021-06-10 16:46:44 -07:00
Paul Beusterien 7dadf858f1
Fix future version of the Apple toolchain failure (#25611)
More detail at https://github.com/firebase/firebase-ios-sdk/pull/7563
2021-06-10 10:33:55 -07:00
Stanley Cheung f89574cc4b
Ruby: fix timeout flake, always start RPC in threads (#26426) 2021-06-09 11:27:12 -07:00
bcoopers 743055193a
Don't reference symbol memcpy@GLIBC_2.2.5 on Android (#26447)
* Update wrap_memcpy.cc

Don't define symbol memcpy@GLIBC_2.2.5 on Android, which can lead to issues with the link option "-Wl,--no-undefined" (see b/190214878)

* Update wrap_memcpy.cc

* Update wrap_memcpy.cc
2021-06-09 10:17:38 -07:00
Jan Tattermusch a44bafec08
Upgrade dotnet SDK 3 for C# build (#22964)
* upgrade dotnet SDK 3 for C# build

* add C# global.json

* install dotnet SDK 3 on macos

* upgrade C# docker images to debian buster

* regenerate dockerfiles
2021-06-09 09:25:48 +02:00
Yash Tibrewal c8db1091b8
Use default port 443 in HTTP CONNECT request (#26331)
* Use default port 443 in HTTP CONNECT request

* s/data/c_str

* Fix use-after-free

* Reviewer comments
2021-06-08 22:44:49 -07:00
Mark D. Roth 7879498619
add random number to xDS node ID in google-c2p resolver (#26433)
* add random number to xDS node ID in google-c2p resolver

* use a dash instead of a space

* use C++ random library
2021-06-08 15:52:07 -07:00
Mark D. Roth fbf32836a4
Add cpp macros to append wrapped language info to xDS user agent (#26189)
* Add cpp macro to append wrapped language info to xDS user agent

* fix redefinition error and add macro for wrapped lang version

* clang-format

* don't use macro with leading underscore
2021-06-08 12:20:52 -07:00
apolcyn a28df9cc47
Correct the start index of zone parsing in C2P resolver (#26444) 2021-06-08 09:55:21 -07:00
apolcyn 03721b9389
Fix google_cfe cluster name prefix check in google default creds (#26445) 2021-06-08 09:53:39 -07:00
Lidi Zheng a3ae8e00a2
Revert "Allow to specify user provided audience in google default credentials and JWT credentials (#26392)" (#26440)
This reverts commit 304262e135.
2021-06-07 15:24:54 -07:00
Hung Dang 5ea57ec905
Fix a C++ build failure if the C++17 standard is used (#26359)
* Initial commit

* Add a non-trivial constructor to avoid a compiler bug.
2021-06-04 13:24:35 -07:00
Ashitha Santhosh b9a643a817
Static policy provider implementation. (#26134) 2021-06-03 23:18:08 -07:00
yihuaz 304262e135
Allow to specify user provided audience in google default credentials and JWT credentials (#26392)
* support user provided audience in gdc and jwt

* fix 1st round of comments

* fix ruby and php to use new GDC API

* fix python clang issue

* address 2nd round of comments

* fix string_view issue

* remove length param in string_view constructor
2021-06-03 16:02:19 -07:00
Thomas Köppe 57c1c91525
Add missing header inclusions. (#26424) 2021-06-03 15:44:05 -07:00
Mark D. Roth 68a7e8a7d8
optimize retry per-call-attempt memory usage (#26386) 2021-06-03 07:38:59 -07:00
Mark D. Roth 2857e70d5d
don't hold call combiner while retry timer is pending (#26406)
* don't hold call combiner while retry timer is pending

* update some TODOs
2021-06-02 09:44:17 -07:00
Lidi Zheng 66b86cec32
Disable two aio tests for aarch64 for strange platform behavior (#26409)
* Disable two aio tests for aarch64 for strange platform behavior

* Make sanity test happy
2021-06-02 14:54:07 +02:00
Richard Belleville 1ca87cd2d3
Address Synchronization Comment from #26405 (#26410)
* Fix metadata plugin for concurrent invocations

* Disable broad-except lint error

* Use WaitGroup instead of threading.Event

* Fix typo

* Use only a single channel

* Yapf
2021-06-01 17:21:53 -07:00
Ashitha Santhosh 9bbdb70cdc
Add uri sans (#26362)
* Add uri sans
2021-06-01 16:43:27 -07:00
Richard Belleville 67f0330c10
Fix metadata plugin for concurrent invocations (#26405)
* Fix metadata plugin for concurrent invocations

* Disable broad-except lint error
2021-06-01 15:25:56 -07:00
Mark D. Roth 49c1c0051c
improve retry trace logging (#26383)
* improve retry trace logging

* fix a couple of typos
2021-06-01 10:06:35 -07:00
Vijay Pai 8aff94558c
De-experimentalize C++ callback API (#25728)
* De-experimentalize callback API

* Make FromServerContext based on ServerContextBase

* Fix lambda

* Fix headers

* De-experimentalize tests

* clang-format

* Fix consistency checks

* wip

* Fix const-ness of callback client read RPC requests

* Fix golden file

* Give full route_guide callback client example with Hold etc

* Complete example route-guide server

* De-experimentalize test services

* Omit unneeded using

* Remove some uses of non-experimental macro from test

* clang-format examples

* De-experimentalize async stub calls

* Remove experimental namespace use in qps, ubms

* De-experimentalize alarms, generic stubs, and context allocator

* De-experimentalize SetContextAllocator

* clang-format

* Fix conflicts

* Leave obsolete API in place until users can be migrated
2021-05-27 14:55:25 -07:00
Mark D. Roth 3c55491043
clean up retry filter refcount handling (#26382) 2021-05-27 13:23:14 -07:00
Esun Kim a99ead4bf4
Added new method to ByteBuffer & Slice (#26014) 2021-05-27 11:18:18 -07:00
Vijay Pai 153bc67f45
Revert "Revert "Revert "Revert "Expose trailers-only response status through C++ callback API"" (#26365)" (#26375)" (#26379)
This reverts commit 259a74c0e6.
2021-05-27 09:16:05 -07:00
Yash Tibrewal 259a74c0e6
Revert "Revert "Revert "Expose trailers-only response status through C++ callback API"" (#26365)" (#26375)
This reverts commit 66253c521a.
2021-05-26 22:20:23 -07:00
donnadionne e22fefb39a
Ring hash implementation (#26356)
* Ring hash implementation

* Fixing an error caught during import:
ipv6 addresses need small modifications when creating the ring entry.

* fixing an error

* removing debugs

* Remove unnecssary hashing

* small cleanup
2021-05-26 00:03:42 -07:00
Vijay Pai 66253c521a
Revert "Revert "Expose trailers-only response status through C++ callback API"" (#26365)
* Revert "Revert "Expose trailers-only response status through C++ callback API (#26249)" (#26363)"

This reverts commit 05c3b30ea0.

* Move the trailers_only check from ClientContext to ClientReactor

* Remove unneeded change in client_context.cc
2021-05-25 17:43:21 -07:00
Yash Tibrewal 05c3b30ea0
Revert "Expose trailers-only response status through C++ callback API (#26249)" (#26363)
This reverts commit 393bae7e88.
2021-05-25 13:44:10 -07:00
Richard Belleville 05aa736840
Fix bazel copyright notices (#26353)
* Add copyright to Bazel files

* Add check for copyright in Bazel files

* Remove unintentional file
2021-05-25 12:15:30 -07:00
Isabel Andrade aaa7f13b17
Handle gevent exception in gevent poller (#26058)
* Handle gevent exception in gevent poller

Currently the gevent poller ignores exceptions raised by
`gevent.wait()`, which causes greenlets to be unkilable while waiting.

This change handles exceptions raised while waiting in the gevent
poller, cancels the gRPC call and propagates the error back to the
application.

Co-authored-by: Kostis Lolos <klolos@arrikto.com>

* Fix imports in header files

* Lint gevent tests

* Set grpc event type to GRPC_QUEUE_SHUTDOWN upon cancel error

To prevent `grpc_completion_queue_next()` to be called indefinitely when
the queue is shut down.

* Remove unnecessary `except *`

* Improve gevent tests

* Format code

* Remove unnecessary import

Co-authored-by: Kostis Lolos <klolos@arrikto.com>
2021-05-24 15:03:29 -07:00
Esun Kim c97da0fc25
Fix #include <vector> for status_helper.h (#26354) 2021-05-24 12:46:19 -07:00
Mark D. Roth edae7450f5
fix LOGICAL_DNS semantics (#26147)
* WIP: fix LOGICAL_DNS semantics

* fix tests and address FIXME

* clang-format

* add "dns:" prefix before creating resolver
2021-05-24 09:59:20 -07:00
Jan Tattermusch b5606520bc
make sure C# developer build works even when on arm64 linux (#26335) 2021-05-22 16:38:11 +02:00
Richard Belleville c0f346423c
Fixes #26322 (#26340)
* Fixes #26322

* Support runtimes without contextvars

* Hoist member declaration higher
2021-05-21 17:12:36 -07:00
Vijay Pai 393bae7e88
Expose trailers-only response status through C++ callback API (#26249)
* Expose trailers-only response status through callback API

* Fix change-detector test

* Address reviewer comment about trailers_only headers

* Add TODO requested by markdroth

* Move variable in struct to improve space efficiency

* Don't instantiate ExecCtx in channel_args destructor unless needed
2021-05-21 14:42:41 -07:00
Vijay Pai 3eb96489f4
Don't instantiate ExecCtx in channel_args destructor unless needed (#26332) 2021-05-21 11:14:44 -07:00
Vijay Pai ef35b4a28b
Constify failed_before_recv_message check (#26330)
* Constify failed recv_message check

* Update call.h
2021-05-21 07:26:59 -07:00
Richard Belleville cc22375572
Fix Python xDS k8s Interop (#26158)
* Increase core logging verbosity

* Make repo URL injectable

* Apparently that's not allowed

* Use ipv4 in interop server

* Add CSDS to Python interop client

* Revert CI script change

* Scale back logging

* Move env variable to dockerfile

* And Python too
2021-05-20 17:58:29 -07:00
AJ Heller c7f622003d
Remove fd dependencies from the local_security_connector (#26290) 2021-05-20 17:41:04 -07:00
Mark D. Roth dbde1a21dc
Don't use legacy EDS-only flow for google-c2p resolver. (#26284) 2021-05-19 15:27:54 -07:00
donnadionne 2bb20d25a4
Revert "ring_hash LB policy implementation (#26285)" (#26303)
This reverts commit c55c7c065e.
2021-05-19 14:24:52 -07:00