Skip to content

[MNG-7285] [Regression] MavenProject.getArtifacts() not returning correct value across multiple threads #8152

@jira-importer

Description

@jira-importer

Mickael Istria opened MNG-7285 and commented

Patch for MNG-6843 seems to cause that when trying to use MavenProject.getArtifacts() across different threads, some of them get an incorrect result.

This cause an issue in m2e where we schedule a lot of work and don't have much control over which thread will do the work (there is a thread pool); we've faced several regressions because of this issue when trying to adopt 3.8.3 from 3.8.1. More details at https://github.com/eclipse-m2e/m2e-core/pull/346 , https://github.com/eclipse-m2e/m2e-core/pull/347 and eclipse-m2e/m2e-core#350 .

I'll try to capture it in a test case for maven repo in the next days.


Affects: 3.0-alpha-1, 3.8.2, 3.8.3

Issue Links:

  • MNG-7312 Revert ThreadLocal approach from MNG-6843 and MNG-7251
    ("is fixed by")

  • MNG-7156 Parallel build can cause issues between clean and forked goals

  • MNG-6843 Parallel build fails due to missing JAR artifacts in compilePath
    ("is broken by")

Remote Links:

Backported to: 4.0.0-alpha-2, 3.8.4

0 votes, 8 watchers

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingpriority:criticalCrashes, loss of data, severe memory leak

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions