File tree Expand file tree Collapse file tree 4 files changed +15
-6
lines changed Expand file tree Collapse file tree 4 files changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -271,17 +271,21 @@ struct ib_socket_shared_state_t
271
271
int r = ibv_get_cq_event (channel_.get (), &cq, &ev_ctx);
272
272
// assert(r >= 0);
273
273
std::error_code ec;
274
- if (r) {
275
- ELOG_INFO << " there isn't any Completion event to read" ;
276
- return std::make_error_code (std::errc{std::errc::io_error});
274
+ if (r) [[unlikely]] {
275
+ ELOG_WARN << " there isn't any Completion event to read, errno" << errno;
276
+ if (errno != EAGAIN && errno != EWOULDBLOCK) [[unlikely]] {
277
+ ELOG_WARN << " failed to get comp_channel event" ;
278
+ return std::make_error_code (std::errc{std::errc::io_error});
279
+ }
280
+ return {};
277
281
}
278
282
ibv_ack_cq_events (cq, 1 );
279
283
r = ibv_req_notify_cq (cq, 0 );
280
- if (r) {
284
+ if (r) [[unlikely]] {
281
285
ELOG_ERROR << std::make_error_code (std::errc{r}).message ();
282
286
return std::make_error_code (std::errc{r});
283
287
}
284
- struct ibv_wc wc{};
288
+ struct ibv_wc wc {};
285
289
int ne = 0 ;
286
290
std::vector<resume_struct> vec;
287
291
callback_t tmp_recv_callback;
Original file line number Diff line number Diff line change @@ -1270,6 +1270,8 @@ class coro_rpc_client {
1270
1270
co_return rpc_error{errc::timed_out};
1271
1271
}
1272
1272
else {
1273
+ ELOG_ERROR << " write error: " << ret.first .value () << " , "
1274
+ << ret.first .message ();
1273
1275
co_return rpc_error{errc::io_error, ret.first .message ()};
1274
1276
}
1275
1277
}
Original file line number Diff line number Diff line change 20
20
// YLT_VERSION % 100 is the sub-minor version
21
21
// YLT_VERSION / 100 % 1000 is the minor version
22
22
// YLT_VERSION / 100000 is the major version
23
- #define YLT_VERSION 501 // 0.5.1
23
+ #define YLT_VERSION 503 // 0.5.3
Original file line number Diff line number Diff line change @@ -109,6 +109,9 @@ async_simple::coro::Lazy<void> watcher(const bench_config& conf) {
109
109
break ;
110
110
}
111
111
auto thp = g_throughput_count.exchange (0 );
112
+ if (thp == 0 ) {
113
+ continue ;
114
+ }
112
115
total += thp;
113
116
auto qps = g_qps_count.exchange (0 );
114
117
total_qps += qps;
You can’t perform that action at this time.
0 commit comments