Commit Graph

1373 Commits

Author SHA1 Message Date
apolcyn 8ad90b42a7
Merge pull request #16477 from ganmacs/rescue-grpc-call-error
Rescue `GRPC::Core::CallError`  so that worker threads are not killed
2018-09-18 10:33:29 -07:00
Aaron Patterson d374ee9a4f
Switch to `send` instead of `method(...).call`
This commit switches `method(...).call` to `send`.  The call sites I
changed were all immediately calling `call` on the method object, then
throwing the method object away.  Using `send` should be equivalent and
will not allocate the intermediate `method` object.
2018-09-17 15:32:57 -07:00
apolcyn a07fcbcc27
Merge pull request #16014 from wework/protobuf/ruby_package
support for ruby_package options
2018-09-14 15:19:21 -07:00
Nick Gordon 3fe2c98877 Updates to the ruby generator for protobuf 3.6.0 changes
test for verifying the ruby_package option
added WeWork to the AUTHORS file
2018-09-14 11:28:24 -04:00
Dylan Thacker-Smith 78f3f44efb ruby: Raise instead of hanging if grpc is used before and after fork 2018-09-13 21:18:30 -04:00
ncteisen 6656bc7398 regenerate projects 2018-09-11 14:58:13 -07:00
Shota Iguchi f69d96a320 Remove duplicate `Unimplemented` error definition 2018-09-10 18:22:22 +09:00
ncteisen 6076b1d798 Merge branch 'channelz-subchannels' into channelz-server 2018-08-28 12:55:40 -07:00
ncteisen 4b5b019d56 Merge branch 'master' of https://github.com/grpc/grpc into channelz-subchannels 2018-08-28 12:53:57 -07:00
ganmacs 005cb34614 Rescue GRPC::Core::CallError not to kill the worker threads 2018-08-28 16:24:36 +09:00
Juanli Shen 8ceb27a324 Regenerate projects 2018-08-27 14:27:55 -07:00
Eric Gribkoff e04ba7568c
Merge pull request #16318 from ericgribkoff/fork_support_v2_check_if_shutdown
Python fork handler checks if gRPC core successfully shutdown
2018-08-22 15:38:21 -07:00
Eric Gribkoff b59d8674d2 Python post-fork handler: exit if grpc shutdown fails 2018-08-22 13:07:22 -07:00
Chris Lamb fba18d8551 Fix a number of spelling errors. 2018-08-22 16:52:46 +01:00
ncteisen 632b58cb82 regenerate projects 2018-08-15 11:13:41 -07:00
Vijay Pai 4b42288905
Merge pull request #16302 from vjpai/callback_cq
EXPERIMENTAL: Infrastructure for callback-based core CQ
2018-08-14 09:37:58 -07:00
ncteisen c850354423 Merge branch 'master' of https://github.com/grpc/grpc into channelz-subchannels 2018-08-11 21:19:14 -04:00
Vijay Pai e84096bbe5 Experimental infrastructure for callback-based CQ 2018-08-10 14:33:22 -07:00
Sree Kuchibhotla f63b51be86 Merge branch 'master' into rq-threads-2 2018-08-09 12:13:41 -07:00
Matt Olson 82b732313b Fix default pool keep alive
* The default value for the pool_keep_alive param for RpcServer
  references an incorrect constant.
* This means that the default value for the pool keep alive will
  be 30, which is higher than the default value for the server
  poll_period, which is 1.
