[LU-14663] race in mdc changelog polling code Created: 02/May/21  Updated: 05/May/22  Resolved: 05/May/22

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

Type: Bug Priority: Minor
Reporter: Alex Zhuravlev Assignee: Alex Zhuravlev
Resolution: Fixed Votes: 0
Labels: None

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

 Description   

userspace changelog consumers set CHANGELOG_FLAG_FOLLOW so that MDC'c changelog thread re-open/re-process the changelog once the end is reached.
the thread processing the changelog starts at open and can get to the end before that flag is set. so a consumer will miss all new records.



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

Alex Zhuravlev (bzzz@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/43513
Subject: LU-14663 mdc: changelog thread don't exit early
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 38de72fe7a665689b93129ddb2ba8f5b3e5684d6

Comment by Gerrit Updater [ 02/Jun/21 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/43513/
Subject: LU-14663 mdc: start changelog thread upon first access
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 72a08ea547dceb542d554e9057e0ed257138bd48

Comment by Peter Jones [ 05/May/22 ]

Seems to be landed for 2.15

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