Commit Graph

1302 Commits

Author SHA1 Message Date
Yash Tibrewal e2361a4751 Add server interceptors in end2end_test 2018-11-01 14:06:43 -07:00
Yash Tibrewal d736b1d309 Refactor tests slightly 2018-11-01 12:30:40 -07:00
Yash Tibrewal 3ec20b75ed Add tests for global interceptor 2018-10-31 14:21:25 -07:00
Vijay Pai 47d0d5bf1f Merge branch 'master' into server_callback 2018-10-30 12:29:35 -07:00
Mark D. Roth 36ac496c35
Merge pull request #17046 from markdroth/health_check_client_fix
Fix handling of call context in health check call batch payload.
2018-10-30 07:03:28 -07:00
Mark D. Roth 3465dd0cbf
Merge pull request #17010 from grpc/revert-16996-revert-16912-fail_rpcs_on_transient_failure
Revert "Revert "Fail wait_for_ready=false RPCs when channel is in TRANSIENT_FAILURE.""
2018-10-30 06:38:15 -07:00
Mark D. Roth 8352f9d274 Fix handling of call context in health check call batch payload. 2018-10-29 14:11:08 -07:00
Vijay Pai 84e763f10a Experimental C++ server callback unary API 2018-10-29 13:41:25 -07:00
Yash Tibrewal 85ddf5c713 Get ClientContext included with ChannelInterface, and slight more cleanup 2018-10-29 00:14:05 -07:00
Yash Tibrewal 01313976e1
Merge pull request #16842 from yashykt/interceptors
Experimental API for Client and Server Interception
2018-10-28 23:36:59 -07:00
Yash Tibrewal d21a175b28 Revert "Add dummy interceptors to end2end_test and async_end2end_test"
This reverts commit d075719477.
2018-10-27 19:36:49 -07:00
Yash Tibrewal d075719477 Add dummy interceptors to end2end_test and async_end2end_test 2018-10-27 00:22:22 -07:00
Yash Tibrewal a55d60056b Fix build 2018-10-26 17:16:17 -07:00
Yash Tibrewal 1ea195b6f3 Reviewer comments except for void * fixed 2018-10-26 16:11:48 -07:00
ncteisen bc44c5e353 Add GetServer to channelz cpp 2018-10-26 12:58:04 -07:00
Yash Tibrewal cc21d32c77 Some cleanup 2018-10-26 00:13:55 -07:00
Yash Tibrewal 560963bd8b Add sync unknown method test 2018-10-25 22:25:49 -07:00
Yash Tibrewal 312feb4202 Adding generic rpc and unimplemented rpc test for server interceptors 2018-10-25 21:43:49 -07:00
Yash Tibrewal 3896dabb85 Merge branch 'master' into interceptors 2018-10-25 19:50:10 -07:00
Yash Tibrewal a094b7b312 Added server async tests 2018-10-25 19:24:30 -07:00
Spencer Fang 2808bd0ba0 Use forwarding LB test policy. Fix trailer interception code. 2018-10-25 15:47:13 -07:00
Mark D. Roth 2cff9ca408
Revert "Revert "Fail wait_for_ready=false RPCs when channel is in TRANSIENT_FAILURE."" 2018-10-25 12:24:42 -07:00
hcaseyal c4e2c46be1
Revert "Fail wait_for_ready=false RPCs when channel is in TRANSIENT_FAILURE." 2018-10-24 17:20:05 -07:00
Mark D. Roth f85fd026e3 Client-side health checking support. 2018-10-24 12:29:04 -07:00
Mark D. Roth b6059e2e86 Fail wait_for_ready=false RPCs when channel is in TRANSIENT_FAILURE. 2018-10-24 07:13:58 -07:00
Yash Tibrewal 62280b42c7 Add client streaming, server streaming and bidi streaming tests 2018-10-23 21:08:39 -07:00
Spencer Fang c62c3b920c Add fake lb policy for test. Tweak existing interception code. 2018-10-23 16:50:31 -07:00
Yash Tibrewal 66cc56bb03 Another server side test 2018-10-23 15:33:08 -07:00
Yash Tibrewal 4da91c1156 First test for server interception 2018-10-23 13:56:36 -07:00
Yash Tibrewal 0c7250c7b4 Adding streaming test for client interceptors 2018-10-23 12:15:21 -07:00
Yash Tibrewal 6e00b3bb88 Use InProc Channel for callback tests 2018-10-23 11:22:09 -07:00
Yash Tibrewal d8cfd96fb2 Adding tests using the callback API 2018-10-22 16:43:43 -07:00
Yash Tibrewal b358ef85dc Merge branch 'master' into interceptors 2018-10-22 10:39:27 -07:00
Yash Tibrewal 9b83b7d19e Adding intercepted channel 2018-10-22 02:42:03 -07:00
Yash Tibrewal 3a17f5b05e Working on tests 2018-10-21 23:06:21 -07:00
Yash Tibrewal b232bacf27 Starting on server interceptors 2018-10-16 14:11:07 -07:00
Yash Tibrewal f9fe345553 Add more tests for client interceptors 2018-10-16 14:11:07 -07:00
Yash Tibrewal 6f05a711e6 Adding a test 2018-10-16 14:10:17 -07:00
Mark D. Roth f4e65787b6 Merge remote-tracking branch 'upstream/master' into health_checking_service 2018-10-15 13:12:26 -07:00
Hope Casey-Allen 12925d6fc8 Move check closer to relevant code 2018-10-11 14:38:26 -07:00
Hope Casey-Allen 3ed3c8c071 Add metadata streaming tests 2018-10-11 14:24:17 -07:00
ncteisen 0b0f21b3d2 C++ Channelz GetServerSockets Support 2018-10-09 12:07:13 -07:00
ncteisen a64cb54de1 Channel trace is limited by memory 2018-10-02 17:33:07 -07:00
ncteisen 038e760a7d Channelz C++ Socket support 2018-09-27 14:20:57 -05:00
Mark D. Roth be1ce0c4cc Revert "Merge pull request #16600 from grpc/revert-16574-health_checking_service"
This reverts commit de11358660, reversing
changes made to 107d10ea73.
2018-09-25 11:42:57 -07:00
Vijay Pai 3ee2919623
Merge pull request #16646 from vjpai/callback_codegen_client_unary
EXPERIMENTAL: Codegen for callback client unary calls
2018-09-20 16:35:33 -07:00
Juanli Shen 974d66f94f Fix tag variable 2018-09-19 17:28:41 -07:00
Vijay Pai 830e5ad5df Merge branch 'master' into callback_codegen_client_unary 2018-09-19 17:03:00 -07:00
Vijay Pai f6e7b778c4
Merge pull request #16655 from vjpai/callback_tidy
Callback API: Fix clang-tidy concerns
2018-09-19 12:58:02 -07:00
Juanli Shen a0578f075c
Merge pull request #16651 from AspirinSJL/improve_force_creation
Change force_creation from atm to bool
2018-09-19 12:55:11 -07:00
Vijay Pai deb3126611 Fix clang-tidy concerns 2018-09-19 11:29:11 -07:00
Juanli Shen dd10cbc554 Change force_creation from atm to bool 2018-09-19 10:28:39 -07:00
Vijay Pai 845bc9ae21 Add more test cases 2018-09-18 16:48:46 -07:00
Vijay Pai 47ae48e20c Fix conflict 2018-09-18 12:10:33 -07:00
Vijay Pai a1e87be377 Merge branch 'master' into callback_codegen_client_unary 2018-09-18 12:09:02 -07:00
Vijay Pai 42a0ed43cb Add a test 2018-09-18 12:04:31 -07:00
Vijay Pai 73d89a66f9 Catch exceptions in user callbacks 2018-09-14 16:56:19 -07:00
Vijay Pai 3bc10c0f44
Merge pull request #16492 from vjpai/client_callback
EXPERIMENTAL: C++  generic client-side unary callback API
2018-09-12 09:03:49 -07:00
Noah Eisen 71aa60265c
Merge pull request #16360 from ncteisen/channelz-cpp-server
Channelz++ Part 3: GetServers Support
2018-09-11 12:01:17 -07:00
Mark D. Roth 42d9becd91
Revert "Second attempt: Implement Watch method in health check service." 2018-09-10 14:06:52 -07:00
ncteisen 6ef3b0dc2b Merge branch 'master' of https://github.com/grpc/grpc into channelz-cpp-server 2018-09-10 14:03:40 -07:00
ncteisen 722bc69966 Merge branch 'master' of https://github.com/grpc/grpc into channelz-server 2018-09-10 12:28:21 -07:00
ncteisen 4205b97dd9 reviewer feedback 2018-09-07 16:02:08 -07:00
Vijay Pai ccddc1bd17 Initialize bool 2018-08-30 15:46:27 -07:00
Vijay Pai 8bf52535d1 Provide a generic client-side unary callback API 2018-08-30 15:46:27 -07:00
Juanli Shen 14a858123d
Revert "Implement Watch method in health check service." 2018-08-29 21:36:41 -07:00
ncteisen f1931ef624 Merge branch 'channelz-cpp' into channelz-cpp-server 2018-08-28 17:20:50 -07:00
ncteisen 72ac3d0cb1 Merge branch 'channelz-server' into channelz-cpp-server 2018-08-28 17:17:16 -07:00
ncteisen e165579d3e Subchannel support to C++ 2018-08-28 17:16:17 -07:00
ncteisen 6076b1d798 Merge branch 'channelz-subchannels' into channelz-server 2018-08-28 12:55:40 -07:00
Mark D. Roth 4d985efe19
Merge pull request #16351 from markdroth/health_checking_service
Implement Watch method in health check service.
2018-08-28 11:59:22 -07:00
Mark D. Roth 99ce3e19af Implement Watch method in health check service. 2018-08-28 08:51:52 -07:00
Mark D. Roth 4312d1217e clang-format 2018-08-20 13:10:22 -07:00
Mark D. Roth 4eceb65aaa Merge remote-tracking branch 'upstream/master' into pf_keep_unselected_subchannels 2018-08-20 12:24:56 -07:00
Juanli Shen 25f7d0f6f4 Revert to TRANSIENT_FAILURE during backoff 2018-08-17 13:25:15 -07:00
Mark D. Roth aad7884233 Code review changes. 2018-08-17 11:24:54 -07:00
Mark D. Roth e9e92d443c Merge remote-tracking branch 'juanlishen/pf_check_state_before_watch' into pf_keep_unselected_subchannels 2018-08-17 08:11:10 -07:00
Mark D. Roth 4d6f002780 Code review changes and fix threading bug in test. 2018-08-17 08:09:32 -07:00
Juanli Shen d19fd1c689 PF: Check connectivity state before watching 2018-08-16 17:54:27 -07:00
Yang Gao b840d5e45c
Revert "Add more filter priority levels" 2018-08-16 08:58:26 -07:00
Vijay Pai 8a86f5329e
Merge pull request #16356 from vjpai/exhaustion
C++ sync server: Return status RESOURCE_EXHAUSTED if no thread quota available
2018-08-15 19:52:23 -07:00
Vijay Pai 16f738359d Make sure that we actually saw some resource exhaustion if applicable 2018-08-15 16:30:59 -07:00
David Garcia Quintas d08ea3025b Fixed ordering in adding pending picks to PF 2018-08-15 13:43:15 -07:00
ncteisen 70ef911343 Add C++ support for GetServers 2018-08-15 12:05:58 -07:00
ncteisen 408f64c3a1 Merge branch 'channelz-server' into channelz-cpp-server 2018-08-15 11:11:57 -07:00
ncteisen f3c600f335 Fix up C++ test to be more stable 2018-08-15 10:56:32 -07:00
Vijay Pai 14ad82a76d Create a new method handler for resource exhaustion and tie into thread mgr 2018-08-14 16:23:21 -07:00
ncteisen 0bf39e2a13 Subchannel support to C++ 2018-08-13 13:56:36 -07:00
Mark D. Roth f6dea9ec6a Add another test. 2018-08-13 10:33:28 -07:00
Mark D. Roth 4e1e6ceda9 Fix pick_first to not throw away unused subchannels. 2018-08-13 09:44:53 -07:00
Juanli Shen 186df431de As per review 2018-08-10 15:00:16 -07:00
Juanli Shen 9b72650125 PF: Check connectivity state before watching 2018-08-09 21:54:11 -07:00
Mark D. Roth 60069baa6a
Merge pull request #16225 from markdroth/reset_connection_backoff
Reset connection backoff
2018-08-07 08:09:59 -07:00
Yang Gao be49852233
Merge pull request #16214 from yang-g/order_order_please
Add more filter priority levels
2018-08-06 23:50:18 -07:00
Juanli Shen 10d129476a Use param 2018-08-06 15:56:19 -07:00
Mark D. Roth f7e72560b6 Add experimental API for resetting connection backoff. 2018-08-06 14:46:53 -07:00
yang-g d6ef707422 Add more filter priority levels 2018-08-01 11:22:32 -07:00
Juanli Shen b0e41f6c7d Fix re-resolution in pick_first 2018-07-24 20:54:48 -07:00
ncteisen 18a9d7d57c reviewer feedback 2018-07-20 09:29:05 -07:00
ncteisen b47214952b reviewer feedback 2018-07-19 15:19:43 -07:00
ncteisen 6104e4f33b Move ChannelzServicePlugin to public, experimental 2018-07-19 14:59:10 -07:00
ncteisen 9620118390 Remove blank line 2018-07-19 11:24:04 -07:00
ncteisen c194528844 Adds C++ Channelz Service 2018-07-18 18:24:19 -07:00
Juanli Shen be40b0d3a8 Add server load reporting service 2018-07-13 19:52:59 -07:00
David Garcia Quintas 8427571d06 fix test comment and small code tweak 2018-07-10 18:52:01 -07:00
David Garcia Quintas 50409fea27 Simplified the test significantly. No more threads 2018-07-10 16:10:28 -07:00
David Garcia Quintas 30d39c4738 Clarify new test comment 2018-07-10 15:40:02 -07:00
David Garcia Quintas e41cae3081 Added TODO 2018-07-10 13:39:45 -07:00
David Garcia Quintas d1deaad1be Added test 2018-07-09 20:09:18 -07:00
ncteisen 7d474811ab Reviewer feedback 2018-06-29 14:59:59 -07:00
ncteisen a0a59537d2 s/CodegenGeneric/Raw/g 2018-06-28 18:52:01 -07:00
ncteisen d170b83e0d Allow AsyncServer with one generic to compile 2018-06-20 07:59:05 -07:00
ncteisen a6194db176 Add codegen generic to hybrid tests 2018-06-20 07:59:05 -07:00
ncteisen bacd625d37 Add end2end test for codegen_generic 2018-06-20 07:59:05 -07:00
Noah Eisen 373fc6dc40 Manual fixes to enable performance- clang tidy checks 2018-06-14 14:58:09 -04:00
Noah Eisen 58e0cbf9fb Enable the performance-* clang-tidy checks 2018-06-14 14:58:09 -04:00
yang-g 5c67fae9eb Add test 2018-06-08 11:53:31 -07:00
Mark D. Roth 420db80e73 Increase client load reporting interval to avoid test flake. 2018-06-06 10:23:15 -07:00
Mark D. Roth ebb53843b6 Remove orphaned test. 2018-06-01 14:48:13 -07:00
kpayson64 5883569eee
Merge pull request #15523 from kpayson64/client_lb_flake
Add more failure logging to client_lb_end2end_test
2018-05-23 11:10:07 -07:00
kpayson64 e169f20cd0 Add more failure logging to client_lb_end2end_test 2018-05-23 09:38:00 -07:00
Sree Kuchibhotla 94d9034673 Merge branch 'master' into fix-time 2018-04-18 10:18:34 -07:00
Sree Kuchibhotla 1dd12c084a Fix some more formatting issues 2018-04-16 12:09:37 -07:00
Nicolas Noble 6d3e7f7cd4
Merge pull request #13539 from grpc/AspirinSJL-patch-1
Fix comment in test UpdateBalancersDeadUpdate
2018-04-12 16:56:30 -07:00
David Garcia Quintas caa2605a28 Don't capture unnecessary or unused variables 2018-03-21 18:25:22 -07:00
Vijay Pai cdddc8ce42 Desneak client unary call, avoid Hyrum's Law (used for 1-thread simplicity) 2018-03-20 08:46:28 -07:00
David Garcia Quintas 6234054aa8 Verify LB doesn't receive call creds 2018-03-13 18:59:40 -07:00
kpayson64 539f5068bd Abstract libuv implementation
Structures the libuv implementation to allow for a plugable
BSD style socket implementation to allow for other IO Managers
2018-03-13 01:21:42 -07:00
Vijay Pai a7f52a62ba
Merge pull request #14660 from vjpai/exception_10x
Run exception tests 10x to make sure server doesn't crash
2018-03-09 16:42:24 -08:00
Vijay Pai c04c53b38e Run exception tests 10x to make sure server doesn't crash 2018-03-09 15:15:32 -08:00
Vijay Pai c90a85649b Change grpc++ references in names to grpcpp 2018-03-08 22:04:59 -08:00
Vijay Pai 6eae794c9f
Merge pull request #14459 from vjpai/2phase_thd
C++ize gpr_thread as grpc_core::Thread, make it 2-phase init (construct/Start)
2018-03-02 21:13:28 -08:00
David Garcia Quintas e3438c43a0 Fix and simplify SingleBalancerTest.InitiallyEmptyServerlist 2018-03-01 16:39:52 -08:00
Vijay Pai b357f2f548 Merge branch 'master' into 2phase_thd 2018-03-01 11:48:29 -08:00
David Garcia Quintas 2614494f3c grpclb_end2end test tweaks for compiler happiness 2018-02-28 17:34:55 -08:00
David Garcia Quintas ad0996b9f3 Perform secure naming checks in grpclb_end2end_test 2018-02-27 19:11:50 -08:00
Vijay Pai 8b05d0284f Merge branch 'master' into 2phase_thd 2018-02-24 10:37:13 -06:00
Juanli Shen 5739d34c46
Merge pull request #14497 from AspirinSJL/fix_rpc_failure_flake
Add warmup before first batch in UpdateBalancers tests
2018-02-23 14:07:01 -08:00
Mark D. Roth a90d718cb8
Merge pull request #14455 from markdroth/grpclb_channel_args
Refactor code for generating balancer channel args.
2018-02-23 09:23:25 -08:00
Vijay Pai 9d7e57cac4 Merge branch 'master' into 2phase_thd 2018-02-22 14:33:24 -08:00
Juanli Shen acdefd7646 Add warmup before first batch 2018-02-22 13:46:00 -08:00
Vijay Pai a8453a20d8 Merge branch 'master' into 2phase_thd 2018-02-21 10:24:15 -08:00
Adele Zhou 1c805ec901 Add more bazel tests 2018-02-20 17:46:39 -08:00
Yuchen Zeng 8c259b1a62 Remove C++ end2end test owners 2018-02-20 12:42:30 -08:00
Mark D. Roth bd0f15119a Refactor code for generating balancer channel args. 2018-02-20 10:28:22 -08:00
Vijay Pai da69355f30 C++ize gpr_thread as grpc_core::Thread, make it 2-phase init (construct/Start) 2018-02-19 22:39:58 -08:00
Juanli Shen 10142e4651 Fix test again 2018-02-16 14:27:59 -08:00
Juanli Shen 87c6504ca9
Revert "Revert "Revert "Revert "grpclb re-resolution"""" 2018-02-15 09:42:45 -08:00
David G. Quintas f66cf0d70d
Revert "Revert "Revert "grpclb re-resolution""" 2018-02-12 20:55:27 -08:00
Vijay Pai 1d168541fd
Merge pull request #14407 from vjpai/gpr_review_thd
GPR review: Internalize most of gpr_thd (but not ID/current ID)
2018-02-12 20:06:56 -08:00
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