OBD_FAIL_OST_GET_LAST_FID and OBD_FAIL_OSP_GET_LAST_FID
are not used anymore since sanity test_27S has been removed.
This may lead to failures in interoperability testing.
For example, 27S caused osp_precreate_cleanup_orphans to
stuck due to not cleared opd_pre_recovering flag(normally,
it should be set to 0 before calling osp_precreate_reserve).
It was the reason of failure tests 27U, 27R, 39r and 51d
in sanity.sh.
The patch also removes OBD_FAIL_NET_ERROR_RPC and
OBD_FAIL_OSP_PRECREATE_PAUSE that were used in sanity-822
"test precreate failure". This test also has been removed
in
63e17799a3.
Fixes:
63e17799a3 (LU-8367 osp: enable replay for precreation request)
Signed-off-by: Sergey Cheremencev <scherementsev@ddn.com>
Change-Id: Ia78ce39adb9d59e476eb36e5e69954cc26353b27
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/50543
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Alexander Boyko <alexander.boyko@hpe.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
#define OBD_FAIL_OST_SEEK_NET 0x24a
#define OBD_FAIL_OST_WR_ATTR_DELAY 0x250
#define OBD_FAIL_OST_RESTART_IO 0x251
-#define OBD_FAIL_OST_GET_LAST_FID 0x252
#define OBD_FAIL_OST_OPCODE 0x253
#define OBD_FAIL_LDLM 0x300
#define OBD_FAIL_PTLRPC_RESEND_RACE 0x525
#define OBD_FAIL_PTLRPC_ROUND_XID 0x530
#define OBD_FAIL_PTLRPC_CONNECT_RACE 0x531
-#define OBD_FAIL_NET_ERROR_RPC 0x532
#define OBD_FAIL_PTLRPC_IDLE_RACE 0x533
#define OBD_FAIL_PTLRPC_ENQ_RESEND 0x534
#define OBD_FAIL_PTLRPC_DELAY_SEND_FAIL 0x535
#define OBD_FAIL_OSP_CANT_PROCESS_LLOG 0x2105
#define OBD_FAIL_OSP_INVALID_LOGID 0x2106
#define OBD_FAIL_OSP_CON_EVENT_DELAY 0x2107
-#define OBD_FAIL_OSP_PRECREATE_PAUSE 0x2108
-#define OBD_FAIL_OSP_GET_LAST_FID 0x2109
#define OBD_FAIL_OSP_FORCE_NEW_SEQ 0x210a
/* barrier */
if (rc)
RETURN(err_serious(rc));
- if (OBD_FAIL_CHECK(OBD_FAIL_OST_GET_LAST_FID))
- RETURN(-EAGAIN);
-
fid = req_capsule_client_get(tsi->tsi_pill, &RMF_FID);
if (fid == NULL)
RETURN(err_serious(-EPROTO));
/* now we can wakeup all users awaiting for objects */
osp_pre_update_status(d, rc);
- /* pause to let osp_precreate_reserve to go first */
- CFS_FAIL_TIMEOUT(OBD_FAIL_OSP_PRECREATE_PAUSE, 2);
-
ptlrpc_req_finished(req);
RETURN(rc);
}
*last_fid = d->opd_last_used_fid;
/* The OSP should already get the valid seq now */
LASSERT(!fid_is_zero(last_fid));
- if (fid_oid(&d->opd_last_used_fid) < 2 ||
- OBD_FAIL_CHECK(OBD_FAIL_OSP_GET_LAST_FID)) {
+ if (fid_oid(&d->opd_last_used_fid) < 2) {
/* lastfid looks strange... ask OST */
rc = osp_get_lastfid_from_ost(env, d, true);
if (rc)
if (d->opd_pre == NULL)
continue;
- if (OBD_FAIL_CHECK(OBD_FAIL_OSP_GET_LAST_FID)) {
- d->opd_pre_recovering = 1;
- break;
- }
-
/* To avoid handling different seq in precreate/orphan
* cleanup, it will hold precreate until current seq is
* used up. */
LASSERT(ev->type == LNET_EVENT_SEND || ev->type == LNET_EVENT_UNLINK);
LASSERT(ev->unlinked);
- if (unlikely(lustre_msg_get_opc(req->rq_reqmsg) == cfs_fail_val &&
- CFS_FAIL_CHECK_RESET(OBD_FAIL_NET_ERROR_RPC,
- OBD_FAIL_OSP_PRECREATE_PAUSE |
- CFS_FAIL_ONCE)))
- ev->status = -ECONNABORTED;
-
DEBUG_REQ(D_NET, req, "type %d, status %d", ev->type, ev->status);
/* Do not update imp_next_ping for connection request */