[LU-15280] "lfs changelog --follow" does not support wrapped catalog Created: 26/Nov/21  Updated: 05/Jun/23  Resolved: 17/Feb/23

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

Type: Bug Priority: Major
Reporter: Etienne Aujames Assignee: Etienne Aujames
Resolution: Fixed Votes: 1
Labels: None
Environment:

Lustre 2.12.6 + patches
Robinhood


Issue Links:
Related
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

When a changelog_catalog become wrapped, "lfs changelog --follow" / "llapi_changelog_recv with CHANGELOG_FLAG_FOLLOW" stop at the last changelog record before the wrapping.
It does not dequeue records at the beginning of changelogs catalogs (in the plain llogs).

This issue has been seen in production with Lustre 2.12.6 and Robinhood.
I have reproduced this issue on Lustre master.

I think this issue could affect some other functionalities that use llog_cat_process with startcat and startidx set (like HSM on master).



 Comments   
Comment by Gerrit Updater [ 02/Dec/21 ]

"Etienne AUJAMES <eaujames@ddn.com>" uploaded a new patch: https://review.whamcloud.com/45708
Subject: LU-15280 llog: fix processing of a wrapped catalog
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: af2e8733f51da5e2d21f1ab4e40fd7e7e7566032

Comment by Gerrit Updater [ 17/Feb/23 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/45708/
Subject: LU-15280 llog: fix processing of a wrapped catalog
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 76cf7427145a397a3088d833f9614921676a8ea1

Comment by Peter Jones [ 17/Feb/23 ]

Landed for 2.16

Comment by Gerrit Updater [ 05/Jun/23 ]

"Etienne AUJAMES <eaujames@ddn.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/51225
Subject: LU-15280 llog: fix processing of a wrapped catalog
Project: fs/lustre-release
Branch: b2_15
Current Patch Set: 1
Commit: aae07f6d6c155440ada1dc1d9b1443b3c845e3ba

Generated at Sat Feb 10 03:16:58 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.