2018-08-07 11:09:16 -07:00
Mark D. Roth f7e72560b6 Add experimental API for resetting connection backoff. 2018-08-06 14:46:53 -07:00
Sree Kuchibhotla bdd13cb0ae
Revert "Revert "Restrict the number of threads in C++ sync server"" 2018-08-01 11:22:40 -07:00
Nicolas Noble bea98c3c1b
Revert "Restrict the number of threads in C++ sync server" 2018-07-31 21:12:45 -07:00
Sree Kuchibhotla 9b84d7fe21 Merge branch 'master' into rq-threads 2018-07-30 10:09:47 -07:00
ncteisen 864e68e96d Fix channel trace polymorphism 2018-07-27 02:27:58 -07:00
apolcyn 1680f20c35
Merge pull request #16120 from tenderlove/rm-unused-code
Remove unused code
2018-07-25 22:27:20 -07:00
Sree Kuchibhotla 9bc8ee42c2 generate_projects.sh 2018-07-25 10:58:33 -07:00
Misty De Meo fd499c2baf Ruby tooling: fix makefile strip dependency 2018-07-24 14:11:05 -07:00
Aaron Patterson 896ae70b9f
Remove unused code
This just deletes some code that isn't used.
2018-07-24 13:25:56 -07:00
Srini Polavarapu 8c9af7464c Regenerate projects 2018-07-19 09:52:56 -07:00
ncteisen b86a744751 Expose GetChannel and GetTopChannels Core API 2018-07-18 15:03:31 -07:00
yihuaz 252d3f3b46
Merge pull request #15909 from yihuazhang/local_channel_credentials
Implement local channel/server credentials
2018-07-06 05:44:09 -07:00
Yihua Zhang c5f1eda10f implement loca credentials 2018-07-02 13:29:27 -07:00
ncteisen 8db7788d46 Merge branch 'master' of https://github.com/grpc/grpc into serialization 2018-06-28 00:12:02 -07:00
apolcyn 24416c7a19
Merge pull request #15834 from ganmacs/ensure-that-cancelled-server_streamer-call-raise-cancell
GRPC::Cancelled should be occured when calling Enumrable#next on canceled call
2018-06-22 15:27:58 -07:00
ganmacs c1b64e3493 GRPC::Cancelled should be occured when calling Enumrable#next on canceled call 2018-06-23 04:19:28 +09:00
apolcyn 3da62273f7
Merge pull request #15800 from ganmacs/remove-redefine-class
EchoMsg is defined in spec/support/services.rb
2018-06-21 10:14:21 -07:00
apolcyn 9f28775bd1
Merge pull request #15793 from ganmacs/delete-unused-ivar
Delete unused ivar
2018-06-20 16:26:29 -07:00
ncteisen 93a90e6132 Support codegen generic on server side 2018-06-20 07:59:05 -07:00
ncteisen 68d4f50f77 Merge branch 'master' of https://github.com/grpc/grpc into channelz 2018-06-19 14:00:52 -07:00
Mark D. Roth 9e3e64604d
Merge pull request #15274 from JackOfMostTrades/verify-callback-core
Create verify_peer_options when creating ssl credentials to support a peer verification callback
2018-06-19 10:00:16 -07:00
ganmacs 811a580425 EchoMsg is defined in spec/support/services.rb 2018-06-19 13:04:28 +09:00
apolcyn 34e7515cc6
Merge pull request #15377 from ganmacs/move-script-which-has-pre-req
Move a script which has a pre-requirement to outside of spec
2018-06-18 15:22:48 -07:00
apolcyn 1da7589c84
Merge pull request #15791 from ganmacs/run-spec-by-specifing-file
Be able to execute rspec for each file
2018-06-18 10:34:07 -07:00
ganmacs f15c6f24c1 Delete unused @metadata_tag 2018-06-18 18:59:10 +09:00
ganmacs cb450277a3 All spec files require spec_helper 2018-06-18 12:12:21 +09:00
ganmacs 075a26faff spec_helper requires grpc 2018-06-18 12:04:30 +09:00
ganmacs 0b4fb6a5e2 Move a script which has a pre-requirement to outside of spec
And make it to be execute when using `./tools/run_tests/run_tests.py -l ruby`
2018-06-16 22:38:15 +09:00
ncteisen c14e95fc63 Merge branch 'master' of https://github.com/grpc/grpc into channelz 2018-06-15 11:13:46 -04:00
apolcyn c65066666f
Merge pull request #15755 from ganmacs/unify-duplicated-method
Unify nearly same methods
2018-06-14 20:12:11 -07:00
ganmacs 277d894d7f Unify nearly same method
`@call` instance variable is same in
ActiveCall#merge_metadata_and_send_if_not_already_sent and
ActiveCall#send_initial_metadata.
2018-06-14 17:59:58 +09:00
ncteisen 19ac7c0baf Fix ruby test by backing off on the concurrency 2018-06-13 15:06:07 -07:00
Ian Haken 68eff58df6 Create verify_peer_options when creating ssl credentials in order to expose a verification callback option.
These options are not yet exposed to languages outside of core.
2018-06-12 12:59:37 -07:00
ncteisen cb5471c2ee Sleep less for ruby test 2018-06-11 20:07:43 -07:00
Srini Polavarapu c79c156307 Regenrate projects 2018-06-08 17:01:18 -07:00
ncteisen 16280c7398 Remove unused API 2018-06-08 09:44:25 -07:00
Noah Eisen 70f7558a18 re generate project 2018-06-07 13:03:32 -07:00
ncteisen ec482847b2 re run generate projects 2018-06-05 16:59:25 -07:00
ncteisen c3c6e064b3 Add basic support for GetChannel 2018-06-05 16:59:25 -07:00
apolcyn 17f682d827
Merge pull request #15356 from ganmacs/grpc-ruby-does-not-depends-on-googleauth
Grpc ruby does not need to depend on googleauth
2018-06-02 12:43:29 -07:00
apolcyn e08972b1a2
Merge pull request #15442 from apolcyn/error_message
Add more details to a resource exhausted ruby error
2018-05-18 17:40:09 -07:00
Alexander Polcyn 747fbca1e8 Add more details to a resource exhausted ruby error 2018-05-18 10:39:44 -07:00
apolcyn bdbf04cde1
Merge pull request #15354 from ganmacs/fix-math_client
Fix math client
2018-05-17 21:07:22 -07:00
ganmacs 520b2a0786 Fix a error message
To match the name with the code in #parse_args method.
2018-05-16 08:47:57 +09:00
ganmacs ad4312aaa9 Fix math-client
* insecure stub needs :this_channel_is_insecure as an argument
* timeout option should be set at initializing stub
* Should be set logger to output
* Remove debug print
2018-05-15 10:21:06 +09:00
ganmacs 61d9a42007 Moved pubsub demo_demo to examples directory of ruby
so that grpc does not depends on googleauth gem.

