Commit Graph

1632 Commits

Author SHA1 Message Date
Mike Moore 5f30da6dd1
Update variable names in spec 2019-04-22 16:35:07 -06:00
Mike Moore abcdf2d183
Party like its 2015 2019-04-22 16:32:26 -06:00
Mike Moore b47f2048b8
Log ParseError raised in BadStatus#to_rpc_status 2019-04-18 22:26:39 -06:00
Mike Moore 0fa7cf9194
Update Add BadStatus#to_status documentation 2019-04-18 03:02:31 -06:00
Mike Moore 71db662452
Add tests for error methods 2019-04-18 03:01:28 -06:00
Mike Moore 7afc6dbae3
Update BadStatus#to_rpc_status
Change the implementation to no longer raise when the rpc_status
protobuf value cannot be properly decoded.
Update the documentation.
2019-04-18 03:00:37 -06:00
Mike Moore f370542dd6
Add BadStatus#to_rpc_status 2019-04-13 14:36:36 -06:00
SataQiu 44f92cdd17 clean up repeated words 2019-04-10 16:25:25 +08:00
Lidi Zheng 0231bf3b01 Regenerate projects 2019-03-29 16:24:50 -07:00
Soheil Hassas Yeganeh ad1b3e5094 Introduce grpc_byte_buffer_reader_peek and use it for Protobuf parsing.
grpc_byte_buffer_reader_next() copies and references the slice. This
is not always necessary since the caller will not use the slice
after destroying the byte buffer.

A prominent example is the protobuf parser, which
calls grpc_byte_buffer_reader_next() and immediately unrefs the slice
after the call. This ref() and unref() calls can be very expensive
in the hot path.

This commit introduces grpc_byte_buffer_reader_peek() which
essentialy return a pointer to the slice in the buffer, i.e.,
no copies, and no refs.

QPS of 1MiB 1 Channel callback benchmark increases by 5%.
More importantly insructions per cycle is increased by 10%.

Also add tests and benchmarks for byte_buffer_reader_peek()

This commit reaplies 509e77a5a3
2019-03-21 06:03:45 -04:00
Stanley Cheung 0a8fbd2a67 Fix broken php7 performance benchmarks build 2019-03-18 15:12:46 -07:00
Jan Tattermusch b667c2f72f regenerate ruby protos 2019-03-12 05:09:46 -04:00
Soheil Hassas Yeganeh c060d55cc7
Revert "Introduce grpc_byte_buffer_reader_peek and use it for Protobuf parsing." 2019-03-05 14:01:01 -05:00
Soheil Hassas Yeganeh 509e77a5a3 Introduce grpc_byte_buffer_reader_peek and use it for Protobuf parsing.
grpc_byte_buffer_reader_next() copies and references the slice. This
is not always necessary since the caller will not use the slice
after destroying the byte buffer.

A prominent example is the protobuf parser, which
calls grpc_byte_buffer_reader_next() and immediately unrefs the slice
after the call. This ref() and unref() calls can be very expensive
in the hot path.

This commit introduces grpc_byte_buffer_reader_peek() which
essentialy return a pointer to the slice in the buffer, i.e.,
no copies, and no refs.

QPS of 1MiB 1 Channel callback benchmark increases by 5%.
More importantly insructions per cycle is increased by 10%.

