[LU-11588] ofd_create_hdl() shouldn't overwrite error code Created: 31/Oct/18  Updated: 12/Nov/18  Resolved: 31/Oct/18

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Alex Zhuravlev Assignee: WC Triage
Resolution: Duplicate Votes: 0
Labels: None

Issue Links:
Duplicate
duplicates LU-11536 ofd_create_hdl returns 0 instead of E... Resolved
Related
is related to LU-11584 kernel BUG at ldiskfs.h:1907! Resolved
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

ostid_set_id() can overwrite error code from ofd_precreate_objects(). this may lead to a set of issues on MDS side (misleading error message, RPC storm, etc).

 LustreError: 26378:0:(ofd_dev.c:1784:ofd_create_hdl()) nbp13-OST0008: unable to precreate: rc = -115
 LustreError: 26378:0:(ofd_dev.c:1784:ofd_create_hdl()) Skipped 59 previous similar messages
 LustreError: 25151:0:(osp_precreate.c:657:osp_precreate_send()) nbp13-OST0008-osc-MDT0000: precreate fid [0x100080000:0x217edc:0x0] < local used fid [0x100080000:0x217edc:0x0]: rc = -116
 LustreError: 25151:0:(osp_precreate.c:657:osp_precreate_send()) Skipped 59 previous similar messages
 LustreError: 25151:0:(osp_precreate.c:1289:osp_precreate_thread()) nbp13-OST0008-osc-MDT0000: cannot precreate objects: rc = -116

The -115 = -EINPROGRESS error is because the LMA FID is bad and LFSCK has started OI Scrub. The error is not returned to the MDS, but it created no objects and hits the error in osp_precreate_send() and spins on precreate because there are no errors reported on the OST.



 Comments   
Comment by Gerrit Updater [ 31/Oct/18 ]

Alex Zhuravlev (bzzz@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/33525
Subject: LU-11588 ofd: keep error code in ofd_create_hdl()
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 103311c099d3b39cf9e433ce9d6ee5ab1a7bb54d

Comment by Peter Jones [ 12/Nov/18 ]

bzzz

Do I understand correctly that this issue is fixed by LU-11536? If so, shouldn't the patch be abandoned?

Peter

Comment by Alex Zhuravlev [ 12/Nov/18 ]

that's correct

Generated at Sat Feb 10 02:45:11 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.