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

            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

            Mike Pershin (mike.pershin@intel.com) uploaded a new patch: http://review.whamcloud.com/15835
            Subject: LU-6714 llog: test plain llog more throughly
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: 1ed810ab336dad8881eb3507353697958ec4a708

            gerrit Gerrit Updater added a comment - Mike Pershin (mike.pershin@intel.com) uploaded a new patch: http://review.whamcloud.com/15835 Subject: LU-6714 llog: test plain llog more throughly Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 1ed810ab336dad8881eb3507353697958ec4a708
            pjones Peter Jones added a comment -

            Landed for 2.8

            pjones Peter Jones added a comment - Landed for 2.8

            Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/15316/
            Subject: LU-6714 llog: fix wrong offset in llog_process_thread()
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: df45994ddcf5e6fdc379b3e1d43f1d26ba321a0e

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

            Mike Pershin (mike.pershin@intel.com) uploaded a new patch: http://review.whamcloud.com/15316
            Subject: LU-6714 llog: fix wrong offset in llog_process_thread()
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: 6a18e003fd97fb360a4a94d347895b1392d3022f

            gerrit Gerrit Updater added a comment - Mike Pershin (mike.pershin@intel.com) uploaded a new patch: http://review.whamcloud.com/15316 Subject: LU-6714 llog: fix wrong offset in llog_process_thread() Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 6a18e003fd97fb360a4a94d347895b1392d3022f

            Link LU-5635 here as well to fix it properly

            tappro Mikhail Pershin added a comment - Link LU-5635 here as well to fix it properly

            People

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

              Dates

                Created:
                Updated:
                Resolved: