Commit Graph

137 Commits

Author SHA1 Message Date
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
Mark D. Roth e7751807e2 Use new protocol for reporting dropped calls to grpclb balancer. 2017-07-27 12:31:45 -07: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
Craig Tiller cac4e178fd Merge github.com:grpc/grpc into cpparena 2017-04-18 13:39:18 -07:00
David G. Quintas 3ddc13b252 Merge pull request #10668 from dgquintas/update_lb_proto_2
Updated load_balancer.proto
2017-04-15 16:00:20 -07:00
David Garcia Quintas a7a1098d2f Updated load_balancer.proto 2017-04-15 10:55:01 -07:00
David Garcia Quintas 53af23cfbf Improvements to Fake Resolver 2017-04-15 10:29:46 -07:00
Craig Tiller 2c6f63731c Merge github.com:grpc/grpc into cpparena 2017-04-14 13:14:10 -07:00
Sree Kuchibhotla a6ff103446 Merge branch 'master' into cq_create_api_changes 2017-04-06 13:09:17 -07:00
Craig Tiller 5de46568ce Merge github.com:grpc/grpc into cpparena 2017-04-04 17:08:12 -07:00
Craig Tiller 9eb0fdec00 Reorganize ext tree
- filters live under filters
- lb_policy, resolver implementations (being part of client_channel) live under client_channel
2017-03-31 16:59:30 -07:00
Craig Tiller dd36b15315 Call ref/unref, bugfixes 2017-03-31 08:27:28 -07:00
Sree Kuchibhotla 5bec133ba0 clang format 2017-03-24 10:03:22 -07:00
Sree Kuchibhotla f2c32150ef Update C++ code 2017-03-22 03:01:24 -07:00
Sree Kuchibhotla 752be9ceeb clang format code 2017-03-03 14:36:02 -08:00
Sree Kuchibhotla 1dbd981cf8 Prefix grpc_cq_polling_type enums with GRPC_CQ_ 2017-03-03 14:27:44 -08:00
Sree Kuchibhotla 9f71b17707 Fix clang formatting issues 2017-03-03 12:54:58 -08:00
Sree Kuchibhotla 982a6f2b1c C++ code changes in response to grpc_completion_queue_create() API change 2017-03-03 02:19:31 -08:00
David Garcia Quintas 012915045f Secure naming support for gRPCLB 2017-02-07 17:41:57 -08:00
Jan Tattermusch bd0b0546a6 windows compilation fixes 2017-02-02 00:01:09 +01:00
Robbie Shade ca7effcdff Replace timeout/scaling macros with functions. 2017-01-31 15:40:20 -05:00
Craig Tiller afceb2edbd Merge github.com:grpc/grpc into rollfwd 2017-01-26 12:21:28 -08:00
Mark D. Roth 435f9f23ef Fix tests. 2017-01-25 12:53:54 -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 ef6938477b Merge branch 'slice_with_exec_ctx' into metadata_filter 2016-12-27 08:59:00 -08:00
David Garcia Quintas 855a1063ec grpclb: skip slash in server uri path if present 2016-12-16 13:13:56 -08:00
Craig Tiller f658bf0e1b Start resolving memory issues in C++ metadata 2016-12-08 14:11:47 -08:00
Craig Tiller 18348a3bfb Fix C++ test compilation 2016-12-07 09:58:31 -08:00
David Garcia Quintas 033c51e8c8 Deflake grpclb test 2016-11-30 00:49:29 -08:00
David Garcia Quintas 1a2e40e0ce clang-format 2016-11-18 13:05:53 -08:00
David Garcia Quintas c2e6254984 Merge branch 'master' of github.com:grpc/grpc into grpclb_reworked_conn_state 2016-11-17 21:20:02 -08:00
David Garcia Quintas 149f09da97 Rewrote connectivity status logic for gRPC LB 2016-11-17 21:07:43 -08:00
David Garcia Quintas 0133a1b902 No more gcc 4.4! 2016-11-15 15:42:37 -08:00
David Garcia Quintas 850cbaaac4 Added more testing for grpclb tokens 2016-11-15 15:19:33 -08:00
Craig Tiller b720b609ea Merge github.com:grpc/grpc into grpc_slice 2016-11-08 07:20:27 -08:00
Craig Tiller 32df467f11 Merge github.com:grpc/grpc into grpc_slice 2016-11-04 08:21:56 -07:00
Mark D. Roth 6c8492de8a Merge remote-tracking branch 'upstream/master' into remove_fake_resolver 2016-11-02 08:42:49 -07:00
David G. Quintas 105b39450a Merge pull request #8568 from dgquintas/grpclb_leaks_fix
gRPC LB fixes from end two end testing
2016-11-02 08:12:52 +01:00
David Garcia Quintas 7ec291330c PR comments 2016-10-31 22:31:51 -07:00
David Garcia Quintas 0baf1dc569 Made LB token dynamic size <= 50 bytes 2016-10-28 04:51:28 +02:00
Mark D. Roth e127a39f45 Change tests to use channel args instead of fake_resolver query args. 2016-10-27 08:27:15 -07:00
Craig Tiller 28b72428a8 clang-format 2016-10-26 21:15:29 -07:00
Craig Tiller 618e67d655 s/GPR_SLICE/GRPC_SLICE/g 2016-10-26 21:08:10 -07:00
Craig Tiller d41a4a720f s/gpr_slice/grpc_slice, and move around tests, impls 2016-10-26 16:16:06 -07:00
Mark D. Roth eb35a1d16b Merge remote-tracking branch 'upstream/master' into rename_client_config 2016-10-19 14:53:42 -07:00
David Garcia Quintas a3654db631 Renamed LB-related metadata keys 2016-10-11 15:55:40 -07:00
Mark D. Roth 94ba752883 Merge remote-tracking branch 'upstream/master' into fake_resolver 2016-10-04 07:20:44 -07:00
Mark D. Roth da0ec8222e Add fake resolver for tests. 2016-10-03 11:32:04 -07:00
David Garcia Quintas bd57bba0c2 Use a reasonable deadline in grpclb test 2016-09-30 14:44:56 -07:00
David Garcia Quintas 55ba14a785 Use the server's name as the service name for gRPC LB 2016-09-27 18:45:30 -07:00
David Garcia Quintas f47d6fbdcc More PR comments 2016-09-14 12:59:17 -07:00
David Garcia Quintas 35c2aba849 More PR comments.
Mainly, removed all user_data memory management responsibilities from
the round robin policy.
2016-09-13 15:28:09 -07:00
David Garcia Quintas ebe7c17613 Merge branch 'master' of github.com:grpc/grpc into lb_add_md 2016-09-12 22:57:29 -07:00
Nicolas Noble e57904bf7b Merge pull request #7929 from yang-g/externC
The public headers already have extern C
2016-09-12 00:31:17 -07:00
David Garcia Quintas b8245bd231 Merge branch 'master' of github.com:grpc/grpc into lb_add_md 2016-09-01 18:29:46 +02:00
yang-g 7c2887187b The public headers already have extern C 2016-08-30 10:12:28 -07:00
Mark D. Roth 7f9bba8ce1 Fix some more tests that called cq_expect_completion(). 2016-08-25 08:35:42 -07:00
David Garcia Quintas ba641f48d7 Updated grpclb API test. 2016-08-24 06:53:43 -07:00
David Garcia Quintas 880064586d Removed direct include of arpa/inet.h 2016-08-24 06:53:23 -07:00
David Garcia Quintas 8a81aa12fb Changes to grpclb and tests for binary ip addresses. 2016-08-22 15:06:49 -07:00
David Garcia Quintas ef4d2a51d4 Merge branch 'fix_grpclb_aug' into lb_add_md 2016-08-18 15:04:45 -07:00
David Garcia Quintas 601bb128b4 Fixed op ordering in grpclb internal client 2016-08-18 15:03:59 -07:00
David Garcia Quintas 5b0e9462f0 Introduced LB token initial metadata propagation 2016-08-15 23:02:33 -07:00
David Garcia Quintas e60ae9c967 deflake grpclb_test 2016-08-02 16:37:41 -07:00
David Garcia Quintas d9cee6f2ac moar clang-format 2016-08-01 17:42:47 -07:00
David Garcia Quintas 4166cb06ea Addressed the rest of the PR comments 2016-07-29 14:38:25 -07:00
David Garcia Quintas a26c77b314 added another TODO to grpclb_test 2016-07-18 12:57:13 -07:00
David Garcia Quintas 1d5cb2ad8a Improvements to the grpclb proto API funcs 2016-07-18 12:56:53 -07:00
David Garcia Quintas 8b3b97f99d Added a tiny comment header and TODOs. 2016-07-15 07:46:47 -07:00
David Garcia Quintas ea11d168c7 Added more docs.
And fixed behavior when incoming serverlist has zero servers. Previously we
ignored the update. Currently (and correctly) we consider it but the pick itself
will stay pending until we actually have > 0 servers in the incoming serverlist.
2016-07-14 17:27:32 -07:00
David Garcia Quintas 78fbb0a301 added some includes 2016-06-28 14:02:41 -07:00
David Garcia Quintas c534b0d121 make gcc 4.4 happy 2016-06-28 11:48:05 -07:00
David Garcia Quintas 390673ae1b clang-format 2016-06-28 10:38:19 -07:00
David Garcia Quintas f9f856bb89 Added todos for more grpclb tests. 2016-06-22 18:25:53 -07:00
David Garcia Quintas aaba131346 finally got rid of external deps to generate the lb response proto 2016-06-22 18:10:37 -07:00
David Garcia Quintas 55145c03d2 first step in transforming grpclb_test to C++ 2016-06-21 14:51:54 -07:00
David Garcia Quintas 7f0793ad62 Updated load balancer proto to v1 2016-04-25 16:48:26 -07:00
Craig Tiller 14e0d9862f Begin optionalizing lb policies: initial code movement 2016-03-28 17:11:26 -07:00
Craig Tiller 9533d042d4 Fix includes 2016-03-25 17:11:06 -07:00
Craig Tiller eb841e2010 Revert "Revert "Proto API for LB request/responses"" 2016-02-11 15:49:16 -08:00
Craig Tiller c35e2c582f Revert "Proto API for LB request/responses" 2016-02-11 15:45:03 -08:00
David Garcia Quintas 0892fa6aa6 Added copyright message to generated nanopb code 2016-01-12 16:22:34 -08:00
David Garcia Quintas 756a36cdac Srcs and hdrs sanity checks skip third_party 2016-01-11 11:31:19 -08:00
David Garcia Quintas ff03847182 Moved nanopb to 3rd party 2015-11-12 09:27:13 +00:00
David Garcia Quintas 49433744ee Proto API for LB request/responses 2015-11-03 23:53:42 -08:00