}
if (op_ret < 0) {
- if (op_ret == -EIO && tries < NUM_ENPOINT_IOERROR_RETRIES - 1) {
+ if (op_ret == -ERR_INTERNAL_ERROR && tries < NUM_ENPOINT_IOERROR_RETRIES - 1) {
ldpp_dout(dpp, 20) << "failed to fetch remote datalog shard info. retry. shard_id=" << shard_id << dendl;
continue;
} else {
}
if (op_ret < 0) {
- if (op_ret == -EIO && tries < NUM_ENPOINT_IOERROR_RETRIES - 1) {
+ if (op_ret == -ERR_INTERNAL_ERROR && tries < NUM_ENPOINT_IOERROR_RETRIES - 1) {
ldpp_dout(dpp, 20) << "failed to read remote datalog shard. retry. shard_id=" << shard_id << dendl;
continue;
} else {
ret = conn->complete_request(dpp, in_stream_req, nullptr, &set_mtime, psize,
nullptr, pheaders, y);
if (ret < 0) {
- if (ret == -EIO && tries < NUM_ENPOINT_IOERROR_RETRIES - 1) {
+ if (ret == -ERR_INTERNAL_ERROR && tries < NUM_ENPOINT_IOERROR_RETRIES - 1) {
ldpp_dout(dpp, 20) << __func__ << "(): failed to fetch object from remote. retries=" << tries << dendl;
continue;
}
ret = conn->complete_request(rctx.dpp, in_stream_req, &etag, &set_mtime,
&accounted_size, nullptr, nullptr, rctx.y);
if (ret < 0) {
- if (ret == -EIO && tries < NUM_ENPOINT_IOERROR_RETRIES - 1) {
+ if (ret == -ERR_INTERNAL_ERROR && tries < NUM_ENPOINT_IOERROR_RETRIES - 1) {
ldpp_dout(rctx.dpp, 20) << __func__ << "(): failed to fetch " << fetched_obj
<< " from remote. retries=" << tries << dendl;
continue;
ret = rest_master_conn->complete_request(dpp, out_stream_req, etag, mtime, y);
if (ret < 0) {
- if (ret == -EIO && tries < NUM_ENPOINT_IOERROR_RETRIES - 1) {
+ if (ret == -ERR_INTERNAL_ERROR && tries < NUM_ENPOINT_IOERROR_RETRIES - 1) {
ldpp_dout(dpp, 20) << __func__ << "(): failed to put_obj_async_init. retries=" << tries << dendl;
continue;
}
}
if (op_ret < 0) {
- if (op_ret == -EIO && tries < NUM_ENPOINT_IOERROR_RETRIES - 1) {
+ if (op_ret == -ERR_INTERNAL_ERROR && tries < NUM_ENPOINT_IOERROR_RETRIES - 1) {
ldpp_dout(dpp, 20) << "failed to read remote metadata log shard info. retry. shard_id=" << shard_id << dendl;
continue;
} else {
}
if (op_ret < 0) {
- if (op_ret == -EIO && tries < NUM_ENPOINT_IOERROR_RETRIES - 1) {
+ if (op_ret == -ERR_INTERNAL_ERROR && tries < NUM_ENPOINT_IOERROR_RETRIES - 1) {
ldpp_dout(dpp, 20) << "failed to read remote metadata. retry. section=" << section << " key=" << key << dendl;
continue;
} else {
return state_receive_rest_response();
}
- if (op_ret == -EIO && tries < NUM_ENPOINT_IOERROR_RETRIES - 1) {
+ if (op_ret == -ERR_INTERNAL_ERROR && tries < NUM_ENPOINT_IOERROR_RETRIES - 1) {
ldout(cct, 20) << __func__ << ": request IO error. retries=" << tries << dendl;
continue;
} else if (op_ret < 0) {
int RGWCloneMetaLogCoroutine::state_receive_rest_response()
{
op_ret = http_op->wait(sync_env->dpp, &data, null_yield);
- if (op_ret < 0 && op_ret != -EIO) {
+ if (op_ret < 0 && op_ret != -ERR_INTERNAL_ERROR) {
error_stream << "http operation failed: " << http_op->to_str() << " status=" << http_op->get_http_status() << std::endl;
ldpp_dout(sync_env->dpp, 5) << "failed to wait for op, ret=" << op_ret << dendl;
http_op->put();
http_op->put();
http_op = NULL;
- if (op_ret == -EIO) {
+ if (op_ret == -ERR_INTERNAL_ERROR) {
return 0;
}
yield return state_send_request(dpp);
yield return state_request_complete();
- if (op_ret == -EIO && tries < max_eio_retries - 1) {
+ if (op_ret == -ERR_INTERNAL_ERROR && tries < max_eio_retries - 1) {
ldout(cct, 20) << "request IO error. retries=" << tries << dendl;
continue;
} else if (op_ret < 0) {
int RGWSimpleCoroutine::state_request_complete()
{
op_ret = request_complete();
- if (op_ret < 0 && op_ret != -EIO) {
+ if (op_ret < 0 && op_ret != -ERR_INTERNAL_ERROR) {
call_cleanup();
return set_state(RGWCoroutine_Error, op_ret);
}
int wait(const DoutPrefixProvider* dpp, bufferlist *pbl, optional_yield y) {
int ret = req.wait(dpp, y);
if (ret < 0) {
- if (ret == -EIO) {
+ if (ret == -ERR_INTERNAL_ERROR) {
conn->set_url_unconnectable(req.get_url_orig());
}
return ret;
{
int ret = req.wait(dpp, y);
if (ret < 0) {
- if (ret == -EIO) {
+ if (ret == -ERR_INTERNAL_ERROR) {
conn->set_url_unconnectable(req.get_url_orig());
}
return ret;
int ret = req.wait(dpp, y);
*pbl = bl;
- if (ret == -EIO) {
+ if (ret == -ERR_INTERNAL_ERROR) {
conn->set_url_unconnectable(req.get_url_orig());
}
optional_yield y, E *err_result)
{
int ret = req.wait(dpp, y);
- if (ret == -EIO) {
+ if (ret == -ERR_INTERNAL_ERROR) {
conn->set_url_unconnectable(req.get_url_orig());
}