Skip to content

Fix for good DefaultTrackingFileManager #1800#1812

Draft
martins-avots wants to merge 3 commits intoapache:masterfrom
martins-avots:master
Draft

Fix for good DefaultTrackingFileManager #1800#1812
martins-avots wants to merge 3 commits intoapache:masterfrom
martins-avots:master

Conversation

@martins-avots
Copy link
Contributor

@cstamas Is the usage of FileLockNamedLockFactory correct for DefaultTrackingFileManager#read?

@cstamas
Copy link
Member

cstamas commented Mar 24, 2026

Yes it is, but observe this: #1800 (comment)

Summary:

  • maven2 locked the file itself
  • maven3.x continued doing the same to preserve backward compat (so until this point they could co-exist working on same local repo)
  • maven3.10, if change to named locks (they do not lock the subject file, they are pure "advisory locking") this breaks

@cstamas
Copy link
Member

cstamas commented Mar 24, 2026

Check out my counter proposal: #1814

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants