grpc 1.11.0 → 1.11.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of grpc might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e85078f204d4c44d50c6f889a82228c659fecad14a61a436a2ca38d696d6cf1b
4
- data.tar.gz: 4d09c33a0e9045449b97f4590157ee0a60135519e8c63d22ed7b2b8925c383ec
3
+ metadata.gz: 24050851b081aa76726e4c770f33d3d05423fb4354553398002a013ab82c0a83
4
+ data.tar.gz: 20d0b631456585eb90d7f35e6e6da85e465e24dac5b9fa474169fcb4f327e395
5
5
  SHA512:
6
- metadata.gz: 8281aaf0f79317a724ec32374c468a9f197e4b26f6b9ecf42756118a16e4998fd21fae8fef67869e91b073b2570d4e628bf30c96e37e46e24617d242b65b5f78
7
- data.tar.gz: fb6b58e34f642f277528cfc9e1e185d0a5d68257b56e0982d67c9ac08e068c4f977ecd3002dc57a19e8e60805239037517d9368ee92cbe7b3988cdc965ed69c0
6
+ metadata.gz: 8a01d548fc008c9eda1ae178bbe9d6cebbb3f754454c436821b0df96f2efdb520c72ad1409d99892a1889bf09731e58eb6f1ecb84db1da02a39d75e43d78aafa
7
+ data.tar.gz: fba1972a421c4e00bdbbf33a35b0a0ffbcd15c737ef27e56b77e8d3823a778f16f6aca4cfb1c6a3be24afe9f623b6a5c39f5611eb8dc8030c2e43532e41dccb1
data/Makefile CHANGED
@@ -421,8 +421,8 @@ Q = @
421
421
  endif
422
422
 
423
423
  CORE_VERSION = 6.0.0
424
- CPP_VERSION = 1.11.0
425
- CSHARP_VERSION = 1.11.0
424
+ CPP_VERSION = 1.11.1
425
+ CSHARP_VERSION = 1.11.1
426
426
 
427
427
  CPPFLAGS_NO_ARCH += $(addprefix -I, $(INCLUDES)) $(addprefix -D, $(DEFINES))
428
428
  CPPFLAGS += $(CPPFLAGS_NO_ARCH) $(ARCH_FLAGS)
@@ -135,6 +135,7 @@ AresDnsResolver::AresDnsResolver(const ResolverArgs& args)
135
135
  if (path[0] == '/') ++path;
136
136
  name_to_resolve_ = gpr_strdup(path);
137
137
  // Get DNS server from URI authority.
138
+ dns_server_ = nullptr;
138
139
  if (0 != strcmp(args.uri->authority, "")) {
139
140
  dns_server_ = gpr_strdup(args.uri->authority);
140
141
  }
@@ -362,6 +363,15 @@ void AresDnsResolver::OnResolvedLocked(void* arg, grpc_error* error) {
362
363
  }
363
364
 
