Could not acquire shared lock
- Dominant language
- Java
- Stars
- 3.5k
- Forks
- 250
- Avg merge
- 16h 22m
- Merged PRs (30d)
- 36
Description
### Affected version
2.0.0-rc-3 darwin-aarch64 native client (f912362c18c9a75faf3e31a4e0e0b921206013b9)
### Bug description
Doing a clean install on a ~2M LOC project, I recently get locking problems every now and then when doing a clean install:
[ERROR] Could not acquire shared lock for [package.version, ....
After trying several things to fix it (closing IDE, rebooting, removing .lock files from the repo) I tried doing a regular multi-threaded mvn* build (mvn -T1C). That succeeded immediately. Is this a known problem? Can I help presenting debug information?
*= Apache Maven 3.9.12 (848fbb4bf2d427b72bdb2471c22fced7ebd9a7a1)
Contributor guide
No contributing guide indexed for this repository
Research direction
No source file or test is named in the report. Start by reproducing a clean install on the affected darwin-aarch64 native client for the approximately 2M LOC project, then compare it with the successful multi-threaded `mvn -T1C` build. Done means the intermittent shared-lock failure is reproduced and its cause is identified with a regression test or other verification.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100