You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Tamas Cservenak (Jira)" <ji...@apache.org> on 2023/10/15 15:24:00 UTC

[jira] [Created] (MRESOLVER-412) BF collector causes same model to be loaded up multiple times

Tamas Cservenak created MRESOLVER-412:
-----------------------------------------

             Summary: BF collector causes same model to be loaded up multiple times
                 Key: MRESOLVER-412
                 URL: https://issues.apache.org/jira/browse/MRESOLVER-412
             Project: Maven Resolver
          Issue Type: Bug
          Components: Resolver
            Reporter: Tamas Cservenak
             Fix For: 2.0.0


This bug probably affects all released versions of new BF collector.
Symptom is that Maven with BF collector fails MavenITmng5669ReadPomsOnce both test methods. The IT verifies that POM XMLs are _read only once_ with and without "consumer POM" feature enabled. Both IT methods fail (so failure is irrelevant of consumer POM feature being enabled).
Most probably cause: old DF was single threaded, while BF uses internally thread pool, that seemingly causes that same POM XML is loaded up multiple times as ModelBuilder is being asked multi threaded for different models by BF collector.

Reproduce: either run MavenITmng5669ReadPomsOnce but modify the IT to enable DF (if using Maven w/ resolver 1.x) or build Maven 4 w/ Resolver 2 (default is BF).



--
This message was sent by Atlassian Jira
(v8.20.10#820010)