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

llog_process_thread() may use wrong offset for the next block

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.8.0
    • None
    • None
    • 3
    • 9223372036854775807

    Description

      the llog_process_thread() save curent offset in last_offset variable before getting the new block of data, and uses it as the beginning of that block later. That can be wrong because new block can be read from different offset, depending on index being searched. We need to use the value returned by llog_next_block() call.

      Attachments

        Issue Links

          Activity

            [LU-6714] llog_process_thread() may use wrong offset for the next block

            Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/16287/
            Subject: LU-6714 llog: test on-disk llog header values
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: e667cd00c8312258453f0a081c51cf2e6233999a

            gerrit Gerrit Updater added a comment - Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/16287/ Subject: LU-6714 llog: test on-disk llog header values Project: fs/lustre-release Branch: master Current Patch Set: Commit: e667cd00c8312258453f0a081c51cf2e6233999a

            Mike Pershin (mike.pershin@intel.com) uploaded a new patch: http://review.whamcloud.com/16288
            Subject: LU-6714 llog: add test for llh_cat_idx checking
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: dcebb42f60abd1741b68ec7f35226c1680b83ee9

            gerrit Gerrit Updater added a comment - Mike Pershin (mike.pershin@intel.com) uploaded a new patch: http://review.whamcloud.com/16288 Subject: LU-6714 llog: add test for llh_cat_idx checking Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: dcebb42f60abd1741b68ec7f35226c1680b83ee9

            Mike Pershin (mike.pershin@intel.com) uploaded a new patch: http://review.whamcloud.com/16287
            Subject: LU-6714 llog: test on-disk llog header values
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: 74e9220de55d8bd2eb5560d26c53a48684bbc66b

            gerrit Gerrit Updater added a comment - Mike Pershin (mike.pershin@intel.com) uploaded a new patch: http://review.whamcloud.com/16287 Subject: LU-6714 llog: test on-disk llog header values Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 74e9220de55d8bd2eb5560d26c53a48684bbc66b

            Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/15835/
            Subject: LU-6714 llog: test plain llog more throughly
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: f17796cf08df5004fa68b9b4a9b0e221559389dc

            gerrit Gerrit Updater added a comment - Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/15835/ Subject: LU-6714 llog: test plain llog more throughly Project: fs/lustre-release Branch: master Current Patch Set: Commit: f17796cf08df5004fa68b9b4a9b0e221559389dc

            this ticket can be closed, the patch you mentioned is under different ticket already

            tappro Mikhail Pershin added a comment - this ticket can be closed, the patch you mentioned is under different ticket already
            pjones Peter Jones added a comment -

            Mike

            Doesn't this ticket need to remain open until http://review.whamcloud.com/#/c/15835/ lands? Or can this work be abandoned or tracked under another ticket #?

            Peter

            pjones Peter Jones added a comment - Mike Doesn't this ticket need to remain open until http://review.whamcloud.com/#/c/15835/ lands? Or can this work be abandoned or tracked under another ticket #? Peter

            fix was landed

            tappro Mikhail Pershin added a comment - fix was landed

            Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/15841/
            Subject: LU-6714 llog: fix the llog_cat_set_first_idx()
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: a830c06c612125cf517c66823078364c0c509de9

            gerrit Gerrit Updater added a comment - Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/15841/ Subject: LU-6714 llog: fix the llog_cat_set_first_idx() Project: fs/lustre-release Branch: master Current Patch Set: Commit: a830c06c612125cf517c66823078364c0c509de9

            Looks like the http://review.whamcloud.com/15841 patch is not landed yet.

            adilger Andreas Dilger added a comment - Looks like the http://review.whamcloud.com/15841 patch is not landed yet.

            Mike Pershin (mike.pershin@intel.com) uploaded a new patch: http://review.whamcloud.com/15841
            Subject: LU-6714 llog: fix the llog_cat_set_first_idx()
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: 116467aac55d9cbf55633b85915511c0c9256f55

            gerrit Gerrit Updater added a comment - Mike Pershin (mike.pershin@intel.com) uploaded a new patch: http://review.whamcloud.com/15841 Subject: LU-6714 llog: fix the llog_cat_set_first_idx() Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 116467aac55d9cbf55633b85915511c0c9256f55

            People

              tappro Mikhail Pershin
              tappro Mikhail Pershin
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: