vfedoriv opened a new pull request, #236:
URL: https://github.com/apache/maven-resolver/pull/236

   Hello.
   In the scope of our project (https://central.sonatype.dev - new (beta) 
version of https://search.maven.org) we do parsing pom-s for transitive 
dependencies, using Maven Resolver.
   It works fine in most cases. But recently, during the upload musquette 
artifact
   https://repo1.maven.org/maven2/org/webjars/npm/musquette/1.1.1/
   we see 100% CPU load on our service. It appears that the resolver is stuck 
in process of resolving transitive dependencies
   The reason: this component (musquette) has dependencies that in the 
dependencies resolving process lead to being stuck in an infinite loop.
   Here profiler graph
   <img width="972" alt="Screenshot 2023-01-27 at 14 08 48" 
src="https://user-images.githubusercontent.com/11440242/215098287-d5c32e2d-3520-4dcc-add2-4f8f5de8b6ab.png";>
   We run each pom file parsing in a separate thread, but have no way to 
interrupt parsing when it's stuck in resolver methods.
   So the goal is to interrupt dependencies parsing after the thread with the 
parser receives an interrupt event.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to