Ivy
  1. Ivy
  2. IVY-1454

OverlappingFileLockException when using artifact-lock-nio

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.4.0
    • Fix Version/s: 2.4.0-RC1
    • Component/s: Core
    • Labels:
      None
    • Environment:

      Debian Linux (Wheezy)
      Oracle Java 1.7.0+update45,
      ivy_2.4.0.alpha_20131214174343.jar downloaded from https://builds.apache.org/job/Ivy/446/

      Description

      When trying to use artifact-lock-nio as the lock strategy, I get resolve errors due to OverlappingFileLockException being thrown:

      [ivy:resolve] WARN: 	:: org.hamcrest#hamcrest-core;1.1: java.nio.channels.OverlappingFileLockException at sun.nio.ch.SharedFileLockTable.checkList(FileLockTable.java:255)
      [ivy:resolve] WARN: 	:: org.glassfish#javax.ejb;3.1: java.nio.channels.OverlappingFileLockException at sun.nio.ch.SharedFileLockTable.checkList(FileLockTable.java:255)
      [ivy:resolve] WARN: 	:: org.jboss.weld.se#weld-se-core;1.1.10.Final: java.nio.channels.OverlappingFileLockException at sun.nio.ch.SharedFileLockTable.checkList(FileLockTable.java:255)
      

      The reason is probably related to our use of the <parallel> and <antcallback> tasks. The documentation of the antcallback task is here: http://ant-contrib.sourceforge.net/tasks/tasks/antcallback_task.html

      <parallel threadcount="${tests.maxThreads}">
      	<antcallback target="testsomething" return="tests.failed"/>
      	<antcallback target="testsomeother" return="tests.failed"/>
      	<antcallback target="testsomemore" return="tests.failed"/>
      </parallel>
      

      All the testxxx targets perform a resolve before running some junit tests in a separate vm. These resolve calls appear to cause the OverlappingFileLockException.

      1. IVY-1454-r3.patch
        10 kB
        Charles Duffy
      2. test--IVY-1454.zip
        3 kB
        Carsten Pfeiffer

        Activity

        Maarten Coene made changes -
        Fix Version/s 2.4.0-RC1 [ 12326648 ]
        Fix Version/s 2.4.0 [ 12323983 ]
        Charles Duffy made changes -
        Fix Version/s 2.4.0 [ 12323983 ]
        Charles Duffy made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Charles Duffy made changes -
        Attachment IVY-1454-r3.patch [ 12619650 ]
        Charles Duffy made changes -
        Attachment IVY-1454-r2.patch [ 12619640 ]
        Charles Duffy made changes -
        Attachment IVY-1454.patch [ 12619622 ]
        Charles Duffy made changes -
        Attachment IVY-1454-r2.patch [ 12619640 ]
        Charles Duffy made changes -
        Attachment IVY-1454.patch [ 12619622 ]
        Carsten Pfeiffer made changes -
        Attachment test--IVY-1454.zip [ 12619545 ]
        Charles Duffy made changes -
        Field Original Value New Value
        Assignee Charles Duffy [ cduffy ]
        Carsten Pfeiffer created issue -

          People

          • Assignee:
            Charles Duffy
            Reporter:
            Carsten Pfeiffer
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development