Juanli Shen
95f37b3108
Fix test
2018-02-12 13:32:32 -08:00
Vijay Pai
c745690caf
Internalize gpr_thd except for id and currentid
2018-02-12 11:44:52 -08:00
Juanli Shen
776490af0e
Revert "Revert "grpclb re-resolution""
2018-02-12 11:35:40 -08:00
Noah Eisen
10a9e4e4fb
Merge pull request #14150 from ncteisen/more-clang-tidy
...
Remove and Prohibit C Style Casts
2018-02-10 08:58:46 -08:00
Vijay Pai
2650c9730f
Merge pull request #14397 from vjpai/nb2
...
Add a separate test for non-blocking polling and RPCs
2018-02-09 18:07:22 -08:00
Vijay Pai
823c9c4717
Merge pull request #14396 from vjpai/ae2e
...
Remove spinning variants from async_end2end_test
2018-02-09 16:29:31 -08:00
David G. Quintas
81f6a7cf9b
Merge pull request #14374 from dgquintas/missing_pr_comments
...
Addressing #14170 leftover comments
2018-02-09 16:14:25 -08:00
Vijay Pai
dd57cb5949
Empty out all tests if GRPC_POSIX_SOCKET is not defined
2018-02-09 15:47:44 -08:00
Vijay Pai
132efa0c9b
Add non-blocking test
2018-02-09 15:42:05 -08:00
Vijay Pai
1e6a620b50
Remove spinning version
2018-02-09 14:48:00 -08:00
David Garcia Quintas
7756b3785d
Addressing #14170 leftover comments
2018-02-09 13:24:19 -08:00
Noah Eisen
f56fe4d448
Remove uneeded headers
2018-02-09 13:21:54 -08:00
ncteisen
d187ef8c7c
Stop overriding poll function in async_end2end
2018-02-09 11:00:23 -08:00
Noah Eisen
4d20a66685
Run clang fmt
2018-02-09 09:34:04 -08:00
Noah Eisen
be82e64b3d
Autofix c casts to c++ casts
2018-02-09 09:16:55 -08:00
Vijay Pai
0024ebc852
Merge pull request #14196 from vjpai/gpr_review_tls
...
GPR review: Privatize thread-local storage headers
2018-02-08 13:24:39 -08:00
Mark D. Roth
209f644f04
Convert resolver API to C++.
2018-02-08 10:26:46 -08:00
Vijay Pai
25b61fd60e
Merge branch 'master' into gpr_review_tls
2018-02-08 10:26:25 -08:00
Vijay Pai
f37d33a21a
Merge pull request #14349 from vjpai/own2own
...
Add owners to C++ end2end tests to reduce chance of accidental API breakage
2018-02-08 09:58:38 -08:00
David G. Quintas
c8f572b443
Merge pull request #14170 from dgquintas/fake_resolver_dont_push_rr_reresolve2
...
Make RR re-resolve when any of its subchannels fail.
2018-02-08 09:16:04 -08:00
David Garcia Quintas
a68a11e4a0
PR comments
2018-02-07 17:07:16 -08:00
Juanli Shen
aa7dc296b6
Revert "grpclb re-resolution"
2018-02-07 09:50:08 -08:00
Vijay Pai
811d39a5bc
Add owners to C++ end2end tests to prevent accident API breakage
2018-02-06 21:41:24 -08:00
Muxi Yan
fb369d9567
Merge pull request #14343 from muxi/revert-12708
...
Revert breaking API in #12708
2018-02-06 20:40:21 -08:00
Muxi Yan
6f0b195d20
Replace GRPC_COMPRESS_MESSAGE_* with GRPC_COMPRESS_*
2018-02-06 18:17:42 -08:00
Juanli Shen
33cdd57ab7
grpclb in charge of its re-resolution
2018-02-06 17:03:53 -08:00
David Garcia Quintas
20331706e2
Make RR re-resolve upon any subchannel failure
2018-02-06 14:48:12 -08:00
Vijay Pai
3b7ae55f77
More uses of 1-phase Call
2018-02-05 16:49:22 -08:00
Vijay Pai
dcd5ef3ad8
Deprecate GenericStub()::Call for multi-threaded use
2018-02-05 13:08:44 -08:00
Juanli Shen
8011a09697
Merge pull request #14281 from AspirinSJL/fake_resolver_results_upon_error
...
Add a results_upon_error setter to fake resolver
2018-02-02 17:27:57 -08:00
Juanli Shen
d82e137c7b
Add a results_upon_error setter to fake resolver
2018-02-02 09:16:12 -08:00
David Garcia Quintas
1efec95d64
Removed unused argument from ResetStub()
2018-02-01 16:29:58 -08:00
Jan Tattermusch
a3088a6ce8
fix rounding problem in EchoDeadline test
2018-01-30 23:38:26 +01:00
Vijay Pai
b6cf123717
Privatize thread-local storage headers
2018-01-25 22:12:28 -08:00
Sree Kuchibhotla
de5f6bfe92
Set the environment variable at the beginning of the test. Otherwise, it
...
is not being read by the backup poller
2018-01-25 17:23:42 -08:00
Muxi Yan
fd900e09fb
Merge remote-tracking branch 'upstream/master' into fix-stream-compression-config-interface
2018-01-24 16:16:23 -08:00
Juanli Shen
8e4c9d308c
Extract lb_calld from glb_policy
2018-01-23 16:26:39 -08:00
yang-g
98cd36e2c3
Add a test
2018-01-23 11:42:10 -08:00
Muxi Yan
fb061c329a
Merge remote-tracking branch 'upstream/master' into fix-stream-compression-config-interface
2018-01-19 12:20:15 -08:00
yang-g
a29d6d0d74
remove use of random_shuffle
2018-01-18 15:54:29 -08:00
Mark D. Roth
dbdf495f61
Split lib/support into lib/gpr and lib/gpr++.
2018-01-18 11:21:12 -08:00
David Garcia Quintas
41d27e104f
Merge branch 'master' of github.com:grpc/grpc into conn_subchannel
2018-01-17 10:38:53 -08:00
Jan Tattermusch
e5b7ddd59c
Merge pull request #13363 from grpc/revert-13346-revert-13322-oauth_failure
...
Revert "Revert "Switching from UNAUTHENTICATED to UNAVAILABLE for auth metadata failure""
2018-01-16 18:21:23 +01:00
Vijay Pai
7500577593
Address review feedback; stop using result of 'what'
2018-01-09 10:55:37 -08:00
Vijay Pai
b425fc79da
Comment on cpp guard
2018-01-08 15:12:55 -08:00
Vijay Pai
9809ce38e9
Use appropriate preprocessor guards to allow building without exceptions
2018-01-08 15:12:55 -08:00
Vijay Pai
8fc3715a17
Catch exceptions from sync method handlers without crashing server
2018-01-08 15:12:55 -08:00
David Garcia Quintas
53bfe69f70
Connected subchannel refactoring
2018-01-05 20:08:51 -08:00
yang-g
eb64fadfce
Provide a way to use custom search path for gmock.h
2017-12-22 13:46:25 -08:00
David G. Quintas
e9b0fd07a5
Merge pull request #13494 from dgquintas/backoff_cpp
...
C++-ize backoff
2017-12-19 14:46:33 -08:00
David Garcia Quintas
1bedfa3963
Fix another data race in client_lb_end2end
2017-12-19 08:48:59 -08:00
David Garcia Quintas
4f4a45e97e
fix tsan issue in client_lb_end2end
2017-12-18 17:00:42 -08:00
David Garcia Quintas
3bc0dacfe0
Removed exec_ctx from new client_lb_end2end code
2017-12-18 13:34:25 -08:00
Alexander Polcyn
5f72c6a0f0
Mark a couple of test binaries asa testonly
2017-12-15 13:29:10 -08:00
David Garcia Quintas
9c8ea03ee3
Merge branch 'master' of github.com:grpc/grpc into backoff_cpp
2017-12-15 13:24:55 -08:00
David Garcia Quintas
590099c46f
PR comments, round 3
2017-12-15 12:46:48 -08:00
David Garcia Quintas
d9286734cc
PR comments
2017-12-14 15:16:22 -08:00
Craig Tiller
78335ac376
Merge pull request #13710 from ctiller/fix17it1
...
Fix test helper binaries
2017-12-13 15:35:04 -08:00
Jan Tattermusch
ef0e64cdf5
Revert "Revert "Switching from UNAUTHENTICATED to UNAVAILABLE for auth metadata failure""
2017-12-14 00:17:20 +01:00
David Garcia Quintas
54d699ddda
Merge branch 'master' of github.com:grpc/grpc into backoff_cpp
2017-12-13 14:44:29 -08:00
Muxi Yan
032e9b32dc
Merge remote-tracking branch 'upstream/master' into fix-stream-compression-config-interface
2017-12-13 14:04:45 -08:00
David Garcia Quintas
af42ea715c
Added tests for initial and min connect backoffs
2017-12-13 13:53:40 -08:00
Craig Tiller
3a6e5bbea4
Fixes
2017-12-13 10:02:33 -08:00
Sree Kuchibhotla
7fd341746b
Merge pull request #13678 from sreecha/rpc-deadline-fix
...
Tweak the RpcDeadline test to reduce flakes
2017-12-11 11:17:04 -08:00
Craig Tiller
04bd8b3b11
Fix test helper binaries
2017-12-11 18:59:31 +00:00
Muxi Yan
99024d6436
Merge remote-tracking branch 'upstream/master' into fix-stream-compression-config-interface
2017-12-08 14:02:18 -08:00
Noah Eisen
5b1a66cef1
Merge pull request #13413 from ncteisen/surfacing-error-details-wrapped
...
Surface Error String to Wrapped Languages
2017-12-08 13:44:37 -08:00
ncteisen
6193c63dab
Reviewer feedback
2017-12-08 10:49:31 -08:00
Muxi Yan
5c5bafff5a
Merge commit '94e676e^2' into fix-stream-compression-config-interface
2017-12-08 10:39:22 -08:00
Yash Tibrewal
94e676e10f
Merge pull request #13659 from grpc/revert-13658-revert-13058-execctx
...
Revert "Revert "All instances of exec_ctx being passed around in src/core removed""
2017-12-08 09:30:40 -08:00
Yash Tibrewal
d6c292f177
Merge master
2017-12-07 19:38:43 -08:00
David Garcia Quintas
9702566b98
Make it possible to ignore result of SendRPC() in test
2017-12-07 13:01:59 -08:00
Sree Kuchibhotla
cc6601e213
Tweak the RpcDeadline test to reduce flakes
2017-12-07 11:23:40 -08:00
Muxi Yan
6043006af1
Merge remote-tracking branch 'upstream/master' into fix-stream-compression-config-interface
2017-12-06 22:29:12 -08:00
Muxi Yan
67454d71e8
Merge commit 'b0bad8f' into fix-stream-compression-config-interface
2017-12-06 22:09:36 -08:00
Muxi Yan
fc38142db6
Merge commit 'b0bad8f^' into fix-stream-compression-config-interface
2017-12-06 22:02:08 -08:00
Muxi Yan
38fcd0c6c3
clang-format
2017-12-06 18:55:05 -08:00
Muxi Yan
4a117f0be7
Merge e759d2a^
2017-12-06 18:47:16 -08:00
David Garcia Quintas
4d9f7f6cf9
PR comments
2017-12-06 16:45:49 -08:00
David Garcia Quintas
d5ca876b6d
Fixed ClientLbEnd2endTest.RoundRobinReresolve flakiness
2017-12-06 12:40:41 -08:00
Yash Tibrewal
8cf1470a51
Revert "Revert "All instances of exec_ctx being passed around in src/core removed""
2017-12-06 09:47:54 -08:00
Yash Tibrewal
ad4d2dde00
Revert "All instances of exec_ctx being passed around in src/core removed"
2017-12-06 09:05:05 -08:00
Yash Tibrewal
73bb67d054
Merge master into execctx
2017-12-05 17:49:11 -08:00
ncteisen
18bc278c81
Add tests
2017-12-04 13:25:14 -08:00
David Garcia Quintas
3a9743c881
Fix UpdatesTest.UpdateBalancersDeadUpdate expectation
2017-12-04 12:25:29 -08:00
Yash Tibrewal
c354269ba7
Remove _ prefixed variable names
2017-11-29 19:07:44 -08:00
Juanli Shen
f9df52900a
Fix comment
2017-11-28 18:08:36 -08:00
Yash Tibrewal
177039b2f8
Merge master
2017-11-16 19:31:28 -08:00
Yash Tibrewal
6c26b16fe0
Move ExecCtx to grpc_core namespace. Make exec_ctx a private static in ExecCtx and some minor changes
2017-11-14 18:11:22 -08:00
Yash Tibrewal
75122c2357
Address some PR comments
2017-11-14 01:36:28 -08:00
Craig Tiller
be98d24841
clang-format after nullptr changes
2017-11-10 15:26:57 -08:00
Craig Tiller
4ac2b8e585
Enable clang-tidy as a sanity check, fix up all known failures
2017-11-10 14:14:17 -08:00
Jan Tattermusch
14b7d5227f
Revert "Switching from UNAUTHENTICATED to UNAVAILABLE for auth metadata failure"
2017-11-10 11:40:34 +01:00
Yash Tibrewal
3150744c71
Removing more exec_ctx instances
2017-11-09 18:27:37 -08:00
Yash Tibrewal
4e9265c828
Merge with master
2017-11-09 17:46:29 -08:00
Julien Boeuf
5addba4749
Switching from UNAUTHENTICATED to UNAVAILABLE for auth metadata failure
...
Typically these failures are symptomatic of a busy oauth2 auth
server and calls should be retried in this case.
2017-11-08 23:28:58 -08:00
Yash Tibrewal
d9da7387b8
Merge pull request #13147 from yashykt/testc++ize
...
Convert test/core to C++
2017-11-07 17:02:23 -08:00
yang-g
0b9b7d2610
Use same cq for client and server
2017-11-07 11:27:02 -08:00
Yash Tibrewal
40422d5fa6
Merge master
2017-11-06 14:43:31 -08:00
Craig Tiller
9ab26feb68
Merge github.com:grpc/grpc into 50
2017-11-06 09:45:55 -08:00
Yuchen Zeng
89f86c08e2
Lower backup poll interval in async_end2end_test
2017-11-03 12:13:21 -07:00
Craig Tiller
baa14a975e
Update clang-format to 5.0
2017-11-03 09:09:36 -07:00
Yash Tibrewal
aae4ca01a3
Merge master
2017-11-02 11:19:16 -07:00
Vijay Pai
b611e249f3
Merge pull request #13216 from vjpai/tst_fixes
...
Remove unused code from thread_stress_test
2017-11-01 12:45:26 -07:00
Abhishek Kumar
8c2d222875
Merge pull request #13210 from y-zeng/end2end_fix
...
Set GRPC_CLIENT_CHANNEL_BACKUP_POLL_INTERVAL_MS for async_end2end_test
2017-11-01 12:07:40 -07:00
Yash Tibrewal
8bd88c459a
Merge master
2017-11-01 11:49:00 -07:00
Yuchen Zeng
0d573083b9
Add comments for setting the env variable
2017-11-01 11:34:15 -07:00
Vijay Pai
4afcf5b566
Remove unused code from thread_stress_test
2017-11-01 10:44:01 -07:00
Yuchen Zeng
452b987a0d
Set GRPC_CLIENT_CHANNEL_BACKUP_POLL_INTERVAL_MS for async_end2end_test
2017-10-31 19:54:38 -07:00
David Garcia Quintas
77827e1fb2
BG-poll very frequently to pick up subchannels's updates in LB tests
2017-10-31 19:26:08 -07:00
Yash Tibrewal
268685bcbd
Merge branch 'master' into testc++ize
2017-10-30 16:28:56 -07:00
Yuchen Zeng
9e6837d397
Merge pull request #12732 from y-zeng/connectivity_watcher
...
Client channel backup poller
2017-10-30 14:47:24 -07:00
Yuchen Zeng
cbb9296b72
Change the default interval to 5 seconds
2017-10-30 12:06:52 -07:00
Yuchen Zeng
7fa814fbeb
Fix timeouts
2017-10-30 12:06:52 -07:00
Yuchen Zeng
0bad30a244
Use backup pollser instead of connectivity watcher
2017-10-30 12:06:52 -07:00
Mark D. Roth
6e5ce7288d
Assume that subchannels start in state IDLE.
2017-10-27 09:37:41 -07:00
Yash Tibrewal
39aed1ae8b
Remove unnecessary extern Cs
2017-10-25 17:04:35 -07:00
kpayson64
1bf7207852
Merge pull request #13084 from kpayson64/cq_lambda
...
CompletionQueue DoThenAsyncNext
2017-10-25 10:28:02 -07:00
Ken Payson
42bd87e376
Adds gRPC Experimental CQ DoThenAsyncNext lambda API
2017-10-25 09:13:30 -07:00
Juanli Shen
cbdb5174ca
Remove duplicate message member in test
2017-10-23 14:44:52 -07:00
Yash Tibrewal
0ee7574732
Removing instances of exec_ctx being passed around in functions in
...
src/core. exec_ctx is now a thread_local pointer of type ExecCtx instead of
grpc_exec_ctx which is initialized whenever ExecCtx is instantiated. ExecCtx
also keeps track of the previous exec_ctx so that nesting of exec_ctx is
allowed. This means that there is only one exec_ctx being used at any
time. Also, grpc_exec_ctx_finish is called in the destructor of the
object, and the previous exec_ctx is restored to avoid breaking current
functionality. The code still explicitly calls grpc_exec_ctx_finish
because removing all such instances causes the code to break.
2017-10-18 17:12:19 -07:00
Alexander Polcyn
7a57b0c4a1
explicitly recycle every port after every test run
2017-10-13 17:01:32 -07:00
Vijay Pai
4f0cd0e82c
Add flow control to inproc transport so send needs a matching recv; fix
...
some tests that assumed some sends could always go out
2017-10-11 21:59:33 -07:00
Vijay Pai
ac8921be5e
Merge branch 'proxy_inproc' into proxy_e2e
2017-10-10 21:01:56 -07:00
Vijay Pai
07165cbaf2
Only put server to sleep when explicitly requested
2017-10-10 21:00:31 -07:00
Vijay Pai
a6294056c8
Run ProxyEnd2End tests (without proxy) for inproc transport
2017-10-10 20:47:54 -07:00
Vijay Pai
9f10a587a9
Make short deadlines actually expire
2017-10-10 14:59:32 -07:00
Vijay Pai
156e8bf617
Make sure to accept expected tags exactly once
2017-10-09 12:29:29 -07:00
Muxi Yan
03fc857a6f
Merge remote-tracking branch 'upstream/master' into fix-stream-compression-config-interface
2017-10-06 18:47:09 -07:00
Craig Tiller
abecd39477
Merge github.com:grpc/grpc into flowctl+millis
2017-10-06 08:46:39 -07:00
Vijay Pai
4bc0b2b661
Merge pull request #12852 from vjpai/rent
...
Reduce # of message sizes used in each async_end2end_test scenario
2017-10-05 18:08:03 -07:00
Vijay Pai
b83077bace
Merge pull request #12855 from vjpai/new_const
...
Add some const
2017-10-05 18:07:03 -07:00
Vijay Pai
f063f7951f
Add some const that is now allowed
2017-10-05 15:41:40 -07:00
Vijay Pai
541974a709
Eliminate magic #s, follow API
2017-10-05 15:16:22 -07:00
Vijay Pai
c4afc644f7
Reduce # of message sizes used in each scenario
2017-10-05 14:40:34 -07:00
Craig Tiller
ced7653a1c
Merge branch 'flowctlN' into flowctl+millis
2017-10-02 11:54:10 -07:00
Craig Tiller
1e868f0f95
Merge github.com:grpc/grpc into flowctl+millis
2017-09-29 11:18:26 -07:00
yang-g
3c00328b62
Add a simple test
2017-09-28 22:00:35 -07:00
Juanli Shen
fe40815682
Readd grpclb fallback
2017-09-27 12:27:20 -07:00
Muxi Yan
8fa4d15513
Fix C++ builds
2017-09-26 09:53:55 -07:00
Vijay Pai
2046d0b3c5
Add unary call mode to GenericStub to allow generic RPC with 1 CQ trip
2017-09-21 22:23:44 -07:00
Craig Tiller
6bfb8589ad
Merge github.com:grpc/grpc into flowctl+millis
2017-09-21 15:12:43 -07:00
Craig Tiller
ff58b27696
Make generic_test tolerant of encoding
2017-09-21 10:40:42 -07:00
Craig Tiller
c1f288dedb
Bug fixes, remove async e2e dependence on flow control size
2017-09-20 21:59:21 -07:00
David Garcia Quintas
588e36a3e3
Get rid of magic numbers
2017-09-18 20:01:27 -07:00
David Garcia Quintas
7d764673ef
Backends must be up before some grpclb tests start.
2017-09-18 19:10:54 -07:00
Ken Payson
01e83b55e4
Revert "Add fallback (use backends from resolver if can't reach balancer) to grpclb."
...
This reverts commit aba0a0a544 .
2017-09-13 19:45:07 -07:00
Juanli Shen
3bf7b714a5
Merge pull request #12187 from AspirinSJL/lb_fallback
...
Add LB fallback to use when we can't contact any balancer.
2017-09-13 10:46:44 -07:00
Juanli Shen
aba0a0a544
Add fallback (use backends from resolver if can't reach balancer) to grpclb.
2017-09-11 09:22:48 -07:00
Craig Tiller
55863ff527
Merge github.com:grpc/grpc into write_completion
2017-09-08 14:39:15 -07:00
David Garcia Quintas
c3c7e5548f
{grpclb,client_lb}_end2end: Fix epoll1 flakes
2017-09-07 14:24:58 -07:00
Craig Tiller
a8fc020e0f
Merge github.com:grpc/grpc into write_completion
2017-09-07 13:39:26 -07:00
Yuchen Zeng
b6ef6e9ff5
Merge pull request #12080 from y-zeng/connectivity
...
Reconnect channels automatically in C++ clients
2017-09-07 12:59:41 -07:00
Craig Tiller
ff952d292f
Merge github.com:grpc/grpc into write_completion
2017-09-07 12:52:44 -07:00
David Garcia Quintas
a28cca8447
Condition variables are not latches, again
2017-09-06 12:57:25 -07:00
Yuchen Zeng
b5dd3abad9
Increase the grace period in ReconnectChannel tests
2017-09-06 11:33:22 -07:00
Craig Tiller
a82b6dbac8
Merge github.com:grpc/grpc into write_completion
2017-09-05 12:47:07 -07:00
Nicolas "Pixel" Noble
fc49d6edab
Splitting gmock out of gtest.
2017-09-01 23:53:34 +02:00
Craig Tiller
9bebf8b22a
C++ API for write-through
2017-09-01 10:20:13 -07:00
Craig Tiller
8fd40d5ed9
Merge github.com:grpc/grpc into wc
2017-08-31 10:54:11 -07:00
Nicolas "Pixel" Noble
90df76b463
Merge branch 'master' of https://github.com/grpc/grpc into visibility
2017-08-30 23:13:25 +02:00
Nicolas "Pixel" Noble
2bc5e3ac40
Moving visibility and package creation to the build system.
2017-08-30 19:18:37 +02:00
Yuchen Zeng
eeea43fa24
Increase the grace period in ReconnectChannel tests
2017-08-28 22:57:28 -07:00
David Garcia Quintas
52ba957f83
Removed in_connectivity_shutdown from RR
2017-08-28 06:01:52 -07:00
Yuchen Zeng
4a11ecc076
Add ChannelConnectivityWatcher::Ref()/Unref()
2017-08-25 15:17:45 -07:00
Yuchen Zeng
b4481a9a13
Share one monitoring thread between channels
2017-08-24 03:13:42 -07:00
Yuchen Zeng
bfb4e06e3c
Check connectivity intermittently
2017-08-23 23:47:15 -07:00
Yuchen Zeng
a2e506e8d9
Avoid using timers
2017-08-22 20:46:52 -07:00
Yuchen Zeng
ee3e3310bb
Add reconnect channel tests
2017-08-22 18:56:25 -07:00
David Garcia Quintas
3732f869e1
PR comments
2017-08-22 11:17:13 -07:00
David Garcia Quintas
a2c1df4dcd
RR: Initialize subchannel connectivity state
2017-08-21 15:20:58 -07:00
David Garcia Quintas
ecabe09b89
Condition variables are not latches
2017-08-02 18:39:31 -07:00
David G. Quintas
433f7bce2d
Merge pull request #11948 from dgquintas/grpclb_fix_rr_shutdown_connectivity
...
Fix bug in handling of RR connectivity transition to SHUTDOWN
2017-07-28 11:59:17 -07:00
David Garcia Quintas
fc950fbeb5
Fix bug in handling of RR connectivity transition to SHUTDOWN
2017-07-27 19:56:30 -07:00
David Garcia Quintas
6a7935e14e
Watch the LB channel using the right initial conn. state
2017-07-27 19:24:52 -07:00
Mark D. Roth
e7751807e2
Use new protocol for reporting dropped calls to grpclb balancer.
2017-07-27 12:31:45 -07:00
David Garcia Quintas
c22c65b58d
grpclb: deal with all-drops serverlists
2017-07-25 14:22:20 -07:00
Mark D. Roth
e0778b2c18
Add cancellation to asynchronous security APIs.
2017-07-21 15:42:00 -07:00
Craig Tiller
764cdbaaf0
Merge github.com:grpc/grpc into write_completion
2017-07-17 16:32:50 -07:00
Vijay Pai
fd82a6cb4f
Merge pull request #11145 from vjpai/inproc3
...
In-process transport
2017-07-15 20:05:26 -07:00
Vijay Pai
8dc4f101cb
Disbable a specific check on async_end2end_test and revisit later if that expectation was really required by the API
2017-07-14 16:23:54 -07:00
Vijay Pai
3d7d5f4ed2
Create inproc transport, add relevant tests, exclude irrelevant tests
2017-07-14 16:23:54 -07:00
Craig Tiller
31af436d96
Fixes for async_end2end_test: Shutdown() can block
2017-07-14 15:48:17 -07:00
David G. Quintas
0c9ce72218
Merge pull request #11761 from dgquintas/lb_update_connector_fix
...
RR: fix subchannel list handing
2017-07-14 12:21:55 -07:00
David G. Quintas
24a4b31c07
Merge pull request #11726 from dgquintas/fix_grpclb_test_deadlocks
...
Fix deadlocks in grpclb_end2end_test
2017-07-14 12:17:54 -07:00
David Garcia Quintas
51d0ff0f3d
Fix deadlocks in grpclb_end2end_test
2017-07-13 18:43:14 -07:00
David Garcia Quintas
9a4ed686b1
Improved testing
2017-07-13 16:12:30 -07:00
Nicolas Noble
9877189e45
Merge pull request #11310 from nicolasnoble/import
...
Import mutations.
2017-07-13 13:39:58 -07:00
Sree Kuchibhotla
eede875bdb
Disable health check service in async end2end tests as it is causing flakes in mac
2017-07-11 13:55:58 -07:00
David G. Quintas
05f6d7e5ae
Merge pull request #11696 from dgquintas/rr_concurrent_updates_fix
...
Fix RR concurrent updates
2017-07-07 14:30:30 -07:00
Michael Lumish
4e014a2410
Merge pull request #11639 from murgatroid99/master_1.4.1_upmerge
...
Upmerge v1.4.x to master
2017-07-07 13:18:06 -07:00
David Garcia Quintas
4b2def361a
Fix RR concurrent updates
2017-07-06 15:40:35 -07:00
Noah Eisen
e09581de9a
Merge pull request #11557 from ncteisen/writelast-bugfix
...
WriteLast Bugfix
2017-07-06 14:53:02 -07:00
murgatroid99
882ba60fcb
Merge remote-tracking branch 'upstream/v1.4.x' into master_1.4.1_upmerge
2017-07-06 10:15:11 -07:00
David Garcia Quintas
3f223e342f
Move gtest include after proto include
2017-07-05 21:47:09 -07:00
ncteisen
36bb8a0006
s/hanging/pending/g
2017-07-05 11:21:25 -07:00
ncteisen
43f2b55a07
Add repro and fix to bidi case
2017-07-05 10:33:21 -07:00
ncteisen
be7b82ba5e
Add repro for coalescing bug
2017-07-05 10:33:21 -07:00
ncteisen
9bee3086c3
Make stream responses togglable via context
2017-07-05 10:33:21 -07:00
Mark D. Roth
96e51c8e56
Merge pull request #11648 from markdroth/c++_filter_fixes
...
Improvements to C++ filter API
2017-06-30 11:41:45 -07:00
Mark D. Roth
2faddbd639
Fix filter_end2end_test.
2017-06-30 07:10:10 -07:00
Nicolas "Pixel" Noble
5d80dc4985
Merge branch 'master' of https://github.com/grpc/grpc into import
2017-06-26 22:01:11 +02:00
David Garcia Quintas
05e15745d3
added test for RR connectivity state upon subchannels shutdown
2017-06-26 11:06:17 -07:00
David Garcia Quintas
64ea30fe5b
Fix RR policy connectivity state upon subchannels shutdown
2017-06-23 17:45:00 -07:00
Mehrdad Afshari
c02e39d14c
Merge pull request #9823 from mjkim/fix_unkown
...
Fix typos
2017-06-12 10:46:40 -07:00
Jan Tattermusch
7e91ebb41d
license fixes
2017-06-08 11:22:41 +02:00
Jan Tattermusch
4d5c3102a1
fix remaining license notices
2017-06-08 11:22:41 +02:00
Jan Tattermusch
7897ae9308
auto-fix most of licenses
2017-06-08 11:22:41 +02:00
David Garcia Quintas
87d5a3130d
Implement LB policy updates
2017-06-06 19:45:58 -07:00
Nicolas "Pixel" Noble
7bc55fdaa3
Merge remote-tracking branch 'ctiller/build-wtf' into import
2017-05-26 00:32:47 +02:00
Nicolas "Pixel" Noble
5a1d197f1c
Merge branch 'master' of https://github.com/grpc/grpc into import
2017-05-26 00:31:18 +02:00
Nicolas "Pixel" Noble
670d8bf675
Moving gtest to the end.
2017-05-25 21:25:02 +02:00
Nicolas "Pixel" Noble
6fa7236d24
Moving testing headers at the end.
2017-05-25 19:38:44 +02:00
Craig Tiller
840931eec9
More import fixes
2017-05-19 15:37:45 -07:00
Mark D. Roth
f91eb714c2
Change round_robin LB policy to use the addresses in the order given.
2017-05-19 15:19:14 -07:00
Nicolas "Pixel" Noble
af6c83f9e1
Adding dummy layering check option.
2017-05-19 01:53:56 +02:00
Mark D. Roth
d7389b418f
Implement grpclb drop support.
2017-05-17 12:22:17 -07:00
Nicolas "Pixel" Noble
0885f98863
Fixing mock test target.
2017-05-12 21:10:55 +02:00
Nicolas "Pixel" Noble
232e9b458b
Merge branch 'master' of https://github.com/grpc/grpc into import
2017-05-12 20:15:06 +02:00
yang-g
a044f6d3f5
Propagate deadline to GenericServerContext
2017-05-11 15:37:51 -07:00
Nicolas "Pixel" Noble
eb36b8ac77
Merge branch 'master' of https://github.com/grpc/grpc into import
2017-05-11 23:24:37 +02:00
Nicolas "Pixel" Noble
3726e3d37b
Moving gtest include down.
...
In some cases, depending on the direction of the wind, and the phase of the moon, gtest can interfere with protobuf badly with macros cross-pollution between the two projects. Moving the gtest inclusion at the end makes the problem go away.
2017-05-10 18:33:12 +02:00
Nicolas "Pixel" Noble
1e75dc8cad
Add end2end_test_lib.
2017-05-09 06:57:22 +02:00
Mark D. Roth
64d922ae87
Make sure we set deadline for the LB call even without a pick.
...
As part of this, get the deadline from a channel arg instead of pick_args.
2017-05-03 12:52:04 -07:00
Mark D. Roth
09e458c6cd
Implement client-side load reporting for grpclb.
2017-05-02 08:13:26 -07:00
David Garcia Quintas
0745356ab2
Apply slowdown factor to timeouts
2017-05-01 13:52:15 -07:00
David Garcia Quintas
04109e8f7d
BUILD and #include fixes
2017-04-28 13:03:35 -07:00
David Garcia Quintas
04911ca202
New version of grpclb end2end test
2017-04-27 16:32:09 -07:00
MakMukhi
c090c619c1
Merge pull request #10644 from MakMukhi/master
...
Added unit testing support.
2017-04-24 16:36:40 -07:00
Craig Tiller
ae1e29eed9
Get dep in the right place
2017-04-19 09:07:23 -07:00
Craig Tiller
0a458b599e
Fix Bazel build
2017-04-19 06:35:16 -07:00
Mahak Mukhi
443a75dd22
1. Added golden file test.
...
2. Added support for mock.
3. Sanity fix.
2017-04-14 15:33:55 -07:00
Mahak Mukhi
2814b5148e
formatting
2017-04-13 14:45:26 -07:00
Mahak Mukhi
e536eeb6d0
Added tests for uni-directional streaming RPCs.
2017-04-12 17:16:23 -07:00
Mahak Mukhi
31d92d42ff
Initial commit: Auto-generate GMOCK code for client stub.
2017-04-12 17:16:23 -07:00
Nicolas "Pixel" Noble
7c26eed838
Buildifier and wrapping test/cpp/* rules with our build system.
2017-04-13 02:03:22 +02:00
Craig Tiller
75bfb97548
Finish hybrid server stuff, ensure it gets tested
2017-04-11 17:55:12 -07:00
yang-g
f4c8addded
support C++ error_details
2017-04-07 15:52:16 -07:00
Craig Tiller
7a8232d773
review feedback
2017-04-03 10:59:42 -07:00
Yuxuan Li
bdc76ab37b
bug fix
2017-03-08 10:59:31 -08:00
Yuxuan Li
34894e4b1c
Implemented stream coalescing design
...
(RFC:https://github.com/grpc/proposal/pull/3 ). Add necessary
microbenchmarks to show reduced writes/iter for short streams. Add
necessary end2end test to test out newly added apis. Filter those tests
using *WithCoalescingApi*.
2017-03-08 10:59:31 -08:00
Yang Gao
dc720ca6bf
Merge pull request #9846 from yang-g/max_message_size
...
Stop receiving and add an error to batch when there is an error from lower level.
2017-02-27 12:40:04 -08:00
yang-g
23f777df08
When there is an error from filters (such as max recv message size too
...
large), add an error to the batch to avoid emitting new rpc on the
server side in C++.
2017-02-23 15:34:21 -08:00
Sree Kuchibhotla
43bca1be48
Add BUILD file for end2end tests too
2017-02-22 16:37:27 -08:00
Myungjun Kim
f17d163a9b
Fix typos
...
unkown -> unknown
fix unnecessary spacing
2017-02-23 01:55:44 +09:00
Sree Kuchibhotla
fac16f6d3d
Merge branch 'master' into surface_test_bazel
2017-02-21 08:50:31 -08:00
Sree Kuchibhotla
a3bc1efe4f
BUILD files for end2end tests
2017-02-17 21:05:54 -08:00
yang-g
076bac017b
Remove async
2017-02-07 13:50:36 -08:00
yang-g
13a537bcae
merge with head
2017-02-07 13:13:20 -08:00
Yang Gao
f4c45d7532
Merge pull request #9419 from danzh2010/shutdowntest
...
Change shutdown_test.cc to use credential provider API to test against different credential types
2017-02-06 22:27:13 -08:00
Jan Tattermusch
bd0b0546a6
windows compilation fixes
2017-02-02 00:01:09 +01:00
Dan Zhang
340bb83a59
Change shutdown_test.cc to use credential provider API to test against
...
different credential types.
2017-01-31 15:20:09 -05:00
yang-g
edcde054c6
Merge remote-tracking branch 'upstream/master' into health
2017-01-30 09:58:46 -08:00
Craig Tiller
68bb6a8453
Merge github.com:grpc/grpc into rollfwd
2017-01-27 06:52:13 -08:00
Craig Tiller
4edd56751f
Merge github.com:grpc/grpc into maxmsgsz
2017-01-26 13:50:14 -08:00
yang-g
a7198021a6
merge with head
2017-01-26 13:23:52 -08:00
Craig Tiller
7c70b6c144
Revert "Revert "Metadata handling rewrite""
...
This reverts commit 5e01e2ac97 .
2017-01-23 07:48:42 -08:00
Craig Tiller
5e01e2ac97
Revert "Metadata handling rewrite"
2017-01-20 18:11:52 -08:00
Craig Tiller
ffc843ddcb
Fix test
2017-01-20 15:54:45 -08:00
Craig Tiller
9d4fc31da4
Merge github.com:grpc/grpc into metadata_filter
2017-01-12 14:08:50 -08:00
Craig Tiller
95beab2284
Uncover the badness
2017-01-12 13:41:52 -08:00
yang-g
cc5910228d
manual revert of #8901
2017-01-11 11:10:43 -08:00
yang-g
35674af901
make test robust
2016-12-29 15:15:12 -08:00
yang-g
a3c95529c7
async works
2016-12-29 12:10:52 -08:00
yang-g
8e708b12cb
WIP
2016-12-29 11:44:36 -08:00
yang-g
50993b7a4c
async first take
2016-12-29 10:00:27 -08:00
yang-g
9bef0740a4
Add test for explicit option
2016-12-27 15:37:59 -08:00
yang-g
b74cf429fd
test pass
2016-12-27 15:37:59 -08:00
yang-g
ad32764219
sync test pass
2016-12-27 15:37:59 -08:00
Craig Tiller
ef6938477b
Merge branch 'slice_with_exec_ctx' into metadata_filter
2016-12-27 08:59:00 -08:00
Mark D. Roth
13f3574642
clang-format
2016-12-14 12:39:03 -08:00
Mark D. Roth
473ff83fac
Fix filter_end2end_test.
2016-12-14 08:21:12 -08:00
Craig Tiller
f658bf0e1b
Start resolving memory issues in C++ metadata
2016-12-08 14:11:47 -08:00
Craig Tiller
fbcd9a7344
Update server_crash_test to account for longer reconnect timeouts
2016-12-05 08:47:02 -08:00
Craig Tiller
3b45b8d60b
Revert "Test credentials provider update"
2016-11-29 12:31:14 -08:00
yang-g
8e9fc9bd0e
Test credentials provider update
2016-11-22 23:12:49 -08:00
Mark D. Roth
863113a0d9
Merge remote-tracking branch 'upstream/master' into service_config_json
2016-11-16 14:18:28 -08:00
Mark D. Roth
4bbdda4444
Allow getting LB policy name and service config in C++ API.
2016-11-09 14:40:22 -08:00
Vijay Pai
56540ba9f9
clang-format
2016-11-04 10:02:31 -07:00
Vijay Pai
1b87ddee0a
One more NULL->nullptr
2016-11-04 09:09:58 -07:00
Vijay Pai
b0a6be2b8f
Remove some unnecessary new/delete patterns
2016-11-04 07:51:25 -07:00
Vijay Pai
90102c2bfc
Eliminate unnecessary uses of new[]/delete[] that can be replaced
...
with vector
Also start eliminating uses of plain-old delete that are not helpful
2016-11-04 07:51:24 -07:00
Vijay Pai
a189b7b9f1
Make new file compliant with new standards
2016-11-02 17:49:42 -07:00
Vijay Pai
739a93e47f
Merge branch 'master' into turn_it_to_11
2016-11-02 16:00:52 -07:00
Vijay Pai
320ed13d3e
Deprecate grpc::thread and sync in favor of std::thread,mutex,etc
2016-11-01 17:16:55 -07:00
Vijay Pai
713c7b87e1
clang-format
2016-11-01 16:33:18 -07:00
Vijay Pai
c0b2acb1a0
Use C++11 final and override
2016-11-01 16:31:56 -07:00
Mark D. Roth
3f265857f4
Fix memory leak.
2016-10-31 14:42:22 -07:00
Mark D. Roth
6df607591c
Fix portability problems.
2016-10-31 14:39:45 -07:00
Mark D. Roth
fd635add1c
clang-format
2016-10-31 14:20:56 -07:00
Mark D. Roth
7e0c2f8301
Merge remote-tracking branch 'upstream/master' into lb_policy_name_channel_arg
2016-10-31 14:20:01 -07:00
Sree Kuchibhotla
1e088b4219
Merge branch 'master' into rpc_mgr
2016-10-28 17:34:55 -07:00
Sree Kuchibhotla
612ca22ff3
Merge branch 'master' into rpc_mgr
2016-10-27 15:14:08 -07:00
Craig Tiller
3d357d901c
Merge github.com:grpc/grpc into buffer_pools_for_realsies
2016-10-26 20:52:03 -07:00
Mark D. Roth
452287607f
Add test for setting LB policy via C++ API.
2016-10-26 14:54:56 -07:00
Mark D. Roth
fb809b7850
Merge remote-tracking branch 'upstream/master' into resolver_channel_args
2016-10-26 09:12:25 -07:00
Mark D. Roth
e3a21005bf
Fix propagation of channel args for insecure channels.
2016-10-24 13:29:05 -07:00
murgatroid99
b516cadc2a
Merge branch 'master' into uv_core_transport
2016-10-21 15:54:42 -07:00
Sree Kuchibhotla
c5fb957e50
Merge branch 'master' into rpc_mgr
2016-10-21 14:38:21 -07:00
Craig Tiller
8f67b647fd
Merge github.com:grpc/grpc into buffer_pools_for_realsies
2016-10-20 15:53:04 -07:00
murgatroid99
59f347e125
Merge branch 'master' into uv_core_transport
2016-10-19 13:53:21 -07:00
Sree Kuchibhotla
556aebb1e0
Merge branch 'master' into rpc_mgr
2016-10-18 14:59:24 -07:00
Vijay Pai
9fa9315d62
Merge remote-tracking branch 'upstream/master' into fc_1dstream
2016-10-18 12:15:08 -07:00
Craig Tiller
20afa3d7c9
BufferPool --> ResourceQuota
2016-10-17 14:52:14 -07:00
Sree Kuchibhotla
c37a8a56df
Fix test
2016-10-13 15:40:15 -07:00
Vijay Pai
96e03110db
clang-format
2016-10-13 14:09:16 -07:00
Vijay Pai
8d08b1d9ee
Test all split streamed variations
2016-10-13 12:19:30 -07:00
Vijay Pai
65a9ef16ed
Fix channel/stub for dup service use
2016-10-13 12:00:32 -07:00
Sree Kuchibhotla
e4996d6c43
Merge branch 'master' into rpc_mgr
2016-10-13 11:18:09 -07:00
Vijay Pai
61536a7371
Making split streaming testable
2016-10-13 11:04:57 -07:00
Craig Tiller
c99945e44c
Merge branch 'direct-calls' into buffer_pools_for_realsies
2016-10-10 10:20:48 -07:00
Craig Tiller
fdc2b10dce
Merge github.com:grpc/grpc into direct-calls
2016-10-10 10:16:35 -07:00
murgatroid99
fde76d7996
Merge branch 'master' into uv_core_transport
2016-10-07 15:09:53 -07:00
Mark D. Roth
4bcdd73df6
Merge remote-tracking branch 'upstream/master' into fail_fast
2016-10-06 07:56:05 -07:00
David Garcia Quintas
e5b4c26ef7
more usage of std::string
2016-10-04 13:44:18 -07:00
Craig Tiller
db1a5cce47
Buffer pool C++ wrapper
2016-09-28 14:22:12 -07:00
Sree Kuchibhotla
892dbf4d95
Make settings configurable
2016-09-27 19:42:27 -07:00
Mark D. Roth
9477724003
Change C++ API to expose wait_for_ready instead of fail_fast.
2016-09-27 13:07:00 -07:00
murgatroid99
08b0fab426
Merge branch 'master' into uv_core_transport
2016-09-23 14:35:49 -07:00
Craig Tiller
1edc77c7c6
Merge github.com:grpc/grpc into direct-calls
2016-09-20 11:02:51 -07:00
murgatroid99
bcc60f75d4
Merge branch 'master' into uv_core_transport
2016-09-16 13:44:28 -07:00
yang-g
d5fba280bb
make inline metadata value clearer
2016-09-16 10:29:16 -07:00
yang-g
4b4571ab88
Add a test for nonbin header containing binary value
2016-09-15 23:01:09 -07:00
yang-g
c580af37e0
Add a check for metadata from auth plugin
2016-09-15 15:33:32 -07:00
Craig Tiller
762e72ef7b
Merge github.com:grpc/grpc into direct-calls
2016-09-14 11:16:51 -07:00
Craig Tiller
a51f54192a
Merge pull request #7559 from dgquintas/codegen_cleanse
...
Removed references to public APIs from codegen/
2016-09-13 19:40:43 -07:00
Craig Tiller
44b12f9e23
clang-format
2016-09-08 10:06:14 -07:00
Craig Tiller
aef13f78c7
Merge branch 'grand-unified-closures' into direct-calls
2016-09-08 10:05:42 -07:00
Nicolas "Pixel" Noble
5928bff0c7
Merge branch 'v1.0.x' of https://github.com/grpc/grpc into manual-upmerge
2016-09-08 01:58:49 +02:00
Craig Tiller
bd37a21c26
Cleanup, debug support
2016-09-07 11:28:56 -07:00
David Garcia Quintas
d10f1775eb
Merge branch 'master' of github.com:grpc/grpc into codegen_cleanse
2016-09-03 12:42:02 +02:00
murgatroid99
7c5befd86b
Change UnimplementedService to UnimplementedEchoService in echo.proto
2016-09-01 17:09:47 -07:00
David Garcia Quintas
f3581bf90a
Merge branch 'master' of github.com:grpc/grpc into codegen_cleanse
2016-08-30 04:45:50 -07:00
Vijay Pai
d4d5f4cd53
clang-format
2016-08-29 16:59:21 -07:00
Vijay Pai
a9c0d7f88b
Change names to StreamedUnary, ServerUnaryStreamer, etc. Use a templated method handler since most code shared between the new StreamedUnary and the existing BidiStreaming. Eliminate the separate enum case for streamed unary. Return a status failure if a StreamedUnary method handler doesn't actually do a write (since that is
...
violating the appearance of unary-ness)
2016-08-29 16:42:04 -07:00
Vijay Pai
ac4113bef1
Merge branch 'master' into fc_unary
2016-08-25 14:49:18 -07:00
murgatroid99
6257159a3a
Merge branch 'port_platform_split' into uv_core_transport
2016-08-22 14:57:22 -07:00
murgatroid99
623dd4f556
Renamed GPR_ constants to GRPC_ in iomgr/port.h
2016-08-08 17:31:27 -07:00
murgatroid99
5407089b37
Separate out iomgr-specific constants into a separate header
2016-08-08 17:01:18 -07:00
Vijay Pai
5d94118d0d
clang-format
2016-08-04 11:48:47 -07:00
Vijay Pai
ff91dea149
Be able to specify FCUnaryService just like AsyncService so that all
...
relevant methods get treated this way.
2016-08-04 11:07:50 -07:00
Vijay Pai
666681612e
Merge branch 'master' into fc_unary
2016-08-04 09:44:51 -07:00
David Garcia Quintas
1f32ae4e84
Merge branch 'master' of github.com:grpc/grpc into codegen_cleanse
2016-08-02 10:24:44 -07:00
Mark D. Roth
3ac6fc1b97
Merge branch 'filter_call_init_failure' into filter_api
2016-08-02 10:07:48 -07:00
Nicolas "Pixel" Noble
8302b123de
Merge branch 'v1.0.x' into manual-upmerge
...
Conflicts:
src/ruby/pb/test/client.rb
src/ruby/pb/test/server.rb
tools/dockerfile/test/php7_jessie_x64/Dockerfile
2016-07-29 22:48:16 +02:00
David Garcia Quintas
c79b0650d2
removed codegen/log.h
2016-07-27 21:11:58 -07:00
Vijay Pai
2d04dd827c
Change API for next message size to allow a bool return value for failure
...
cases.
2016-07-27 11:35:56 -07:00
Vijay Pai
efef0d29c5
Merge pull request #7380 from nicolasnoble/no-c++11-threads
...
Avoid using certain C++11-isms with grpc::thread, as it's not necessarily std::thread.
2016-07-27 09:28:15 -07:00
kpayson64
cc961b6c5a
Merge pull request #7020 from rjshade/assert_not_expect
...
ASSERT vector size before directly accessing first element
2016-07-25 14:36:11 -07:00
Vijay Pai
0a1c598986
Merge branch 'master' into fc_unary
2016-07-21 11:34:02 -07:00
Nicolas Noble
f6aefa3ea6
Merge pull request #7400 from yang-g/ga_branch2
...
Cherrypick #7319 into v1.0.x
2016-07-21 11:28:44 -07:00
Yuchen Zeng
77b74258b5
Revert unnecessary deletions
2016-07-19 11:53:37 -07:00
Craig Tiller
5ca7e47493
Merge pull request #6737 from ctiller/delayed-write
...
Delay beginning most writes until we enter poll()
2016-07-19 09:25:49 -07:00
Yuchen Zeng
1318479011
Separate generated file and protobuf dependency
2016-07-18 13:07:42 -07:00
Robbie Shade
c51a4833ce
Merge branch 'master' into assert_not_expect
2016-07-15 15:06:14 -04:00
Mark D. Roth
30a4a544be
Merge branch 'filter_call_init_failure' into filter_api
2016-07-15 09:16:05 -07:00
yang-g
807387641f
prevent spurious wake up and unstarted/already shutdown server
2016-07-14 22:59:39 -07:00
Craig Tiller
13d3e3b7e2
Merge pull request #6737 from ctiller/delayed-write
...
Delay beginning most writes until we enter poll()
2016-07-14 19:31:47 -07:00
yang-g
6ec11f2acd
prevent spurious wake up and unstarted/already shutdown server
2016-07-14 14:53:35 -07:00
yang-g
05573f1692
Make Server::Wait work for async only server.
2016-07-13 22:23:19 -07:00
Nicolas "Pixel" Noble
e053e730d2
Avoid using certain C++11-isms with grpc::thread, as it's not necessarily std::thread.
2016-07-14 00:42:07 +02:00
Mark D. Roth
14bed44db2
Merge remote-tracking branch 'upstream/master' into filter_api
2016-07-12 14:09:41 -07:00
yang-g
e89dc6ceb6
Make Server::Wait work for async only server.
2016-07-11 15:48:01 -07:00
Mark D. Roth
4f0b06e747
Move use of nullptr into grpc namespace, so that the hack in config.h
...
can be used.
2016-07-11 09:29:56 -07:00
Mark D. Roth
33e5cbbbb8
Add include to fix gcc-4.4 problem.
2016-07-11 08:00:28 -07:00
Craig Tiller
6c8619bbe7
Better fix for flow control bug
2016-07-07 10:41:48 -07:00
Mark D. Roth
98aa0c13f0
Merge branch 'filter_call_init_failure' into filter_api
2016-07-01 14:17:55 -07:00
Craig Tiller
eda85c6765
Expunge all references to zookeeper
2016-07-01 12:45:19 -07:00
Mark D. Roth
ab950ee7c5
Move channel_filter.h from include/ tree to src/ tree.
2016-06-29 14:51:53 -07:00
Mark D. Roth
89ebe55985
Merge branch 'filter_call_init_failure' into filter_api
2016-06-29 07:50:18 -07:00
Mark D. Roth
07cd9c9e06
Initial attempt at a C++ wrapper for the C grpc_transport_op and
...
grpc_transport_stream_op structs.
2016-06-27 10:14:38 -07:00
Craig Tiller
f467846b1b
Merge github.com:grpc/grpc into reuse_port
2016-06-26 09:54:53 -07:00
Jan Tattermusch
a5cae9bd64
Merge pull request #6798 from jboeuf/fix_3803
...
Fix #3803
2016-06-24 16:14:02 -07:00
vjpai
c0c38b1f19
Make the FCUnary class actually work and test it
2016-06-23 17:27:11 -07:00
vjpai
fcb98a578c
Add NextMessageSize method to all readable streams as an upper-bound
...
on the actual message size.
Rename Size of FCUnary to NextMessageSize for consistency
2016-06-23 13:18:50 -07:00
Robbie Shade
820c1f3fda
ASSERT vector size before directly accessing first element
2016-06-23 14:31:28 -04:00
Craig Tiller
04a468122f
Add comment
2016-06-21 09:16:57 -07:00
Craig Tiller
d263b925e8
Make sure to poll cq
2016-06-21 09:15:57 -07:00
Vijay Pai
6ab4788ae9
clang-format changes
2016-06-17 00:31:23 -07:00
Mark D. Roth
9fe5ef5f9d
Removed unnecessary comments. Added connection counter to test.
2016-06-16 14:26:04 -07:00
Mark D. Roth
f5bbff9c8e
Fix portability issues.
2016-06-16 12:56:07 -07:00
Mark D. Roth
905227049b
Remove unnecessary code from test.
2016-06-16 11:40:25 -07:00
Mark D. Roth
f9c1f7a412
clang-format
2016-06-16 10:57:28 -07:00
Mark D. Roth
c008b33c18
Pass channel args to ChannelData ctor and ChannelData to CallData ctor.
2016-06-16 10:39:39 -07:00
Mark D. Roth
8a1a5976c7
Fixed test.
2016-06-16 10:22:26 -07:00
Mark D. Roth
c459ecf7c9
- fix build problems
...
- make changes suggested by reviewer
- add test (not working yet)
2016-06-16 09:17:49 -07:00
Vijay Pai
b31a9a0900
Include <cinttypes> for PRIuPTR. Not clear why this is needed.
2016-06-16 07:50:20 +00:00
Vijay Pai
b9e927afcc
Merge branch 'master' into wheezy
2016-06-15 22:57:21 -07:00
Vijay Pai
20bf126da6
clang-format
2016-06-15 22:21:48 -07:00
vjpai
e44d53757a
De-lambda-ify
2016-06-15 22:15:00 -07:00
Vijay Pai
679c75f0a6
Deal with issues surrounding const members of classes used in
...
containers
2016-06-15 13:10:32 -07:00
Vijay Pai
a63271c77f
Deal with to_string, proper usage of nullptr, and lack of map::emplace
2016-06-15 12:56:38 -07:00
Jan Tattermusch
8fb6c924b5
Merge pull request #6875 from y-zeng/log_check
...
Add format check for gpr_log and gpr_asprintf, add gpr_strpad
2016-06-14 19:31:05 -07:00
Jan Tattermusch
136307756c
Merge pull request #6438 from y-zeng/reflection_separate_lib
...
Proto server reflection
2016-06-13 14:16:06 -07:00
vjpai
97da6473b4
Manual clang-format
2016-06-13 09:56:26 -07:00
Yuchen Zeng
bcf5023bb6
Fix zookeeper_test
2016-06-10 16:22:57 -07:00
Yuchen Zeng
ed81a88c3e
Merge remote-tracking branch 'upstream/master' into log_format_check
2016-06-10 15:46:23 -07:00
Yuchen Zeng
beaa35724c
Fix type mismatch for type_size
2016-06-10 15:46:14 -07:00
Yuchen Zeng
0ba114408e
Fix gpr_log format mismatches in c++ tests
2016-06-10 15:15:44 -07:00
Vijay Pai
15855f3e7f
Switch server builder plugin API to something that will work with gcc4.4
2016-06-10 12:25:32 -07:00
Yuchen Zeng
d23710787b
Merge remote-tracking branch 'upstream/master' into reflection_separate_lib
2016-06-07 15:00:52 -07:00
yang-g
000aa457dc
add a test with empty request
2016-06-07 13:08:39 -07:00
Jan Tattermusch
570408fd4c
Merge pull request #6741 from yang-g/its_ok_to_have_no_read_on_cancelled_call
...
Let Next set ok=true when receiving error status
2016-06-07 10:54:02 -07:00
Yuchen Zeng
0601df3a04
Move reflection src/hdr to src/cpp/ext include/grpc++/ext
2016-06-06 13:08:06 -07:00
Yuchen Zeng
1495cb5b24
Addressed reveiw comments about naming
2016-06-06 10:58:29 -07:00
Julien Boeuf
38c0cdee34
Fix double-free issue for optional_message.
...
Also better end to end testing of plumbing of plugin error message.
2016-06-06 14:46:08 +02:00
yang-g
17487f9a22
Make grpc++ independent of protobuf
2016-06-03 15:21:15 -07:00
Jan Tattermusch
2ff798629c
Merge pull request #6664 from dklempner/server_builder_plugin_test
...
Fix a missing initialization
2016-06-02 20:28:39 -04:00
yang-g
15759f610e
Let Next set ok=true when receiving error status
2016-06-01 11:21:27 -07:00
Craig Tiller
c4c6ecf8e9
Merge github.com:grpc/grpc into test_affine
2016-05-23 12:48:55 -07:00
Craig Tiller
bc7593de7a
Revert "Revert "Remove spam""
...
This reverts commit e76528ce26 .
2016-05-21 13:05:44 -07:00
Craig Tiller
34c6e87598
Simpler trick to force a listening cq
2016-05-21 13:05:01 -07:00
Craig Tiller
e76528ce26
Revert "Remove spam"
...
This reverts commit 3f3312e7e9 .
2016-05-21 12:43:17 -07:00
Craig Tiller
3f3312e7e9
Remove spam
2016-05-21 12:35:29 -07:00
Craig Tiller
ae09d9dca9
Fixes and code simplification
2016-05-20 22:23:37 -07:00
Yuchen Zeng
91c51a7aba
Add proto_server_reflection_test
2016-05-20 14:48:08 -07:00
Craig Tiller
718ce51af8
Fix server plugin test
2016-05-20 10:44:23 -07:00
Craig Tiller
e004958fd6
Fix formatting, mem leak, stall
2016-05-20 10:31:09 -07:00
Craig Tiller
aae6c2cb96
Fix server plugin test
2016-05-20 08:58:30 -07:00
David Klempner
b941d5a4aa
Fix a missing initialization
2016-05-19 21:00:47 -07:00
Julien Boeuf
a4880374f9
Merge branch 'master' of github.com:grpc/grpc into credentials_refactoring
2016-05-18 22:12:43 -07:00
Craig Tiller
9766f4f424
Merge github.com:grpc/grpc into test_affine
2016-05-18 16:55:35 -07:00
Craig Tiller
f7a670fe6d
Merge branch 'server_channel_affinity' of github.com:sreecha/grpc into affine
2016-05-14 13:05:41 -07:00
David Klempner
6fb122dc6e
Add calls to grpc_recycle_unused_port to two of the tests which call
...
grpc_pick_unused_port a lot.
2016-05-13 15:24:17 -07:00
Yuchen Zeng
f86bbdefc9
Merge pull request #6373 from y-zeng/server-builder-plugin
...
Server builder plugin
2016-05-11 17:26:29 -07:00
Julien Boeuf
bae6a4cb43
Merge branch 'master' of https://github.com/grpc/grpc into credentials_refactoring
2016-05-10 15:26:17 -07:00
Sree Kuchibhotla
8dbe2cb071
Merge branch 'master' into server_channel_affinity
2016-05-10 10:33:25 -07:00
yang-g
39e71c33d1
fix compiling error
2016-05-10 10:21:41 -07:00
Yuchen Zeng
26a1785cfc
Resolve conflicts
2016-05-06 15:50:15 -07:00
Yuchen Zeng
7d099a5c90
Fix naming and comment problems
2016-05-06 13:21:36 -07:00
yang-g
080528abb7
Add parsing back to protobuf example
2016-05-06 13:12:00 -07:00
yang-g
4c07008610
Add a test for server returning error with debug info in trailer.
2016-05-05 23:35:20 -07:00
Julien Boeuf
8ca294e417
Refactoring the core security code.
...
As opposed to a flat directory, we now have the following structure:
- security
-context
- credentials
- composite
- fake
- google_default
- iam
- jwt
- oauth2
- plugin
- ssl
- transport
- util
We have not refactored the test code yet but this PR is already large
enough...
2016-05-04 15:51:28 -07:00
Craig Tiller
e4d2748f2f
Fix async_end2end_test flow control
...
Completion queues + flow control + single threading is hard.
We need a read outstanding on a call to grant flow control tokens to the
remote end.
To do that we need to request a read *before* we wait for the write to
be finished, otherwise, in the case of a large write we'll block waiting
for flow control tokens.
Built on #6402
2016-05-03 12:19:33 -07:00
Yuchen Zeng
3b8f3354de
Add plugins at the time of static initialization
2016-05-03 12:18:13 -07:00
Vijay Pai
d7b1e704a8
Cover large message sent securely or insecurely over async
2016-05-02 15:10:21 -07:00
Vijay Pai
df8b62cea7
Add coverage for secure async end2end testing
2016-05-02 14:34:24 -07:00
Yuchen Zeng
c049035bed
Add GRPC_ prefix for macros
2016-04-29 14:05:08 -07:00
Yuchen Zeng
018bf1a864
modified has_async_methods and has_sync_methods of TestServerBuilderPlugin
2016-04-29 13:39:17 -07:00
Yuchen Zeng
a42ec21341
Server builder plugin
2016-04-29 13:05:36 -07:00
Sree Kuchibhotla
1f5e262589
Add the option of adding a non-listening server completion queue. This makes writing certain test cases (like hybrid_end2end tests) easier
2016-04-21 12:28:15 -07:00
Craig Tiller
eb9b6dbf11
Merge branch 'master' into ignore_connectivity
2016-04-04 23:28:28 -07:00
Craig Tiller
75dbc1eb67
Fixes
2016-04-01 13:01:26 -07:00
Craig Tiller
399b3c42de
Fix client_crash_test, implement idempotency, fail_fast for C++
2016-04-01 12:24:18 -07:00
Craig Tiller
1a2c5aa9ef
Merge github.com:grpc/grpc into cleaner-posix2
2016-04-01 07:18:35 -07:00
Jan Tattermusch
4da87600dc
Merge pull request #6041 from vjpai/i_know_virtual_destructors
...
Add virtual destructor to satisfy a requirement of some compilers
2016-03-31 17:54:43 -07:00
Craig Tiller
4c43ed325c
Merge github.com:grpc/grpc into cleaner-posix2
2016-03-31 13:12:41 -07:00
vjpai
bd06e441cc
Add virtual destructor to satisfy a requirement of some compilers
2016-03-31 09:33:51 -07:00
Craig Tiller
6169d5f7b0
Update copyrights
2016-03-31 07:46:18 -07:00
Craig Tiller
e50d7be28c
Merge github.com:grpc/grpc into cleaner-posix2
2016-03-30 08:34:37 -07:00
Craig Tiller
f45496fdb0
Fix include path
2016-03-30 07:41:19 -07:00
Vijay Pai
98f2f754b8
Used TYPED_TEST to parametrize
...
Include all 4 sync/async client/server combos
2016-03-29 00:54:11 -07:00
Vijay Pai
40d1a2cb87
clang-format
2016-03-29 00:38:09 -07:00
Vijay Pai
bbbbf621e4
Add a concurrent test for sync client, async server case
2016-03-29 00:35:26 -07:00
Craig Tiller
8a03448a8c
Merge github.com:grpc/grpc into cleaner-posix2
2016-03-28 16:09:04 -07:00
Craig Tiller
9533d042d4
Fix includes
2016-03-25 17:11:06 -07:00
Craig Tiller
f40df23eeb
Auto-changes
2016-03-25 13:38:14 -07:00
yang-g
f64befd27f
Make a copy of ByteBuffer when writing
2016-03-21 14:04:10 -07:00
Craig Tiller
7cd6ed7da3
Merge github.com:grpc/grpc into cleaner-posix2
2016-03-16 07:53:26 -07:00
Jan Tattermusch
39b082ae8c
Merge pull request #5652 from grpc/revert-5599-revert-5572-srv_ctx
...
Revert "Revert "Properly integrate async API with server-side cancellations.""
2016-03-15 14:03:54 -07:00
Paul Querna
47d841de4d
Add support for IP Addresses in Subject Alt Names.
2016-03-14 16:40:17 -07:00
Craig Tiller
4560bda1da
Merge github.com:grpc/grpc into cleaner-posix2
2016-03-07 20:17:10 -08:00
Sree Kuchibhotla
b0d1567e8e
Revert "Revert "Properly integrate async API with server-side cancellations.""
2016-03-07 10:51:02 -08:00
Sree Kuchibhotla
edd96e4926
Revert "Properly integrate async API with server-side cancellations."
2016-03-04 14:32:50 -05:00
Dan Born
51221f1e7e
clang reformat.
2016-03-03 17:44:50 -08:00
Dan Born
f2f7d57c01
Allow use of alternative credential types.
2016-03-03 17:26:12 -08:00
Vijay Pai
dbf47fabd4
Better comments.
2016-03-03 16:25:06 -08:00
Vijay Pai
2e729387f7
clang-format
2016-03-03 14:22:12 -08:00
Vijay Pai
13ee2f2df3
Properly integrate async API with server-side cancellations.
...
There is a comment above IsCancelled that says when it is ok to use this.
2016-03-03 13:57:32 -08:00
Yang Gao
e788e8bf8d
Merge pull request #5523 from vjpai/e2e_stc
...
Fix ServerTryCancel in end2end tests
2016-03-02 07:45:45 +00:00
Vijay Pai
6c016efa34
ServerTryCancel was not actually respecting the API since it
...
could be an arbitrary amount of time between when the cancel is tried
and actually observable.
2016-03-01 16:27:53 -08:00
Sree Kuchibhotla
8d543e8e30
Fix ResponseStreamServerCancelAfter test flake
2016-02-29 18:22:25 -08:00
Craig Tiller
7c07aacb0f
Fix async e2e
2016-02-25 20:18:53 -08:00
Vijay Pai
bdfec2c86c
SimultaneousReadWritesDone test was not observing the contract on the
...
streaming API. In particular, Finish should not be called until the client
is sure that there is no more message to be read (as documented in
the comments for ClientStreamingInterface::Finish)
2016-02-25 11:51:21 -08:00
yang-g
ad0df7bf1f
Discard the read buffer on stream error
2016-02-22 10:00:20 -08:00
Craig Tiller
fc6fec2a2d
Merge pull request #5258 from vjpai/poll_override2
...
Avoid a race when overriding default poll function
2016-02-21 22:59:52 -08:00
yang-g
4c8aed3dba
Add a helper to return all the secure types
2016-02-19 00:19:39 -08:00
yang-g
17197ddc71
Revert "make an enum"
...
This reverts commit 5152cd29f8 .
2016-02-19 00:04:22 -08:00
yang-g
5152cd29f8
make an enum
2016-02-18 16:37:51 -08:00
yang-g
7d2a3e1917
Refactor end2end_test. Make the credentials a separate library.
2016-02-18 15:41:56 -08:00
Vijay Pai
b65eda4c88
Make the poll override function assert on non-zero timeout if invoked
...
from the end2end test thread itself (done by adding a TLS on that thread)
Also clang-format
2016-02-16 13:49:22 -08:00
Vijay Pai
018879aa9a
Set up poll overrides
2016-02-16 09:20:50 -08:00
vjpai
cf4daebe27
Comment the requirements for changing grpc_poll_function and do
...
poll overrides in such a way as to avoid polling races
2016-02-15 02:33:54 -08:00
yang-g
a3c968d9c2
Merge remote-tracking branch 'upstream/master' into inherit_from_grpc_library
2016-02-12 14:54:16 -08:00
Craig Tiller
a7d41147ea
Merge github.com:grpc/grpc into bad_metadata
2016-02-12 10:13:52 -08:00
yang-g
d59ad7ef39
Provide explicit API for user to set user agent string prefix
2016-02-10 12:42:53 -08:00
Craig Tiller
45551e0c99
Fix sanity
2016-02-08 14:22:40 -08:00
Sree Kuchibhotla
001db590ff
Modify the test to have large number of threads receiving the RPCs and a
...
smaller number of threads sending the RPCs. This increases the
likelyhood of race-conditions on receiving threads.
2016-02-08 10:57:41 -08:00
Craig Tiller
3ad28d0f1c
Merge pull request #4828 from vjpai/async_thread_stress_test
...
Introduce thread stress test for async RPCs
2016-02-04 11:04:22 -08:00
Yang Gao
0789c49566
Merge pull request #5042 from ctiller/compile
...
Fix clang3.7/tsan compile failure
2016-02-04 09:18:02 -08:00
Vijay Pai
0a3a766960
Give tsan a chance
2016-02-04 07:32:29 -08:00
Vijay Pai
912fe05ed3
Merge branch 'master' into async_thread_stress_test
2016-02-03 16:23:45 -08:00
Vijay Pai
feef8be5ae
clang-format
2016-02-03 16:21:25 -08:00
Craig Tiller
6f87164f3c
Properly handle "." in metadata
2016-02-03 16:15:31 -08:00
Vijay Pai
63b28447e8
Remove the command-line flags
2016-02-03 15:40:06 -08:00
Vijay Pai
490e5023d7
Fix a typecast...
2016-02-03 15:37:03 -08:00
Vijay Pai
e51d29d93c
Remove some std:: so that grpc:: will be used by default when available
2016-02-03 12:00:09 -08:00
Vijay Pai
9f3bbb00d8
Generalize namespace for ParseCommandLineFlags
2016-02-03 11:41:50 -08:00
Vijay Pai
d10bbb63f8
Refactor to favor composition over inheritance
...
Also make num_threads and num_rpcs as command-line flags
2016-02-03 11:26:23 -08:00
Craig Tiller
e1c2d6a6df
Fix clang3.7/tsan compile failure
2016-02-03 11:18:29 -08:00