[LU-14731] mdd_changelog_llog_init() fails to clear orphans changelog entries when no users are registered Created: 02/Jun/21  Updated: 19/Jul/21  Resolved: 21/Jun/21

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

Type: Bug Priority: Minor
Reporter: John Hammond Assignee: John Hammond
Resolution: Fixed Votes: 0
Labels: None

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

 Description   

In mdd_changelog_llog_init() the logic around getting the minimum user index is broken when there are no users registered. When no users are registered the computed user orphan index is always 0 and the if (unlikely(changelog_orphan.index < user_orphan.index)) branch is never entered.

0 is a poor sentinel for the minimum. It should use the maximum value representable in the type.



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

John L. Hammond (jhammond@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/43901
Subject: LU-14731 mdd: clear orphans changelog entries
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: b51e40646e40495bb6e708e27a1bdf634fb103d9

Comment by Gerrit Updater [ 21/Jun/21 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/43901/
Subject: LU-14731 mdd: clear orphans changelog entries
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: c7d8fe31064990d7053436ccd720c531bc78a2dc

Comment by Peter Jones [ 21/Jun/21 ]

Landed for 2.15

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