Also add tests and benchmarks for byte_buffer_reader_peek()
2019-03-04 14:17:46 -05:00
yang-g 456f748b2f Revert "Merge pull request #18146 from grpc/revert-17308-shutdown"
This reverts commit 9079e98dfc, reversing
changes made to 76a38bfcc2.
2019-02-25 10:11:06 -08:00
Yang Gao 4bc2ca4de6
Revert "Move grpc_shutdown internals to a detached thread" 2019-02-22 16:34:24 -08:00
yang-g 0df63d3c98 Merge branch 'master' into shutdown 2019-02-15 21:51:03 -08:00
apolcyn aa207933cb
Merge pull request #16240 from mattolson/fix-default-pool-keep-alive
Ruby: Fix default pool keep alive
2019-02-14 23:22:45 -08:00
yang-g 545c555d31 Rename new public API 2019-02-14 14:22:40 -08:00
Srini Polavarapu f7f6861720
Merge pull request #18033 from srini100/master
Bump master to v1.20.x and pick "godric" for that release
2019-02-13 12:17:12 -08:00
yang-g 233406d450 generate projects 2019-02-13 11:29:40 -08:00
Jan Tattermusch bc19ba1668
Merge pull request #18037 from xichengliudui/fixtypos
Fix various typos in .cc and .md and .py files
2019-02-13 13:24:34 +01:00
Srini Polavarapu b0efc103e3 Regenerate projects 2019-02-12 21:07:42 -08:00
xichengliudui d9b508c896 Fix various typos in .cc and .md and .py files 2019-02-12 11:11:43 -05:00
Alexander Polcyn 5c85f5a1a0 Ruby: refactor init/shutdown logic to avoid using atexit; fix windows 2019-02-10 16:14:19 -08:00
Yihua Zhang a3d997cbdc Add a TLS credential surface API (experimental) 2019-01-29 10:04:28 -08:00
apolcyn 9ed8734efb
Merge pull request #17606 from matoro/master
Ruby tooling: respect user toolchain overrides
2019-01-24 00:06:05 -08:00
matoro 6ca6a06075 Ruby tooling: respect user toolchain overrides
While compilation flag overrides for the Ruby native extension are
currently functional, specifying an alternate compiler is not, as the
Rbconfig values for key toolchain binaries are hardcoded at compile time
of the Ruby interpreter.  This patch allows them to be overrridden on
the command line via standard environment variables, defaulting to the
Rbconfig values only if unspecified by the user.
2019-01-23 16:40:41 +00:00
Jan Tattermusch 5a6c984d3a clang format code 2019-01-08 16:06:38 +01:00
Christopher Warrington 832e5f06c3 Fix typos in comments 2019-01-07 17:36:14 -08:00
Sanjay Pujare 94d5587643 Regenerate projects 2019-01-03 15:35:20 -08:00
apolcyn fc7d0911a3
Merge pull request #17348 from toc007/ruby-sigint
server graceful shutdown for pull request
2018-12-26 13:23:29 -08:00
Tommy Chen 39ac83a49e ruby-sigint ready to be merged! 2018-12-26 11:17:48 -08:00
Jan Tattermusch b904fdaa40 do not use server override in ruby interop client by default 2018-12-20 14:49:54 +01:00
ncteisen 7b1fc0faa2 Add max_results to ServerSockets 2018-12-11 08:24:40 -08:00
apolcyn 63c9e43c2a
Merge pull request #17295 from ganmacs/fix-misc
Fix ruby code style
2018-12-02 21:01:32 -08:00
ganmacs 79f58ec74e Use space 2018-11-26 19:51:07 +09:00
ganmacs b5ee54add3 Remove unused require 2018-11-26 19:50:50 +09:00
ganmacs bd1fdfaabe Return unimplemented
when calling a method which is server_streamer and is not implemented by user
2018-11-25 17:31:53 +09:00
Muxi Yan f3e4ae633e Regenerate projects 2018-11-19 15:24:53 -08:00
ncteisen 693f46841a Add GetServer to core 2018-10-24 17:31:30 -07:00
apolcyn da5d02fb4d
Merge pull request #16921 from apolcyn/move_package_options_test
Move ruby test's package_options.proto file to ruby-specific directory
2018-10-18 17:07:52 -07:00
Alexander Polcyn f6e8417627 Move package_options.proto file for ruby test 2018-10-17 19:44:52 -07:00
Vijay Pai a46ddf4a09 Remove grpc_use_signal which is no longer relevant 2018-10-10 08:38:15 -07:00
Noah Eisen a74885d478
Merge pull request #16760 from ncteisen/channelz-server-sockets
Channelz Part 8: Get Server Sockets
2018-10-09 11:19:49 -07:00
Stanley Cheung e5ce1e36e6 Regenerate projects 2018-10-08 15:50:50 -07:00
apolcyn 3f1c75208e
Merge pull request #16593 from iguchi1124/remove-duplicate-error
Ruby: remove duplicated `Unimplemented` error definition
2018-10-08 10:32:45 -07:00
ncteisen 3545d754d5 Channelz get server sockets support 2018-10-02 09:55:00 -07:00
ganmacs 8722714ae4 change var name to be consistent with others 2018-10-01 17:32:12 +09:00
apolcyn 2947946871
Merge pull request #15378 from ganmacs/fix-option-name
Change option name of client.rb
2018-09-26 21:24:59 -07:00
ncteisen 4fcf871806 Merge branch 'master' of https://github.com/grpc/grpc into channelz 2018-09-25 13:37:58 -07:00
Muxi Yan b522334d63
Merge pull request #16659 from grpc/security_func_signature
Update function signature in grpc_security
2018-09-21 08:07:34 -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
Muxi Yan d0029bac14 generate_projects.sh 2018-09-20 11:35:57 -07:00
apolcyn 878703d6fa
Merge pull request #16653 from ganmacs/not-to-use-p-in-test
Use logger to suppress output debug output during test
2018-09-20 09:47:17 -07:00
apolcyn dc09ab5b37
Merge pull request #16642 from tenderlove/send-instead-of-method
Switch to `send` instead of `method(...).call`
2018-09-20 00:07:03 -07:00
Vijay Pai 9e6511ae2e Make the core callback interface API so that it can be used in generated code 2018-09-19 23:57:56 -07:00
ncteisen 0a650eae58 regenerate projects 2018-09-19 07:41:59 -07:00
ganmacs 50c31d18e5 Use logger to suppress output debug output during test 2018-09-19 19:06:46 +09:00
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
Vijay Pai 18b9133f31 Merge branch 'master' into gpr_review 2018-02-08 12:18:09 -08:00
Vijay Pai 239b7d4b0b Merge branch 'master' into gpr_review 2018-02-08 11:08:41 -08:00
Vijay Pai 573717bc8d Merge branch 'master' into gpr_review3 2018-02-08 10:21:11 -08:00
Vijay Pai 32748c1b2a Merge branch 'master' into gpr_review3 2018-02-08 10:06:23 -08:00
Vijay Pai b1ef84a7fd Merge branch 'master' into gpr_review_host_port 2018-02-07 11:12:35 -08:00
Muxi Yan cda058de8e build projects 2018-02-06 18:17:42 -08:00
Muxi Yan 99f1a8f467 Remove compression_ruby 2018-02-06 18:17:42 -08:00
Alexander Polcyn d60ed8f1f8 Guarantee no race between ruby server's shutdown_and_notify and destroy 2018-02-06 11:13:06 -08:00
Shohei Kamimori 35367cc3ed fix typo 2018-02-05 18:46:41 +09:00
Vijay Pai 1acfaca3e6 Merge branch 'master' into gpr_review_host_port 2018-02-02 11:21:07 -08:00
Vijay Pai d4d0a30c6f Privatize useful.h and avl.h 2018-02-02 09:16:44 -08:00
Vijay Pai 4c0640ebd6
Merge branch 'master' into gpr_review3 2018-02-02 09:12:11 -08:00
Vijay Pai e5b0a50416
Merge pull request #14015 from vjpai/alarm
Remove alarm from core, implement in C++ layer only
2018-02-02 08:44:20 -08:00
Vijay Pai ae376bf9d9 Privatize host_port.h; was not used in any wrapped language implementation 2018-01-25 23:06:24 -08:00
Vijay Pai 8a99fdb57e Move cmdline and subprocess from public gpr to test/core/util 2018-01-25 20:11:38 -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
Alexander Polcyn 7b87bab832 Refactor ruby server shutdown to fix a race 2018-01-22 23:43:39 -08:00
Alexander Polcyn 443165f88f Fix two ruby memory leaks when exceptions are raised 2018-01-22 19:37:23 -08:00
Mark D. Roth 62569dd978 Fix arena to return aligned memory. 2018-01-22 12:51:03 -08:00
Vijay Pai 2b226adf60 Remove alarm from core, implement in C++ layer only 2018-01-21 21:03:56 -08:00
Mehrdad Afshari 43884047c9 Regenerate projects 2018-01-19 14:25:15 -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
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
apolcyn 8ecabd987b
Merge pull request #13777 from frankyn/patch-1
[Ruby] Specify module init in README
2017-12-18 13:01:24 -08:00
apolcyn 2ebb168ac7
Merge pull request #13774 from apolcyn/disable_soreuseport_in_ruby_tests
Tentatively disable so_reuseport in ruby tests
2017-12-15 10:37:11 -08:00
Frank Natividad 235a2e74b2
[Ruby] Specify module init after cloning repo 2017-12-14 02:48:55 -07:00
Alexander Polcyn b14f1ea602 Disable soreuseport in ruby unit tests 2017-12-13 16:43:00 -08:00
Jan Tattermusch a2044f83c6 metadata plugin update statuses in wrapped langs 2017-12-14 00:17:25 +01:00
Muxi Yan 032e9b32dc Merge remote-tracking branch 'upstream/master' into fix-stream-compression-config-interface 2017-12-13 14:04:45 -08:00
Mehrdad Afshari c5ba665b22 Merge remote-tracking branch 'origin/v1.8.x' 2017-12-11 11:32:11 -08:00
Mehrdad Afshari 0ba96edc41 v1.8.0-pre2 is now v1.8.0 2017-12-12 14:01:25 -08:00
apolcyn 5663eac718
Merge pull request #13696 from apolcyn/update_ruby_for_cpp_core
Move a CFLAG to be a CPPFLAG when building core for ruby
2017-12-08 18:14:25 -08:00
Alexander Polcyn ebcc6b398d Update extconf.rb for c++ conversion, move CFLAGS to CPPFLAGS when
compiling core.
2017-12-08 15:40:24 -08:00
Muxi Yan 99024d6436 Merge remote-tracking branch 'upstream/master' into fix-stream-compression-config-interface 2017-12-08 14:02:18 -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 d6c292f177 Merge master 2017-12-07 19:38:43 -08:00
Muxi Yan 9c02a3cca1 Do not separate message/stream compression levels 2017-12-07 19:02:22 -08:00
Alexander Polcyn f7a869fdbe Unref global backup poller under its lock 2017-12-07 09:59:15 -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 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
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 a3df36cc25
Merge pull request #13058 from yashykt/execctx
All instances of exec_ctx being passed around in src/core removed
2017-12-05 21:19:52 -08:00
Vijay Pai 770bf078d5 Regen projects and fix more uses of gpr_thd_new 2017-12-05 16:09:20 -06:00
yashkt d9f6407190 Merge master into execctx after removal of assert in tls_gcc 2017-12-04 09:41:12 -08:00
Vijay Pai 195cf1ebfd Move histogram to test/core/util 2017-11-30 15:02:04 -08:00
Yash Tibrewal 10f2790f7f Merge branch 'master' into execctx 2017-11-30 10:54:42 -08:00
Nicolas "Pixel" Noble 7d199c95a2 Merge branch 'master' of https://github.com/grpc/grpc into v1.8.x 2017-11-30 09:08:01 +01:00
Mehrdad Afshari d39d007e8f
Merge pull request #13515 from mehrdada/bump-master-version
Bump 1.8.0-dev to 1.9.0-dev
2017-11-28 13:30:54 -08:00
apolcyn 17f94911f2
Merge pull request #13153 from bmarkons/patch-1
Add health statuses for multiple services at once
2017-11-28 13:22:18 -08:00
apolcyn 1972e5ce74
Merge pull request #12710 from apolcyn/speedup_ruby_end2end_tests
Fix a race in ruby server shutdown and cleanup for ruby tests
2017-11-27 23:27:50 -08:00
Alex Polcyn 81e9581bf3 Remove some sleeps in ruby tests and fix test server shutdown 2017-11-27 20:29:19 -08:00
Mehrdad Afshari 14e96f9ae8 Bump 1.8.0-dev to 1.9.0-dev 2017-11-27 17:14:15 -08:00
Mehrdad Afshari 552a7ca088 Bump 1.8.0-dev to 1.8.0-pre1 2017-11-27 16:51:21 -08:00
Muxi Yan fba967747c generate_projects 2017-11-27 14:39:28 -08:00
Marko Bogdanović 9f4a8eeced Add HealthChecker helpers for setting statuses 2017-11-18 10:59:57 +01:00
Yash Tibrewal 177039b2f8 Merge master 2017-11-16 19:31:28 -08:00
apolcyn 2e8bef1389
Merge pull request #13204 from apolcyn/fix_broken_ruby_20_for_master
Remove required keyword args in ruby, for master branch
2017-11-13 21:34:44 -08:00
Yash Tibrewal 4e9265c828 Merge with master 2017-11-09 17:46:29 -08:00
Yash Tibrewal 40422d5fa6 Merge master 2017-11-06 14:43:31 -08:00
Craig Tiller 44ab6a559c fix 2017-11-03 16:22:34 -07:00
Craig Tiller a64b2b13c1 Merge github.com:grpc/grpc into 50 2017-11-03 15:23:13 -07:00
Craig Tiller b32d72ef90 Sanity fixes 2017-11-03 10:31:53 -07:00
Craig Tiller baa14a975e Update clang-format to 5.0 2017-11-03 09:09:36 -07:00
Yash Tibrewal 2f921a3f97 Remove grpc_slice_buf_cmp and change public_headers_must_be_c89 to print the addresses of public api functions to check if they can be linked to 2017-11-02 16:59:19 -07:00
Alexander Polcyn 99fdda8c8e remove use of keyword args 2017-10-31 16:58:55 -07:00
Yash Tibrewal 888691344e Merge branch 'master' into testc++ize 2017-10-31 11:24:36 -07:00
Jim King 3e0769957e
Merge pull request #13106 from Vizerai/census_update
Cleaning up census code.
2017-10-31 11:10:00 -07:00
Yash Tibrewal 268685bcbd Merge branch 'master' into testc++ize 2017-10-30 16:28:56 -07:00
Justin Burke c1d354d7f2 Support SSL server certificate reloading. 2017-10-27 13:41:44 -07:00
Jim King 52620b698e Merge branch 'master' into census_update 2017-10-26 11:27:03 -07:00
Yash Tibrewal 3318979a5f Merge branch 'master' into testc++ize 2017-10-25 16:26:03 -07:00
Yash Tibrewal 34a57d0346 rename all test core files to cc and a lot of C++ style conversions 2017-10-25 16:23:01 -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
Feng Li 692bbf942c Merge pull request #12896 from pongad/ruby-php-bin
make ruby proxy worker accept script location
2017-10-23 16:54:40 -07:00
Vizerai bb7d088ed2 Cleaning up census code. 2017-10-23 12:06:29 -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 40d3062a76 Fix call object memory leak in ruby, when call object is closed 2017-10-17 17:39:57 -07:00
Michael Darakananda 410ba6dada format 2017-10-13 11:08:43 +11:00
Frank Groeneveld fbf8128da8 Add OpenBSD support 2017-10-12 13:50:38 -07:00
Alexander Polcyn 55b3617b5a update ruby extension to compression changes 2017-10-11 20:56:27 -07:00
Muxi Yan f7a97e19cf build_project 2017-10-11 16:59:27 -07:00
Muxi Yan 4c7bc85bd8 Revert changes to "identity" "deflate" "gzip" "stream-gzip" compression algorithm names at surface API
This reverts commit 6360274841.
This reverts commit 33d7a7aa5a.
2017-10-11 16:27:51 -07:00
Michael Darakananda 5e33a3b9de Merge branch 'master' into ruby-php-bin 2017-10-09 17:09:41 +11:00
Michael Darakananda bf6185c3b1 make ruby proxy worker accept script location
This is done so that we can test other PHP clients.
2017-10-09 17:04:46 +11:00
Muxi Yan 03fc857a6f Merge remote-tracking branch 'upstream/master' into fix-stream-compression-config-interface 2017-10-06 18:47:09 -07:00
Muxi Yan 6360274841 Make the names of compression algorithms backwards compatible at surface API 2017-10-06 17:25:40 -07:00
ZhouyihaiDing d015389823 exclude uploading stats, add unconstained php benchmark
php7 build once
2017-10-06 15:25:14 -07:00
Alexander Polcyn 8c12d9eae6 Add a test under ruby GC stress mode and fix non-GC-rooted variable bug 2017-10-05 09:31:48 -07:00
apolcyn e2b4e49f39 Merge pull request #12493 from apolcyn/fix_ruby_call_mem_leak
Fix a per-call memory leak in ruby
2017-10-04 18:21:29 -07:00
Muxi Yan 906f69c1df Fix Ruby build 2017-10-04 18:00:20 -07:00
Muxi Yan 74878c7bf5 Another Ruby build fix 2017-10-03 15:49:09 -07:00
Muxi Yan 532af94e78 Fix Ruby build 2017-10-02 18:17:16 -07:00
murgatroid99 9887379158 Update version to 1.8.0-dev, update g word to 'generous' 2017-10-02 17:31:33 -07:00
Zhouyihai Ding f9a39ac7e2 Merge pull request #12718 from ZhouyihaiDing/c_ext_php
PHP benchmark: add running php with protobuf C-extension
2017-10-02 16:17:22 -07:00
Mark D. Roth 6456e494a8 Merge remote-tracking branch 'upstream/master' into plugin_credentials_api_fix 2017-09-28 15:16:14 -07:00
Alexander Polcyn f1b1ab0899 return nil from google rpc status conversion if the grpc-status-details-bin trailer wasnt set 2017-09-26 12:32:29 -07:00
ZhouyihaiDing c8e145bd93 add protobuf c_ext to php benchmark 2017-09-26 17:23:46 +00:00
Muxi Yan 1c285b9812 Merge remote-tracking branch 'upstream/master' into fix-stream-compression-config-interface 2017-09-25 12:38:17 -07:00
Mark D. Roth b4c01f9e29 Merge remote-tracking branch 'upstream/master' into plugin_credentials_api_fix 2017-09-25 12:36:30 -07:00
Muxi Yan 92d1bc11ba generate_project 2017-09-25 11:43:06 -07:00
Shaun McCormick eec7a917ba Add Ruby server interceptors 2017-09-25 09:28:04 -05:00
apolcyn 3e0905e286 Merge pull request #12681 from apolcyn/fix_ruby_sigint_mask_in_test
Dont assume sigint wasnt masked when invoking ruby tests
2017-09-22 10:08:51 -07:00
Alexander Polcyn 2f3e588099 Dont assume that sigint wasnt masked when invoking ruby tests 2017-09-21 13:48:53 -07:00
Vijay Pai efce6e1e50 Revert "Revert "Allow SerializationTraits to use grpc::ByteBuffer rather than only grpc_byte_buffer"" 2017-09-21 13:12:52 -07:00
apolcyn c0f427850c Merge pull request #12588 from apolcyn/shorten_ruby_unit_test_time
Reduce time taken by ruby unit test suite
2017-09-20 16:04:39 -07:00
apolcyn aafa875cb3 Merge pull request #12452 from apolcyn/google_rpc_status_in_ruby
Add ruby client utility for extracting Google::Rpc::Status from GRPC::Status
2017-09-18 22:17:38 -07:00
Alexander Polcyn a594ba0bd7 add a client side utility for extracting a google rpc
status from a grpc::Status
2017-09-18 13:58:53 -07:00
Yash Tibrewal dc1cd5437c Running generate_projects.sh 2017-09-18 10:51:22 -07:00
Alexander Polcyn 67fa513fba make sure calls created in ruby unit tests are completed timely 2017-09-14 19:47:49 -07:00
ZhouyihaiDing 1c87515f8d add php extension 2017-09-14 11:08:28 -07:00
Alexander Polcyn d24e966c1d fix memory leak of ruby call objects 2017-09-11 13:40:12 -07:00
Mark D. Roth 0aee498525 Merge remote-tracking branch 'upstream/master' into plugin_credentials_api_fix 2017-09-08 08:01:29 -07:00
Vijay Pai 7f6a27a4d3 Merge pull request #12372 from vjpai/armalarmadingdong
Core API change: Decouple alarm construction from setting to avoid races in MT code
2017-09-07 18:34:56 -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
Vijay Pai 58c33ba19b Decouple alarm construction from setting to avoid races in MT code 2017-09-07 11:34:13 -07:00
Jan Tattermusch 66e08cbe96 add rubocop warnings to TODO config file 2017-09-05 09:40:18 +02:00
Alexander Polcyn 010ea65be5 remove calls to optional paramaters so that the test is compatible with ruby versions < 2.1 2017-09-05 09:40:17 +02:00
Mark D. Roth 2caf021772 Change plugin credentials API to support both sync and async modes. 2017-09-01 15:04:13 -07:00
Yuchen Zeng ba23e799dc Sanity fixes 2017-08-24 23:13:09 -07:00
apolcyn f28955d40d Merge pull request #12237 from andremedeiros/fix-gc-eager-sweep
Mark error code details as global
2017-08-24 15:40:47 -07:00
Muxi Yan 7c62a35c6f Merge remote-tracking branch 'upstream/master' into stream_compression_config 2017-08-21 15:19:50 -07:00
Andre Medeiros b0eae8a08e Mark error code details as global 2017-08-21 15:50:47 -04:00
David G. Quintas 0f924b7d55 Merge pull request #12213 from dgquintas/v1.7.x-version-bump
Master version bump to 1.7.x
2017-08-17 13:10:36 -07:00
David Garcia Quintas 713597f1cd Master version bump to 1.7.x 2017-08-16 20:59:05 -07:00
John Millikin e387852303
Catch NotImplementedError exceptions and forward them to the client.
The old code only caught `StandardError`, which doesn't include
`NotImplementedError`. Despite the name, this error indicates a failure
of low-level OS interaction rather than unimplemented user code.