This project (pubsub demo) is introduced at [this
commit](d5d00d5c8f (diff-c495642bb64c09cae54f3ccff463bd51))
as demo project for grpc with ruby.
This demo is awesome. But the position of this project directory seems
to be not suitable for demo app. This project added unnecessary gem dependency about googleauth to grpc ruby gem.
2018-05-14 18:01:04 +09:00
ganmacs af48e68028 Remove print 2018-05-14 17:14:36 +09:00
Yang Gao e84ea53a13
Merge pull request #15252 from carl-mastrangelo/healthy
Update health.proto to match grpc-proto reference copy
2018-05-04 11:58:12 -07:00
Carl Mastrangelo 95fbb06ca8 regenerate pbs 2018-05-03 12:33:25 -07:00
Mehrdad Afshari 2d43a45ad1 Regenerate projects 2018-05-02 22:49:52 -07:00
Carl Mastrangelo d8306ec142 update ruby 2018-05-02 12:05:49 -07:00
kpayson64 7a20c962df Break out qps services into seperate protos 2018-04-18 22:13:09 -07:00
Yihua Zhang fe2fa0c1c8 Add C++ experimental API extensions for ALTS C stack 2018-04-16 15:11:32 -07:00
Jan Tattermusch 749f923c5b
Merge pull request #14945 from ara-ayvazyan/improve_log_perf
Avoid low severity log message construction
2018-04-12 08:56:40 +02:00
apolcyn 2fe68c8ad3
Merge pull request #15021 from apolcyn/fix_gcov_ruby
Fix a broken gcov test
2018-04-11 13:34:24 -07:00
Alexander Polcyn e8bced7db8 Fix codegen test under gcov config 2018-04-11 10:46:51 -07:00
Alexander Polcyn d3594987df fix race whereby we can call watch_connectivity_state on a destroyed channel 2018-04-05 03:49:53 -07:00
Jan Tattermusch 3095e350ac regenerate projects using tools/buildgen/generate_projects.sh 2018-04-05 09:41:03 +02:00
apolcyn 33b225616c
Merge pull request #14922 from apolcyn/ruby_bidi_error
Don't raise call errors for failed reads or writes of ruby bidi streams
2018-04-04 17:41:28 -07:00
Mehrdad Afshari 90cfc8ed57 Regenerate projects 2018-04-04 14:04:11 -07:00
Alexander Polcyn ae937d34d6 Never throw CallErrors for failed bidi reads or writes 2018-04-03 20:47:24 -07:00
apolcyn a9d16ccb3d
Merge pull request #13634 from hassox/ruby-module-name
Updates the ruby generator RubyTypeOf to correctly account for underscores in packages
2018-03-29 16:13:07 -07:00
everysick bae00e08cc Add test for verifying to get memory usage in client request 2018-03-29 09:13:55 +09:00
Daniel Neighman 8b7007ad7b Updates the ruby generator RubyAsType to correctly account for underscores in packages
Prior to this change, when the ruby generator tried to reference an entity that was not part of the same package
(or a direct parent package) and the package contains underscores,
the result would simply uppercase the first character.
It should however uppercase each letter that proceeds an underscore and remove underscores.