364
365
  void AresDnsResolver::MaybeStartResolvingLocked() {
366
+ // If there is an existing timer, the time it fires is the earliest time we
367
+ // can start the next resolution.
368
+ if (have_next_resolution_timer_) {
369
+ // TODO(dgq): remove the following two lines once Pick First stops
370
+ // discarding subchannels after selecting.
371
+ ++resolved_version_;
372
+ MaybeFinishNextLocked();
373
+ return;
374
+ }
365
375
  if (last_resolution_timestamp_ >= 0) {
366
376
  const grpc_millis earliest_next_resolution =
367
377
  last_resolution_timestamp_ + min_time_between_resolutions_;
@@ -374,17 +384,15 @@ void AresDnsResolver::MaybeStartResolvingLocked() {
374
384
  "In cooldown from last resolution (from %" PRIdPTR
375
385
  " ms ago). Will resolve again in %" PRIdPTR " ms",
376
386
  last_resolution_ago, ms_until_next_resolution);
377
- if (!have_next_resolution_timer_) {
378
- have_next_resolution_timer_ = true;
379
- // TODO(roth): We currently deal with this ref manually. Once the
380
- // new closure API is done, find a way to track this ref with the timer
381
- // callback as part of the type system.
382
- RefCountedPtr<Resolver> self =
383
- Ref(DEBUG_LOCATION, "next_resolution_timer_cooldown");
384
- self.release();
385
- grpc_timer_init(&next_resolution_timer_, ms_until_next_resolution,
386
- &on_next_resolution_);
387
- }
387
+ have_next_resolution_timer_ = true;
388
+ // TODO(roth): We currently deal with this ref manually. Once the
389
+ // new closure API is done, find a way to track this ref with the timer
390
+ // callback as part of the type system.
391
+ RefCountedPtr<Resolver> self =
392
+ Ref(DEBUG_LOCATION, "next_resolution_timer_cooldown");
393
+ self.release();
394
+ grpc_timer_init(&next_resolution_timer_, ms_until_next_resolution,
395
+ &on_next_resolution_);
388
396
  // TODO(dgq): remove the following two lines once Pick First stops
389
397
  // discarding subchannels after selecting.
390
398
  ++resolved_version_;
@@ -396,6 +404,7 @@ void AresDnsResolver::MaybeStartResolvingLocked() {
396
404
  }
397
405
 
398
406
  void AresDnsResolver::StartResolvingLocked() {
407
+ gpr_log(GPR_DEBUG, "Start resolving.");
399
408
  // TODO(roth): We currently deal with this ref manually. Once the
400
409
  // new closure API is done, find a way to track this ref with the timer
401
410
  // callback as part of the type system.
@@ -153,7 +153,10 @@ static void grpc_ares_request_unref(grpc_ares_request* r) {
153
153
  /* If there are no pending queries, invoke on_done callback and destroy the
154
154
  request */
155
155
  if (gpr_unref(&r->pending_queries)) {
156
- grpc_cares_wrapper_address_sorting_sort(*(r->lb_addrs_out));
156
+ grpc_lb_addresses* lb_addrs = *(r->lb_addrs_out);
157
+ if (lb_addrs != nullptr) {
158
+ grpc_cares_wrapper_address_sorting_sort(lb_addrs);
159
+ }
157
160
  GRPC_CLOSURE_SCHED(r->on_done, r->error);
158
161
  gpr_mu_destroy(&r->mu);
159
162
  grpc_ares_ev_driver_destroy(r->ev_driver);
@@ -236,6 +236,15 @@ void NativeDnsResolver::OnResolvedLocked(void* arg, grpc_error* error) {
236
236
  }
237
237
 
238
238
  void NativeDnsResolver::MaybeStartResolvingLocked() {
239
+ // If there is an existing timer, the time it fires is the earliest time we
240
+ // can start the next resolution.
241
+ if (have_next_resolution_timer_) {
242
+ // TODO(dgq): remove the following two lines once Pick First stops
243
+ // discarding subchannels after selecting.
244
+ ++resolved_version_;
245
+ MaybeFinishNextLocked();
246
+ return;
247
+ }
239
248
  if (last_resolution_timestamp_ >= 0) {
240
249
  const grpc_millis earliest_next_resolution =
241
250
  last_resolution_timestamp_ + min_time_between_resolutions_;
@@ -248,17 +257,15 @@ void NativeDnsResolver::MaybeStartResolvingLocked() {
248
257
  "In cooldown from last resolution (from %" PRIdPTR
249
258
  " ms ago). Will resolve again in %" PRIdPTR " ms",
250
259
  last_resolution_ago, ms_until_next_resolution);
251
- if (!have_next_resolution_timer_) {
252
- have_next_resolution_timer_ = true;
253
- // TODO(roth): We currently deal with this ref manually. Once the
254
- // new closure API is done, find a way to track this ref with the timer
255
- // callback as part of the type system.
256
- RefCountedPtr<Resolver> self =
257
- Ref(DEBUG_LOCATION, "next_resolution_timer_cooldown");
258
- self.release();
259
- grpc_timer_init(&next_resolution_timer_, ms_until_next_resolution,
260
- &on_next_resolution_);
261
- }
260
+ have_next_resolution_timer_ = true;
261
+ // TODO(roth): We currently deal with this ref manually. Once the
262
+ // new closure API is done, find a way to track this ref with the timer
263
+ // callback as part of the type system.
264
+ RefCountedPtr<Resolver> self =
265
+ Ref(DEBUG_LOCATION, "next_resolution_timer_cooldown");
266
+ self.release();
267
+ grpc_timer_init(&next_resolution_timer_, ms_until_next_resolution,
268
+ &on_next_resolution_);
262
269
  // TODO(dgq): remove the following two lines once Pick First stops
263
270
  // discarding subchannels after selecting.
264
271
  ++resolved_version_;
@@ -270,6 +277,7 @@ void NativeDnsResolver::MaybeStartResolvingLocked() {
270
277
  }
271
278
 
272
279
  void NativeDnsResolver::StartResolvingLocked() {
280
+ gpr_log(GPR_DEBUG, "Start resolving.");
273
281
  // TODO(roth): We currently deal with this ref manually. Once the
274
282
  // new closure API is done, find a way to track this ref with the timer
275
283
  // callback as part of the type system.
@@ -14,5 +14,5 @@
14
14
 
15
15
  # GRPC contains the General RPC module.
16
16
  module GRPC
17
- VERSION = '1.11.0'
17
+ VERSION = '1.11.1'
18
18
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grpc
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.11.0
4
+ version: 1.11.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - gRPC Authors
8
8
  autorequire:
9
9
  bindir: src/ruby/bin
10
10
  cert_chain: []
11
- date: 2018-04-13 00:00:00.000000000 Z
11
+ date: 2018-05-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-protobuf
@@ -1549,38 +1549,38 @@ specification_version: 4
1549
1549
  summary: GRPC system in Ruby
1550
1550
  test_files:
1551
1551
  - src/ruby/spec/time_consts_spec.rb
1552
- - src/ruby/spec/compression_options_spec.rb
1553
1552
  - src/ruby/spec/client_auth_spec.rb
1554
- - src/ruby/spec/pb/duplicate/codegen_spec.rb
1555
- - src/ruby/spec/pb/health/checker_spec.rb
1556
- - src/ruby/spec/pb/package_with_underscore/checker_spec.rb
1557
- - src/ruby/spec/pb/package_with_underscore/service.proto
1558
- - src/ruby/spec/pb/package_with_underscore/data.proto
1559
- - src/ruby/spec/spec_helper.rb
1560
- - src/ruby/spec/server_spec.rb
1561
- - src/ruby/spec/google_rpc_status_utils_spec.rb
1562
- - src/ruby/spec/client_server_spec.rb
1563
- - src/ruby/spec/channel_credentials_spec.rb
1564
- - src/ruby/spec/call_credentials_spec.rb
1565
- - src/ruby/spec/call_spec.rb
1566
- - src/ruby/spec/channel_connection_spec.rb
1567
- - src/ruby/spec/channel_spec.rb
1568
- - src/ruby/spec/error_sanity_spec.rb
1569
- - src/ruby/spec/support/helpers.rb
1570
- - src/ruby/spec/support/services.rb
1571
- - src/ruby/spec/server_credentials_spec.rb
1572
1553
  - src/ruby/spec/generic/interceptor_registry_spec.rb
1554
+ - src/ruby/spec/generic/rpc_desc_spec.rb
1555
+ - src/ruby/spec/generic/rpc_server_spec.rb
1556
+ - src/ruby/spec/generic/service_spec.rb
1573
1557
  - src/ruby/spec/generic/client_stub_spec.rb
1574
1558
  - src/ruby/spec/generic/server_interceptors_spec.rb
1575
- - src/ruby/spec/generic/rpc_server_spec.rb
1576
- - src/ruby/spec/generic/rpc_desc_spec.rb
1577
1559
  - src/ruby/spec/generic/client_interceptors_spec.rb
1578
- - src/ruby/spec/generic/service_spec.rb
1579
1560
  - src/ruby/spec/generic/active_call_spec.rb
1580
1561
  - src/ruby/spec/generic/rpc_server_pool_spec.rb
1581
- - src/ruby/spec/testdata/client.key
1582
- - src/ruby/spec/testdata/README
1583
- - src/ruby/spec/testdata/ca.pem
1584
- - src/ruby/spec/testdata/client.pem
1562
+ - src/ruby/spec/server_spec.rb
1563
+ - src/ruby/spec/client_server_spec.rb
1564
+ - src/ruby/spec/pb/package_with_underscore/checker_spec.rb
1565
+ - src/ruby/spec/pb/package_with_underscore/data.proto
1566
+ - src/ruby/spec/pb/package_with_underscore/service.proto
1567
+ - src/ruby/spec/pb/duplicate/codegen_spec.rb
1568
+ - src/ruby/spec/pb/health/checker_spec.rb
1569
+ - src/ruby/spec/server_credentials_spec.rb
1570
+ - src/ruby/spec/channel_spec.rb
1571
+ - src/ruby/spec/support/helpers.rb
1572
+ - src/ruby/spec/support/services.rb
1573
+ - src/ruby/spec/call_spec.rb
1574
+ - src/ruby/spec/error_sanity_spec.rb
1575
+ - src/ruby/spec/spec_helper.rb
1585
1576
  - src/ruby/spec/testdata/server1.pem
1577
+ - src/ruby/spec/testdata/client.pem
1586
1578
  - src/ruby/spec/testdata/server1.key
1579
+ - src/ruby/spec/testdata/README
1580
+ - src/ruby/spec/testdata/client.key
1581
+ - src/ruby/spec/testdata/ca.pem
1582
+ - src/ruby/spec/call_credentials_spec.rb
1583
+ - src/ruby/spec/channel_credentials_spec.rb
1584
+ - src/ruby/spec/channel_connection_spec.rb
1585
+ - src/ruby/spec/google_rpc_status_utils_spec.rb
1586
+ - src/ruby/spec/compression_options_spec.rb