retry_cancel_with_multiple_send_batches.cc
Go to the documentation of this file.
1 /*
2  *
3  * Copyright 2017 gRPC authors.
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  */
18 
19 #include <stdio.h>
20 #include <string.h>
21 
22 #include "absl/strings/str_format.h"
23 
24 #include <grpc/byte_buffer.h>
25 #include <grpc/grpc.h>
26 #include <grpc/support/alloc.h>
27 #include <grpc/support/log.h>
29 #include <grpc/support/time.h>
30 
42 
43 static void* tag(intptr_t t) { return reinterpret_cast<void*>(t); }
44 
46  const char* test_name,
47  grpc_channel_args* client_args,
48  grpc_channel_args* server_args) {
50  gpr_log(GPR_INFO, "Running test: %s/%s", test_name, config.name);
51  f = config.create_fixture(client_args, server_args);
52  config.init_server(&f, server_args);
53  config.init_client(&f, client_args);
54  return f;
55 }
56 
59 }
60 
62  return n_seconds_from_now(5);
63 }
64 
66  grpc_event ev;
67  do {
69  } while (ev.type != GRPC_QUEUE_SHUTDOWN);
70 }
71 
73  if (!f->server) return;
74  grpc_server_shutdown_and_notify(f->server, f->cq, tag(1000));
75  grpc_event ev;
76  do {
78  nullptr);
79  } while (ev.type != GRPC_OP_COMPLETE || ev.tag != tag(1000));
80  grpc_server_destroy(f->server);
81  f->server = nullptr;
82 }
83 
85  if (!f->client) return;
86  grpc_channel_destroy(f->client);
87  f->client = nullptr;
88 }
89 
93 
95  drain_cq(f->cq);
97 }
98 
99 // Tests cancellation with multiple send op batches.
102  grpc_call* c;
103  grpc_op ops[6];
104  grpc_op* op;
107  grpc_slice request_payload_slice = grpc_slice_from_static_string("foo");
108  grpc_byte_buffer* request_payload =
109  grpc_raw_byte_buffer_create(&request_payload_slice, 1);
114  char* peer;
115 
116  std::string service_config_string = absl::StrFormat(
117  "{\n"
118  " \"methodConfig\": [ {\n"
119  " \"name\": [\n"
120  " { \"service\": \"service\", \"method\": \"method\" }\n"
121  " ],\n"
122  " \"retryPolicy\": {\n"
123  " \"maxAttempts\": 2,\n"
124  " \"initialBackoff\": \"%ds\",\n"
125  " \"maxBackoff\": \"120s\",\n"
126  " \"backoffMultiplier\": 1.6,\n"
127  " \"retryableStatusCodes\": [ \"ABORTED\" ]\n"
128  " }\n"
129  " } ]\n"
130  "}",
132 
133  grpc_arg args[] = {
135  const_cast<char*>(GRPC_ARG_ENABLE_RETRIES), 1),
137  const_cast<char*>(GRPC_ARG_SERVICE_CONFIG),
138  const_cast<char*>(service_config_string.c_str())),
139  };
140  grpc_channel_args client_args = {GPR_ARRAY_SIZE(args), args};
141  std::string name =
142  absl::StrCat("retry_cancel_with_multiple_send_batches/", mode.name);
144  begin_test(config, name.c_str(), &client_args, nullptr);
145 
146  cq_verifier* cqv = cq_verifier_create(f.cq);
147 
148  gpr_timespec deadline = n_seconds_from_now(3);
149  c = grpc_channel_create_call(f.client, nullptr, GRPC_PROPAGATE_DEFAULTS, f.cq,
150  grpc_slice_from_static_string("/service/method"),
151  nullptr, deadline, nullptr);
152  GPR_ASSERT(c);
153 
154  peer = grpc_call_get_peer(c);
155  GPR_ASSERT(peer != nullptr);
156  gpr_log(GPR_DEBUG, "client_peer_before_call=%s", peer);
157  gpr_free(peer);
158 
161 
162  // Start a batch containing send_initial_metadata.
163  memset(ops, 0, sizeof(ops));
164  op = ops;
167  op++;
168  error = grpc_call_start_batch(c, ops, static_cast<size_t>(op - ops), tag(1),
169  nullptr);
171 
172  // Start a batch containing send_message.
173  memset(ops, 0, sizeof(ops));
174  op = ops;
176  op->data.send_message.send_message = request_payload;
177  op++;
178  error = grpc_call_start_batch(c, ops, static_cast<size_t>(op - ops), tag(2),
179  nullptr);
181 
182  // Start a batch containing send_trailing_metadata.
183  memset(ops, 0, sizeof(ops));
184  op = ops;
186  op++;
187  error = grpc_call_start_batch(c, ops, static_cast<size_t>(op - ops), tag(3),
188  nullptr);
190 
191  // Start a batch containing recv ops.
192  memset(ops, 0, sizeof(ops));
193  op = ops;
196  op++;
199  op++;
204  op++;
205  error = grpc_call_start_batch(c, ops, static_cast<size_t>(op - ops), tag(4),
206  nullptr);
208 
209  // Initiate cancellation.
210  GPR_ASSERT(GRPC_CALL_OK == mode.initiate_cancel(c, nullptr));
211 
212  // Client ops should now complete.
213  CQ_EXPECT_COMPLETION(cqv, tag(1), false);
214  CQ_EXPECT_COMPLETION(cqv, tag(2), false);
215  CQ_EXPECT_COMPLETION(cqv, tag(3), false);
216  CQ_EXPECT_COMPLETION(cqv, tag(4), true);
217  cq_verify(cqv);
218 
219  gpr_log(GPR_INFO, "status=%d expected=%d", status, mode.expect_status);
220  GPR_ASSERT(status == mode.expect_status);
221 
225  grpc_byte_buffer_destroy(request_payload);
227 
229 
230  cq_verifier_destroy(cqv);
231 
232  end_test(&f);
233  config.tear_down_data(&f);
234 }
235 
236 namespace {
237 
238 // A filter that fails all batches with send ops.
239 class FailSendOpsFilter {
240  public:
242 
243  private:
244  class CallData {
245  public:
247  const grpc_call_element_args* args) {
248  new (elem->call_data) CallData(args);
249  return GRPC_ERROR_NONE;
250  }
251 
252  static void Destroy(grpc_call_element* elem,
253  const grpc_call_final_info* /*final_info*/,
254  grpc_closure* /*ignored*/) {
255  auto* calld = static_cast<CallData*>(elem->call_data);
256  calld->~CallData();
257  }
258 
259  static void StartTransportStreamOpBatch(
261  auto* calld = static_cast<CallData*>(elem->call_data);
265  batch,
267  "FailSendOpsFilter failing batch"),
269  calld->call_combiner_);
270  return;
271  }
273  }
274 
275  private:
276  explicit CallData(const grpc_call_element_args* args)
277  : call_combiner_(args->call_combiner) {}
278 
280  };
281 
283  grpc_channel_element_args* /*args*/) {
284  new (elem->channel_data) FailSendOpsFilter();
285  return GRPC_ERROR_NONE;
286  }
287 
288  static void Destroy(grpc_channel_element* elem) {
289  auto* chand = static_cast<FailSendOpsFilter*>(elem->channel_data);
290  chand->~FailSendOpsFilter();
291  }
292 };
293 
295  CallData::StartTransportStreamOpBatch,
296  nullptr,
298  sizeof(CallData),
302  sizeof(FailSendOpsFilter),
303  Init,
305  Destroy,
307  "FailSendOpsFilter",
308 };
309 
310 bool MaybeAddFilter(grpc_core::ChannelStackBuilder* builder) {
311  // Skip on proxy (which explicitly disables retries).
312  if (!builder->channel_args()
313  .GetBool(GRPC_ARG_ENABLE_RETRIES)
314  .value_or(true)) {
315  return true;
316  }
317  // Install filter.
318  builder->PrependFilter(&FailSendOpsFilter::kFilterVtable);
319  return true;
320 }
321 
322 } // namespace
323 
329  builder->channel_init()->RegisterStage(GRPC_CLIENT_SUBCHANNEL, 0,
330  MaybeAddFilter);
331  },
332  [config]() {
333  for (size_t i = 0; i < GPR_ARRAY_SIZE(cancellation_modes); ++i) {
336  }
337  });
338 }
339 
drain_cq
static void drain_cq(grpc_completion_queue *cq)
Definition: retry_cancel_with_multiple_send_batches.cc:65
grpc_arg
Definition: grpc_types.h:103
grpc_slice_unref
GPRAPI void grpc_slice_unref(grpc_slice s)
Definition: slice_api.cc:32
GPR_INFO
#define GPR_INFO
Definition: include/grpc/impl/codegen/log.h:56
grpc_op::grpc_op_data::grpc_op_send_message::send_message
struct grpc_byte_buffer * send_message
Definition: grpc_types.h:668
grpc_call_error
grpc_call_error
Definition: grpc_types.h:464
grpc_core::CallCombiner
Definition: call_combiner.h:50
GRPC_ERROR_NONE
#define GRPC_ERROR_NONE
Definition: error.h:234
grpc_op::grpc_op_data::grpc_op_recv_status_on_client::trailing_metadata
grpc_metadata_array * trailing_metadata
Definition: grpc_types.h:701
grpc_timeout_seconds_to_deadline
gpr_timespec grpc_timeout_seconds_to_deadline(int64_t time_s)
Definition: test/core/util/test_config.cc:81
log.h
core_configuration.h
grpc_op::grpc_op_data::grpc_op_recv_status_on_client::status
grpc_status_code * status
Definition: grpc_types.h:702
grpc_raw_byte_buffer_create
GRPCAPI grpc_byte_buffer * grpc_raw_byte_buffer_create(grpc_slice *slices, size_t nslices)
Definition: byte_buffer.cc:34
absl::StrCat
std::string StrCat(const AlphaNum &a, const AlphaNum &b)
Definition: abseil-cpp/absl/strings/str_cat.cc:98
memset
return memset(p, 0, total)
absl::StrFormat
ABSL_MUST_USE_RESULT std::string StrFormat(const FormatSpec< Args... > &format, const Args &... args)
Definition: abseil-cpp/absl/strings/str_format.h:338
grpc_op::grpc_op_data::send_initial_metadata
struct grpc_op::grpc_op_data::grpc_op_send_initial_metadata send_initial_metadata
grpc_channel_next_op
void grpc_channel_next_op(grpc_channel_element *elem, grpc_transport_op *op)
Definition: channel_stack.cc:264
grpc_call_get_peer
GRPCAPI char * grpc_call_get_peer(grpc_call *call)
Definition: call.cc:1774
grpc_metadata_array
Definition: grpc_types.h:579
grpc_core::CoreConfiguration::Builder
Definition: core_configuration.h:41
string.h
gpr_free
GPRAPI void gpr_free(void *ptr)
Definition: alloc.cc:51
useful.h
grpc_transport_stream_op_batch_finish_with_failure
void grpc_transport_stream_op_batch_finish_with_failure(grpc_transport_stream_op_batch *batch, grpc_error_handle error, grpc_core::CallCombiner *call_combiner)
Definition: transport.cc:151
grpc_channel_element
Definition: channel_stack.h:186
elem
Timer elem
Definition: event_engine/iomgr_event_engine/timer_heap_test.cc:109
testing::internal::string
::std::string string
Definition: bloaty/third_party/protobuf/third_party/googletest/googletest/include/gtest/internal/gtest-port.h:881
error
grpc_error_handle error
Definition: retry_filter.cc:499
grpc_status_code
grpc_status_code
Definition: include/grpc/impl/codegen/status.h:28
GRPC_QUEUE_SHUTDOWN
@ GRPC_QUEUE_SHUTDOWN
Definition: grpc_types.h:554
GRPC_OP_COMPLETE
@ GRPC_OP_COMPLETE
Definition: grpc_types.h:558
shutdown_client
static void shutdown_client(grpc_end2end_test_fixture *f)
Definition: retry_cancel_with_multiple_send_batches.cc:84
GRPC_CALL_OK
@ GRPC_CALL_OK
Definition: grpc_types.h:466
status
absl::Status status
Definition: rls.cc:251
google::protobuf::python::cmessage::Init
static int Init(CMessage *self, PyObject *args, PyObject *kwargs)
Definition: bloaty/third_party/protobuf/python/google/protobuf/pyext/message.cc:1287
mode
const char int mode
Definition: bloaty/third_party/zlib/contrib/minizip/ioapi.h:135
setup.name
name
Definition: setup.py:542
time.h
grpc_channel_arg_string_create
grpc_arg grpc_channel_arg_string_create(char *name, char *value)
Definition: channel_args.cc:476
grpc_call_stack_ignore_set_pollset_or_pollset_set
void grpc_call_stack_ignore_set_pollset_or_pollset_set(grpc_call_element *, grpc_polling_entity *)
Definition: channel_stack.cc:233
GRPC_CLIENT_SUBCHANNEL
@ GRPC_CLIENT_SUBCHANNEL
Definition: channel_stack_type.h:29
retry_cancel_with_multiple_send_batches_pre_init
void retry_cancel_with_multiple_send_batches_pre_init(void)
Definition: retry_cancel_with_multiple_send_batches.cc:340
grpc_call_element
Definition: channel_stack.h:194
grpc_end2end_test_config
Definition: end2end_tests.h:53
tag
static void * tag(intptr_t t)
Definition: retry_cancel_with_multiple_send_batches.cc:43
grpc_channel_args
Definition: grpc_types.h:132
end_test
static void end_test(grpc_end2end_test_fixture *f)
Definition: retry_cancel_with_multiple_send_batches.cc:90
kFilterVtable
static const grpc_channel_filter kFilterVtable
Definition: client_channel.cc:293
grpc_op::grpc_op_data::recv_message
struct grpc_op::grpc_op_data::grpc_op_recv_message recv_message
grpc_core::ChannelStackBuilder
Definition: channel_stack_builder.h:41
grpc_op::data
union grpc_op::grpc_op_data data
grpc_end2end_test_fixture
Definition: end2end_tests.h:46
grpc_metadata_array_destroy
GRPCAPI void grpc_metadata_array_destroy(grpc_metadata_array *array)
Definition: metadata_array.cc:35
GRPC_ARG_ENABLE_RETRIES
#define GRPC_ARG_ENABLE_RETRIES
Definition: grpc_types.h:396
grpc_op::grpc_op_data::grpc_op_recv_message::recv_message
struct grpc_byte_buffer ** recv_message
Definition: grpc_types.h:693
string_util.h
trailing_metadata_recv
static grpc_metadata_array trailing_metadata_recv
Definition: test/core/fling/client.cc:43
c
void c(T a)
Definition: miscompile_with_no_unique_address_test.cc:40
profile_analyzer.builder
builder
Definition: profile_analyzer.py:159
channel_init.h
autogen_x86imm.f
f
Definition: autogen_x86imm.py:9
asyncio_get_stats.args
args
Definition: asyncio_get_stats.py:40
GRPC_OP_RECV_INITIAL_METADATA
@ GRPC_OP_RECV_INITIAL_METADATA
Definition: grpc_types.h:617
GPR_ASSERT
#define GPR_ASSERT(x)
Definition: include/grpc/impl/codegen/log.h:94
cancel_test_helpers.h
config
struct config_s config
grpc_channel_stack_no_post_init
void grpc_channel_stack_no_post_init(grpc_channel_stack *, grpc_channel_element *)
Definition: channel_stack.cc:282
grpc_call_unref
GRPCAPI void grpc_call_unref(grpc_call *call)
Definition: call.cc:1770
channel_stack.h
gpr_log
GPRAPI void gpr_log(const char *file, int line, gpr_log_severity severity, const char *format,...) GPR_PRINT_FORMAT_CHECK(4
grpc_event
Definition: grpc_types.h:564
grpc_completion_queue
Definition: completion_queue.cc:347
cq_verifier_destroy
void cq_verifier_destroy(cq_verifier *v)
Definition: cq_verifier.cc:92
grpc.h
grpc_call
struct grpc_call grpc_call
Definition: grpc_types.h:70
response_payload_recv
static grpc_byte_buffer * response_payload_recv
Definition: test/core/fling/client.cc:44
grpc_byte_buffer
Definition: grpc_types.h:43
grpc_channel_next_get_info
void grpc_channel_next_get_info(grpc_channel_element *elem, const grpc_channel_info *channel_info)
Definition: channel_stack.cc:258
test_retry_cancel_with_multiple_send_batches
static void test_retry_cancel_with_multiple_send_batches(grpc_end2end_test_config config, cancellation_mode mode)
Definition: retry_cancel_with_multiple_send_batches.cc:100
grpc_test_slowdown_factor
int64_t grpc_test_slowdown_factor()
Definition: test/core/util/test_config.cc:76
grpc_op
Definition: grpc_types.h:640
GRPC_OP_SEND_MESSAGE
@ GRPC_OP_SEND_MESSAGE
Definition: grpc_types.h:602
grpc_slice_from_static_string
GPRAPI grpc_slice grpc_slice_from_static_string(const char *source)
Definition: slice/slice.cc:89
cq_verifier_create
cq_verifier * cq_verifier_create(grpc_completion_queue *cq)
Definition: cq_verifier.cc:86
call_combiner_
CallCombiner * call_combiner_
Definition: client_channel.cc:393
grpc_slice
Definition: include/grpc/impl/codegen/slice.h:65
intptr_t
_W64 signed int intptr_t
Definition: stdint-msvc2008.h:118
cq_verifier
Definition: cq_verifier.cc:76
grpc_call_next_op
void grpc_call_next_op(grpc_call_element *elem, grpc_transport_stream_op_batch *op)
Definition: channel_stack.cc:251
grpc_server_destroy
GRPCAPI void grpc_server_destroy(grpc_server *server)
Definition: src/core/lib/surface/server.cc:1519
grpc_call_element_args
Definition: channel_stack.h:80
batch
grpc_transport_stream_op_batch * batch
Definition: retry_filter.cc:243
CQ_EXPECT_COMPLETION
#define CQ_EXPECT_COMPLETION(v, tag, success)
Definition: cq_verifier.h:58
end2end_tests.h
n
int n
Definition: abseil-cpp/absl/container/btree_test.cc:1080
grpc_channel_filter
Definition: channel_stack.h:111
grpc_op::op
grpc_op_type op
Definition: grpc_types.h:642
GRPC_ERROR_CREATE_FROM_STATIC_STRING
#define GRPC_ERROR_CREATE_FROM_STATIC_STRING(desc)
Definition: error.h:291
shutdown_server
static void shutdown_server(grpc_end2end_test_fixture *f)
Definition: retry_cancel_with_multiple_send_batches.cc:72
grpc_op::grpc_op_data::grpc_op_send_initial_metadata::count
size_t count
Definition: grpc_types.h:653
grpc_op::grpc_op_data::grpc_op_recv_status_on_client::status_details
grpc_slice * status_details
Definition: grpc_types.h:703
details
static grpc_slice details
Definition: test/core/fling/client.cc:46
grpc_channel_create_call
GRPCAPI grpc_call * grpc_channel_create_call(grpc_channel *channel, grpc_call *parent_call, uint32_t propagation_mask, grpc_completion_queue *completion_queue, grpc_slice method, const grpc_slice *host, gpr_timespec deadline, void *reserved)
Definition: channel.cc:311
GRPC_OP_RECV_MESSAGE
@ GRPC_OP_RECV_MESSAGE
Definition: grpc_types.h:621
GPR_ARRAY_SIZE
#define GPR_ARRAY_SIZE(array)
Definition: useful.h:129
grpc_transport_stream_op_batch::send_trailing_metadata
bool send_trailing_metadata
Definition: transport.h:313
GRPC_PROPAGATE_DEFAULTS
#define GRPC_PROPAGATE_DEFAULTS
Definition: propagation_bits.h:45
phony_transport::Destroy
void Destroy(grpc_transport *)
Definition: bm_call_create.cc:443
retry_cancel_with_multiple_send_batches
void retry_cancel_with_multiple_send_batches(grpc_end2end_test_config config)
Definition: retry_cancel_with_multiple_send_batches.cc:324
cancellation_modes
static const cancellation_mode cancellation_modes[]
Definition: cancel_test_helpers.h:36
grpc_transport_stream_op_batch::send_message
bool send_message
Definition: transport.h:316
grpc_channel_arg_integer_create
grpc_arg grpc_channel_arg_integer_create(char *name, int value)
Definition: channel_args.cc:484
grpc_error_set_int
grpc_error_handle grpc_error_set_int(grpc_error_handle src, grpc_error_ints which, intptr_t value)
Definition: error.cc:613
cq_verifier.h
GRPC_ARG_SERVICE_CONFIG
#define GRPC_ARG_SERVICE_CONFIG
Definition: grpc_types.h:304
grpc_completion_queue_destroy
GRPCAPI void grpc_completion_queue_destroy(grpc_completion_queue *cq)
Definition: completion_queue.cc:1424
GRPC_OP_SEND_INITIAL_METADATA
@ GRPC_OP_SEND_INITIAL_METADATA
Definition: grpc_types.h:598
grpc_op::grpc_op_data::send_message
struct grpc_op::grpc_op_data::grpc_op_send_message send_message
GRPC_STATUS_ABORTED
@ GRPC_STATUS_ABORTED
Definition: include/grpc/impl/codegen/status.h:104
alloc.h
grpc_core::BuildCoreConfiguration
void BuildCoreConfiguration(CoreConfiguration::Builder *builder)
Definition: grpc_plugin_registry.cc:109
grpc_op::grpc_op_data::recv_status_on_client
struct grpc_op::grpc_op_data::grpc_op_recv_status_on_client recv_status_on_client
grpc_server_shutdown_and_notify
GRPCAPI void grpc_server_shutdown_and_notify(grpc_server *server, grpc_completion_queue *cq, void *tag)
Definition: src/core/lib/surface/server.cc:1503
grpc_byte_buffer_destroy
GRPCAPI void grpc_byte_buffer_destroy(grpc_byte_buffer *bb)
Definition: byte_buffer.cc:81
grpc_completion_queue_next
GRPCAPI grpc_event grpc_completion_queue_next(grpc_completion_queue *cq, gpr_timespec deadline, void *reserved)
Definition: completion_queue.cc:1133
cq_verify
void cq_verify(cq_verifier *v, int timeout_sec)
Definition: cq_verifier.cc:268
grpc_transport_stream_op_batch::send_initial_metadata
bool send_initial_metadata
Definition: transport.h:310
grpc_completion_queue_shutdown
GRPCAPI void grpc_completion_queue_shutdown(grpc_completion_queue *cq)
Definition: completion_queue.cc:1416
grpc_channel_destroy
GRPCAPI void grpc_channel_destroy(grpc_channel *channel)
Definition: channel.cc:437
exec_ctx.h
grpc_core::CoreConfiguration::RunWithSpecialConfiguration
static void RunWithSpecialConfiguration(BuildFunc build_configuration, RunFunc code_to_run)
Definition: core_configuration.h:129
config_s
Definition: bloaty/third_party/zlib/deflate.c:120
channel_args.h
begin_test
static grpc_end2end_test_fixture begin_test(grpc_end2end_test_config config, const char *test_name, grpc_channel_args *client_args, grpc_channel_args *server_args)
Definition: retry_cancel_with_multiple_send_batches.cc:45
cancellation_mode
Definition: cancel_test_helpers.h:24
n_seconds_from_now
static gpr_timespec n_seconds_from_now(int n)
Definition: retry_cancel_with_multiple_send_batches.cc:57
GPR_DEBUG
#define GPR_DEBUG
Definition: include/grpc/impl/codegen/log.h:55
grpc_channel_element_args
Definition: channel_stack.h:74
grpc_op::grpc_op_data::recv_initial_metadata
struct grpc_op::grpc_op_data::grpc_op_recv_initial_metadata recv_initial_metadata
grpc_call_final_info
Definition: channel_stack.h:95
gpr_timespec
Definition: gpr_types.h:50
grpc_event::type
grpc_completion_type type
Definition: grpc_types.h:566
grpc_error
Definition: error_internal.h:42
GRPC_OP_RECV_STATUS_ON_CLIENT
@ GRPC_OP_RECV_STATUS_ON_CLIENT
Definition: grpc_types.h:627
grpc_op::grpc_op_data::grpc_op_recv_initial_metadata::recv_initial_metadata
grpc_metadata_array * recv_initial_metadata
Definition: grpc_types.h:685
channel_stack_builder.h
grpc_transport_stream_op_batch
Definition: transport.h:284
grpc_closure
Definition: closure.h:56
op
static grpc_op * op
Definition: test/core/fling/client.cc:47
ops
static grpc_op ops[6]
Definition: test/core/fling/client.cc:39
initial_metadata_recv
static grpc_metadata_array initial_metadata_recv
Definition: test/core/fling/client.cc:42
grpc_call_start_batch
GRPCAPI grpc_call_error grpc_call_start_batch(grpc_call *call, const grpc_op *ops, size_t nops, void *tag, void *reserved)
Definition: call.cc:1831
grpc_event::tag
void * tag
Definition: grpc_types.h:576
cq
static grpc_completion_queue * cq
Definition: test/core/fling/client.cc:37
GRPC_OP_SEND_CLOSE_FROM_CLIENT
@ GRPC_OP_SEND_CLOSE_FROM_CLIENT
Definition: grpc_types.h:607
i
uint64_t i
Definition: abseil-cpp/absl/container/btree_benchmark.cc:230
GRPC_ERROR_INT_GRPC_STATUS
@ GRPC_ERROR_INT_GRPC_STATUS
grpc status code representing this error
Definition: error.h:66
FEATURE_MASK_SUPPORTS_CLIENT_CHANNEL
#define FEATURE_MASK_SUPPORTS_CLIENT_CHANNEL
Definition: end2end_tests.h:37
grpc_metadata_array_init
GRPCAPI void grpc_metadata_array_init(grpc_metadata_array *array)
Definition: metadata_array.cc:30
five_seconds_from_now
static gpr_timespec five_seconds_from_now(void)
Definition: retry_cancel_with_multiple_send_batches.cc:61


grpc
Author(s):
autogenerated on Fri May 16 2025 03:00:05