i.e.

```
package my_package.service;

import "my_package/data.proto";

service MyService {
  rpc Test (data.Request) returns data.Response {}
}
```

Was

```ruby
   # ...
   rpc :Test, My_package::Data::REquest, My_package::Data::Response
   # ...
```

Should be:

```ruby
   # ...
   rpc :Test, MyPackage::Data::REquest, My_package::Data::Response
   # ...
```
2018-03-26 16:00:05 -07:00
everysick dfc95159a6 Use GRPC_RB_MEMSIZE_UNAVAILABLE in grpc_rb_md_ary_data_type 2018-03-25 21:21:15 +09:00
apolcyn 9cb8be661a
Merge pull request #14705 from xambroz/ruby_format_strings
Ruby format strings
2018-03-23 16:02:18 -07:00
Noah Eisen dc93b71e53
Merge pull request #14751 from ncteisen/channel-tracing
[Fix Forward]: Channel Tracing Implementation; Part 1
2018-03-21 16:49:12 -07:00
Ruslan Nigmatullin 99d0cee31b regenerate projects 2018-03-20 09:18:29 -07:00
ncteisen 3b42f83068 Revert "Revert "Channel Tracing Implementation; Part 1""
This reverts commit f2bea3725f.
2018-03-19 13:22:35 -07:00
Noah Eisen f2bea3725f
Revert "Channel Tracing Implementation; Part 1" 2018-03-19 12:05:18 -07:00
ncteisen b93a006d64 Merge branch 'master' of https://github.com/grpc/grpc into channel-tracing 2018-03-15 13:46:28 -10:00
xambroz 831f4ea334
Enable checking for the string format issues
Enable checking for the string format issues because:
1) Fedora and Ubuntu have format checking generating errors as mandatory for the ruby gem builds.
 If "-Wno-format" is hardcoded here it will collide and fail with the in-build option of -Werror=format-security passed to the make.

2) There was one potential format vulnerability found in rb_compression_options.c
2018-03-14 02:30:52 +00:00
xambroz 06a412c2e1
Fix potential format string vulnerability 2018-03-14 02:23:53 +00:00
nownabe fcc4b9b68c Fix ruby document
1. Organize collapsed ruby yard doc.

2. Update contents about ClientStub#bidi_streamer because
bidi#writes_done hasn't existed.

https://github.com/grpc/grpc/pull/14535#discussion_r171452923

3. Fix yardoc warnings.

Warings:

[warn]: Invalid tag format for @return in file `lib/grpc/core/time_consts.rb` near line 36
[warn]: @param tag has duplicate parameter name: set_input_stream_done
    in file `lib/grpc/generic/bidi_call.rb' near line 70
[warn]: Unknown tag @result in file `lib/grpc/generic/rpc_server.rb` near line 287
[warn]: @param tag has unknown parameter name:
    in file `lib/grpc/generic/interceptors.rb' near line 158
[warn]: In file `lib/grpc/generic/rpc_server.rb':217: Cannot resolve link to key: from text:
        ...{key: val, ..}
[warn]: In file `lib/grpc/generic/rpc_server.rb':217:
Cannot resolve link to key: from text:
        ...{key: val, ..}
2018-03-13 14:13:46 +09:00
ncteisen c1284576f8 Fix build and sanity 2018-03-02 16:20:50 -08:00
ncteisen ee013d25b3 Fix build and sanity 2018-03-02 11:38:32 -08:00
Mehrdad Afshari 9073ea03ef Regenerate projects 2018-02-22 22:21:33 -08:00
Vijay Pai c745690caf Internalize gpr_thd except for id and currentid 2018-02-12 11:44:52 -08:00
apolcyn 90dde8f136
Merge pull request #14134 from apolcyn/fix_ruby_shutdown_race
Refactor ruby server shutdown to fix a race in tests
2018-02-09 18:03:30 -08:00
apolcyn f3431e5b21
Merge pull request #14132 from apolcyn/fix_benign_compression_options_mem_leak
Fix two ruby memory leaks when exceptions are raised
2018-02-08 18:56:37 -08:00