apache / apache/maven-shade-plugin

[MSHADE-384] maven building hang when using multithread on jdk 11

Open
#689 5 comments 0 reactions 0 assignees View on GitHub
bug priority:major
Dominant language
Java
Stars
188
Forks
103
Avg merge
16h 39m
Merged PRs (30d)
4

Description

**[Zhengqi Zhang](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=tony%20giao)** opened **[MSHADE-384](https://issues.apache.org/jira/browse/MSHADE-384?redirect=false)** and commented

When I use mvn clean package and add -T to the command, the console log stops on a certain line. then I use -X to start the debug log, and I find that I have been looping through something, as follows.**When I get rid of the -T parameter, everything is fine.When I switched to JDK8, it was fine to use multithreaded packaging**

!image-2021-02-24-20-04-58-353.png|width=943,height=574!

I get the thread stack, as shown in the figure below.

!image-2021-02-24-20-06-47-076.png|width=838,height=388!

 

---

**Affects:** 3.2.1, 3.2.4

**Attachments:**
- [image-2021-02-24-20-04-58-353.png](https://issues.apache.org/jira/secure/attachment/13021109/image-2021-02-24-20-04-58-353.png) (_673.66 kB_)
- [image-2021-02-24-20-06-47-076.png](https://issues.apache.org/jira/secure/attachment/13021108/image-2021-02-24-20-06-47-076.png) (_404.11 kB_)

**Issue Links:**
- [FLINK-21499](https://issues.apache.org/jira/browse/FLINK-21499) maven package hang when using multithread on jdk 11

0 votes, 5 watchers

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the hang with `mvn clean package -T` on JDK 11 and capture the `-X` output and thread stack described in the issue. Compare the behavior with JDK 8 and without `-T`; done means the multithreaded Maven package completes reliably on JDK 11.

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
Needs clarification
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.