Any errors not caught by this section will cause the server to
terminate, which is generally undesirable because it might be happily
handling other requests.
2017-08-16 11:25:18 -07:00
Muxi Yan 229125abb1 Merge remote-tracking branch 'upstream/master' into stream_compression_config 2017-08-11 16:15:53 -07:00
apolcyn 240f35d6fb Merge pull request #10636 from apolcyn/alleviate_10526
cancel calls on ruby client bidi write loop exceptions and surface the errror
2017-08-07 13:07:09 -07:00
Alexander Polcyn c6627caf3a cancel calls with an error message when bidi write loop fails with user
error
2017-08-07 10:37:51 -07:00
Muxi Yan 69b8fe02b6 Merge branch 'master' into stream_compression_config 2017-08-02 16:57:23 -07:00
Alexander Polcyn 39088914ef fix cancellation test flake 2017-07-31 14:58:24 -07:00
apolcyn cace6a9e4f Merge pull request #11963 from apolcyn/fix_ruby_bidi_error_terminate
Improve completion of bidi calls when there is an initial error
2017-07-27 22:27:54 -07:00
Alexander Polcyn cd22f11905 properly finish bidi calls when there is an initial error 2017-07-27 17:54:59 -07:00
Muxi Yan 0603895423 Merge remote-tracking branch 'upstream/master' into stream_compression_config 2017-07-26 17:02:31 -07:00
Muxi Yan b32c23a9e7 generate_project 2017-07-26 14:49:53 -07:00
yang-g 16149ad456 regenerate projects 2017-07-25 07:45:23 -07:00
apolcyn f064af3dbf Merge pull request #11849 from apolcyn/fix_ruby_md_mem_leaks_master
Fix memory leak in sent ruby metadata
2017-07-24 14:20:46 -07:00
Alexander Polcyn 11fade7c14 Fix a ruby test flake 2017-07-21 19:22:10 -07:00