Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-11588

ofd_create_hdl() shouldn't overwrite error code

Details

    • Bug
    • Resolution: Duplicate
    • Minor
    • None
    • None
    • None
    • 3
    • 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.

      Attachments

        Issue Links

          Activity

            [LU-11588] ofd_create_hdl() shouldn't overwrite error code
            adilger Andreas Dilger made changes -
            Link New: This issue is duplicated by CAM-72 [ CAM-72 ]
            adilger Andreas Dilger made changes -
            Resolution New: Duplicate [ 3 ]
            Status Original: Open [ 1 ] New: Resolved [ 5 ]
            adilger Andreas Dilger made changes -
            Link New: This issue duplicates LU-11536 [ LU-11536 ]
            adilger Andreas Dilger made changes -
            Description Original: 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).
            New: 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).
            {noformat}
             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
            {noformat}

            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.
            adilger Andreas Dilger made changes -
            Link New: This issue is related to LU-11584 [ LU-11584 ]
            bzzz Alex Zhuravlev created issue -

            People

              wc-triage WC Triage
              bzzz Alex Zhuravlev
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: