Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id D5E07200D6E for ; Fri, 22 Dec 2017 17:14:04 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id D4772160BFD; Fri, 22 Dec 2017 16:14:04 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 2B8A7160C19 for ; Fri, 22 Dec 2017 17:14:04 +0100 (CET) Received: (qmail 9927 invoked by uid 500); 22 Dec 2017 16:14:03 -0000 Mailing-List: contact issues-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@maven.apache.org Delivered-To: mailing list issues@maven.apache.org Received: (qmail 9853 invoked by uid 99); 22 Dec 2017 16:14:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Dec 2017 16:14:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id B04531A0036 for ; Fri, 22 Dec 2017 16:14:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 1BwiDEQ5Se54 for ; Fri, 22 Dec 2017 16:14:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 155D65F121 for ; Fri, 22 Dec 2017 16:14:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 587FDE0248 for ; Fri, 22 Dec 2017 16:14:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 1526F212F7 for ; Fri, 22 Dec 2017 16:14:00 +0000 (UTC) Date: Fri, 22 Dec 2017 16:14:00 +0000 (UTC) From: "Robert Scholte (JIRA)" To: issues@maven.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (MNG-6323) Deadlock in multithreaded dependency resolution MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 22 Dec 2017 16:14:05 -0000 [ https://issues.apache.org/jira/browse/MNG-6323?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16301606#comment-16301606 ] Robert Scholte commented on MNG-6323: ------------------------------------- So one of the following changes seems to have more impact than expected: https://issues.apache.org/jira/projects/MRESOLVER/versions/12339212 > Deadlock in multithreaded dependency resolution > ----------------------------------------------- > > Key: MNG-6323 > URL: https://issues.apache.org/jira/browse/MNG-6323 > Project: Maven > Issue Type: Bug > Affects Versions: 3.5.2 > Reporter: Ben Caradoc-Davies > Attachments: geoserver-community-maven-hang-jstack-2.txt, geoserver-community-maven-hang-jstack.txt > > > Maven 3.5.2 multithreaded builds experience a deadlock not seen with Maven 3.5.0. > To reproduce the issue, clone GeoServer: > {noformat} > git clone https://github.com/geoserver/geoserver.git > cd geoserver > {noformat} > Build GeoServer community modules with: > {noformat} > mvn -f src/community/pom.xml -B -T4 -U -Prelease -PcommunityRelease -DskipTests clean install > {noformat} > Builds that normally take 2-4 minutes instead experience long hangs. {{jstack}} output (attached) suggests a deadlock (two different hangs attached). Some of the locks are in {{TIME_WAIT}} and eventually the build completes after 30-45 minutes, but this is enough to cause builds on Travis to be killed for their failure to output for ten minutes. (Travis upgraded to Maven 3.5.2 a week ago.) > I have only seen the failures with -U. The hang does not occur in single-threaded builds. There are no "*.lock" files in the local repository during the hang so the deadlocks are not mediated by the filesystem. CPU utilisation is zero suggesting a deadlock not a livelock. > See also discussion on the geoserver-devel mailing list: http://osgeo-org.1560.x6.nabble.com/Travis-failures-started-with-new-trusty-images-td5346836.html -- This message was sent by Atlassian JIRA (v6.4.14#64029)