You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by "Tim Berry (JIRA)" <ji...@apache.org> on 2008/02/12 11:14:07 UTC

[jira] Created: (IVY-733) File system resolver fails to rename artifact directory during atomic commit

File system resolver fails to rename artifact directory during atomic commit
----------------------------------------------------------------------------

                 Key: IVY-733
                 URL: https://issues.apache.org/jira/browse/IVY-733
             Project: Ivy
          Issue Type: Bug
          Components: Core
    Affects Versions: 2.0.0-beta-2
         Environment: Windows XP Professional SP2 and Windows Vista Ultimate.
Java version 1.6.0_04.
Ivy running standalone (called from MSBuild scripts.)
            Reporter: Tim Berry


I am attempting to use the new atomic commit functionality in the filesystem resolver (fix for IVY-492.)

The publishing process appears to complete, and does not show any errors, but the artifacts are left in a directory named '[revision].part'.

I am using the following ivy settings:

<ivysettings>
	<settings defaultResolver="Mustang" latest="latest-revision" circularDependencyStrategy="error" defaultConflictManager="strict" defaultBranch="trunk" />
	<cache lockStrategy="artifact-lock" />
	<resolvers>
		<chain name="Mustang">
			<filesystem name="Permanent" transactional="true">
				<ivy pattern="${repository.dir}\Permanent\[module]\[branch]\[revision]\ivy.xml" />
				<artifact pattern="${repository.dir}\Permanent\[module]\[branch]\[revision]\[artifact](.[ext])" />
			</filesystem>
			<filesystem name="Nightly" transactional="true">
				<ivy pattern="${repository.dir}\Nightly\[module]\[branch]\[revision]\ivy.xml" />
				<artifact pattern="${repository.dir}\Nightly\[module]\[branch]\[revision]\[artifact](.[ext])" />
			</filesystem>
		</chain>
	</resolvers>
</ivysettings>

I am running Ivy from an MSBuild script using a command line like the following:

java.exe -cp ivy.jar;commons-cli.jar -Drepository.dir=C:\Temp org.apache.ivy.Main -settings ivysettings.Nightly.xml -ivy ivy.xml -revision 1.0.0.0 -publish Nightly -deliverto build\ivy.xml -status integration -publishpattern build\[artifact](.[ext])

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (IVY-733) File system resolver fails to rename artifact directory during atomic publish

Posted by "Xavier Hanin (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/IVY-733?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Xavier Hanin resolved IVY-733.
------------------------------

    Resolution: Fixed

Great, so it seems my added checks, tests and code review was successful. I mark this resolved in 2.0-RC1, feel free to reopen with verbose log should you encounter the same problem again.

> File system resolver fails to rename artifact directory during atomic publish
> -----------------------------------------------------------------------------
>
>                 Key: IVY-733
>                 URL: https://issues.apache.org/jira/browse/IVY-733
>             Project: Ivy
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.0.0-beta-2
>         Environment: Windows XP Professional SP2 and Windows Vista Ultimate.
> Java version 1.6.0_04.
> Ivy running standalone (called from MSBuild scripts.)
>            Reporter: Tim Berry
>            Assignee: Xavier Hanin
>             Fix For: 2.0-RC1
>
>         Attachments: ivysettings.Nightly.xml
>
>
> I am attempting to use the new atomic publishing functionality in the filesystem resolver (fix for IVY-492.)
> The publishing process appears to complete, and does not show any errors, but the artifacts are left in a directory named '[revision].part'.
> See attached file for the ivy settings I am using.
> I am running Ivy from an MSBuild script using a command line like the following:
> java.exe -cp ivy.jar;commons-cli.jar -Drepository.dir=C:\Temp org.apache.ivy.Main -settings ivysettings.Nightly.xml -ivy ivy.xml -revision 1.0.0.0 -publish Nightly -deliverto build\ivy.xml -status integration -publishpattern build\[artifact](.[ext])

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (IVY-733) File system resolver fails to rename artifact directory during atomic publish

Posted by "Tim Berry (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/IVY-733?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tim Berry updated IVY-733:
--------------------------

    Description: 
I am attempting to use the new atomic publishing functionality in the filesystem resolver (fix for IVY-492.)

The publishing process appears to complete, and does not show any errors, but the artifacts are left in a directory named '[revision].part'.

I am using the following ivy settings:

<ivysettings>
	<settings defaultResolver="Mustang" latest="latest-revision" circularDependencyStrategy="error" defaultConflictManager="strict" defaultBranch="trunk" />
	<cache lockStrategy="artifact-lock" />
	<resolvers>
		<chain name="Mustang">
			<filesystem name="Permanent" transactional="true">
				<ivy pattern="${repository.dir}\Permanent\[module]\[branch]\[revision]\ivy.xml" />
				<artifact pattern="${repository.dir}\Permanent\[module]\[branch]\[revision]\[artifact](.[ext])" />
			</filesystem>
			<filesystem name="Nightly" transactional="true">
				<ivy pattern="${repository.dir}\Nightly\[module]\[branch]\[revision]\ivy.xml" />
				<artifact pattern="${repository.dir}\Nightly\[module]\[branch]\[revision]\[artifact](.[ext])" />
			</filesystem>
		</chain>
	</resolvers>
</ivysettings>

I am running Ivy from an MSBuild script using a command line like the following:

java.exe -cp ivy.jar;commons-cli.jar -Drepository.dir=C:\Temp org.apache.ivy.Main -settings ivysettings.Nightly.xml -ivy ivy.xml -revision 1.0.0.0 -publish Nightly -deliverto build\ivy.xml -status integration -publishpattern build\[artifact](.[ext])

  was:
I am attempting to use the new atomic commit functionality in the filesystem resolver (fix for IVY-492.)

The publishing process appears to complete, and does not show any errors, but the artifacts are left in a directory named '[revision].part'.

I am using the following ivy settings:

<ivysettings>
	<settings defaultResolver="Mustang" latest="latest-revision" circularDependencyStrategy="error" defaultConflictManager="strict" defaultBranch="trunk" />
	<cache lockStrategy="artifact-lock" />
	<resolvers>
		<chain name="Mustang">
			<filesystem name="Permanent" transactional="true">
				<ivy pattern="${repository.dir}\Permanent\[module]\[branch]\[revision]\ivy.xml" />
				<artifact pattern="${repository.dir}\Permanent\[module]\[branch]\[revision]\[artifact](.[ext])" />
			</filesystem>
			<filesystem name="Nightly" transactional="true">
				<ivy pattern="${repository.dir}\Nightly\[module]\[branch]\[revision]\ivy.xml" />
				<artifact pattern="${repository.dir}\Nightly\[module]\[branch]\[revision]\[artifact](.[ext])" />
			</filesystem>
		</chain>
	</resolvers>
</ivysettings>

I am running Ivy from an MSBuild script using a command line like the following:

java.exe -cp ivy.jar;commons-cli.jar -Drepository.dir=C:\Temp org.apache.ivy.Main -settings ivysettings.Nightly.xml -ivy ivy.xml -revision 1.0.0.0 -publish Nightly -deliverto build\ivy.xml -status integration -publishpattern build\[artifact](.[ext])

        Summary: File system resolver fails to rename artifact directory during atomic publish  (was: File system resolver fails to rename artifact directory during atomic commit)

> File system resolver fails to rename artifact directory during atomic publish
> -----------------------------------------------------------------------------
>
>                 Key: IVY-733
>                 URL: https://issues.apache.org/jira/browse/IVY-733
>             Project: Ivy
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.0.0-beta-2
>         Environment: Windows XP Professional SP2 and Windows Vista Ultimate.
> Java version 1.6.0_04.
> Ivy running standalone (called from MSBuild scripts.)
>            Reporter: Tim Berry
>
> I am attempting to use the new atomic publishing functionality in the filesystem resolver (fix for IVY-492.)
> The publishing process appears to complete, and does not show any errors, but the artifacts are left in a directory named '[revision].part'.
> I am using the following ivy settings:
> <ivysettings>
> 	<settings defaultResolver="Mustang" latest="latest-revision" circularDependencyStrategy="error" defaultConflictManager="strict" defaultBranch="trunk" />
> 	<cache lockStrategy="artifact-lock" />
> 	<resolvers>
> 		<chain name="Mustang">
> 			<filesystem name="Permanent" transactional="true">
> 				<ivy pattern="${repository.dir}\Permanent\[module]\[branch]\[revision]\ivy.xml" />
> 				<artifact pattern="${repository.dir}\Permanent\[module]\[branch]\[revision]\[artifact](.[ext])" />
> 			</filesystem>
> 			<filesystem name="Nightly" transactional="true">
> 				<ivy pattern="${repository.dir}\Nightly\[module]\[branch]\[revision]\ivy.xml" />
> 				<artifact pattern="${repository.dir}\Nightly\[module]\[branch]\[revision]\[artifact](.[ext])" />
> 			</filesystem>
> 		</chain>
> 	</resolvers>
> </ivysettings>
> I am running Ivy from an MSBuild script using a command line like the following:
> java.exe -cp ivy.jar;commons-cli.jar -Drepository.dir=C:\Temp org.apache.ivy.Main -settings ivysettings.Nightly.xml -ivy ivy.xml -revision 1.0.0.0 -publish Nightly -deliverto build\ivy.xml -status integration -publishpattern build\[artifact](.[ext])

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (IVY-733) File system resolver fails to rename artifact directory during atomic publish

Posted by "Tim Berry (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/IVY-733?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tim Berry updated IVY-733:
--------------------------

    Description: 
I am attempting to use the new atomic publishing functionality in the filesystem resolver (fix for IVY-492.)

The publishing process appears to complete, and does not show any errors, but the artifacts are left in a directory named '[revision].part'.

See attached file for the ivy settings I am using.

I am running Ivy from an MSBuild script using a command line like the following:

java.exe -cp ivy.jar;commons-cli.jar -Drepository.dir=C:\Temp org.apache.ivy.Main -settings ivysettings.Nightly.xml -ivy ivy.xml -revision 1.0.0.0 -publish Nightly -deliverto build\ivy.xml -status integration -publishpattern build\[artifact](.[ext])

  was:
I am attempting to use the new atomic publishing functionality in the filesystem resolver (fix for IVY-492.)

The publishing process appears to complete, and does not show any errors, but the artifacts are left in a directory named '[revision].part'.

I am using the following ivy settings:

<ivysettings>
	<settings defaultResolver="Mustang" latest="latest-revision" circularDependencyStrategy="error" defaultConflictManager="strict" defaultBranch="trunk" />
	<cache lockStrategy="artifact-lock" />
	<resolvers>
		<chain name="Mustang">
			<filesystem name="Permanent" transactional="true">
				<ivy pattern="${repository.dir}\Permanent\[module]\[branch]\[revision]\ivy.xml" />
				<artifact pattern="${repository.dir}\Permanent\[module]\[branch]\[revision]\[artifact](.[ext])" />
			</filesystem>
			<filesystem name="Nightly" transactional="true">
				<ivy pattern="${repository.dir}\Nightly\[module]\[branch]\[revision]\ivy.xml" />
				<artifact pattern="${repository.dir}\Nightly\[module]\[branch]\[revision]\[artifact](.[ext])" />
			</filesystem>
		</chain>
	</resolvers>
</ivysettings>

I am running Ivy from an MSBuild script using a command line like the following:

java.exe -cp ivy.jar;commons-cli.jar -Drepository.dir=C:\Temp org.apache.ivy.Main -settings ivysettings.Nightly.xml -ivy ivy.xml -revision 1.0.0.0 -publish Nightly -deliverto build\ivy.xml -status integration -publishpattern build\[artifact](.[ext])


> File system resolver fails to rename artifact directory during atomic publish
> -----------------------------------------------------------------------------
>
>                 Key: IVY-733
>                 URL: https://issues.apache.org/jira/browse/IVY-733
>             Project: Ivy
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.0.0-beta-2
>         Environment: Windows XP Professional SP2 and Windows Vista Ultimate.
> Java version 1.6.0_04.
> Ivy running standalone (called from MSBuild scripts.)
>            Reporter: Tim Berry
>         Attachments: ivysettings.Nightly.xml
>
>
> I am attempting to use the new atomic publishing functionality in the filesystem resolver (fix for IVY-492.)
> The publishing process appears to complete, and does not show any errors, but the artifacts are left in a directory named '[revision].part'.
> See attached file for the ivy settings I am using.
> I am running Ivy from an MSBuild script using a command line like the following:
> java.exe -cp ivy.jar;commons-cli.jar -Drepository.dir=C:\Temp org.apache.ivy.Main -settings ivysettings.Nightly.xml -ivy ivy.xml -revision 1.0.0.0 -publish Nightly -deliverto build\ivy.xml -status integration -publishpattern build\[artifact](.[ext])

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (IVY-733) File system resolver fails to rename artifact directory during atomic publish

Posted by "Xavier Hanin (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/IVY-733?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Xavier Hanin updated IVY-733:
-----------------------------

    Fix Version/s: 2.0

> File system resolver fails to rename artifact directory during atomic publish
> -----------------------------------------------------------------------------
>
>                 Key: IVY-733
>                 URL: https://issues.apache.org/jira/browse/IVY-733
>             Project: Ivy
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.0.0-beta-2
>         Environment: Windows XP Professional SP2 and Windows Vista Ultimate.
> Java version 1.6.0_04.
> Ivy running standalone (called from MSBuild scripts.)
>            Reporter: Tim Berry
>             Fix For: 2.0
>
>         Attachments: ivysettings.Nightly.xml
>
>
> I am attempting to use the new atomic publishing functionality in the filesystem resolver (fix for IVY-492.)
> The publishing process appears to complete, and does not show any errors, but the artifacts are left in a directory named '[revision].part'.
> See attached file for the ivy settings I am using.
> I am running Ivy from an MSBuild script using a command line like the following:
> java.exe -cp ivy.jar;commons-cli.jar -Drepository.dir=C:\Temp org.apache.ivy.Main -settings ivysettings.Nightly.xml -ivy ivy.xml -revision 1.0.0.0 -publish Nightly -deliverto build\ivy.xml -status integration -publishpattern build\[artifact](.[ext])

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (IVY-733) File system resolver fails to rename artifact directory during atomic publish

Posted by "Xavier Hanin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/IVY-733?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12608064#action_12608064 ] 

Xavier Hanin commented on IVY-733:
----------------------------------

I've added more tests, more messages, more checks against failure to try to prevent this and better diagnose when something goes wrong. I've also added a check to see if the final destination directory already exist before starting the transaction, which makes the final move impossible. This is probably what was causing the problem for you. Could you try again the trunk version and tell if it fails with a clean message?

> File system resolver fails to rename artifact directory during atomic publish
> -----------------------------------------------------------------------------
>
>                 Key: IVY-733
>                 URL: https://issues.apache.org/jira/browse/IVY-733
>             Project: Ivy
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.0.0-beta-2
>         Environment: Windows XP Professional SP2 and Windows Vista Ultimate.
> Java version 1.6.0_04.
> Ivy running standalone (called from MSBuild scripts.)
>            Reporter: Tim Berry
>             Fix For: 2.0-RC1
>
>         Attachments: ivysettings.Nightly.xml
>
>
> I am attempting to use the new atomic publishing functionality in the filesystem resolver (fix for IVY-492.)
> The publishing process appears to complete, and does not show any errors, but the artifacts are left in a directory named '[revision].part'.
> See attached file for the ivy settings I am using.
> I am running Ivy from an MSBuild script using a command line like the following:
> java.exe -cp ivy.jar;commons-cli.jar -Drepository.dir=C:\Temp org.apache.ivy.Main -settings ivysettings.Nightly.xml -ivy ivy.xml -revision 1.0.0.0 -publish Nightly -deliverto build\ivy.xml -status integration -publishpattern build\[artifact](.[ext])

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (IVY-733) File system resolver fails to rename artifact directory during atomic publish

Posted by "Tim Berry (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/IVY-733?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tim Berry updated IVY-733:
--------------------------

    Attachment: ivysettings.Nightly.xml

> File system resolver fails to rename artifact directory during atomic publish
> -----------------------------------------------------------------------------
>
>                 Key: IVY-733
>                 URL: https://issues.apache.org/jira/browse/IVY-733
>             Project: Ivy
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.0.0-beta-2
>         Environment: Windows XP Professional SP2 and Windows Vista Ultimate.
> Java version 1.6.0_04.
> Ivy running standalone (called from MSBuild scripts.)
>            Reporter: Tim Berry
>         Attachments: ivysettings.Nightly.xml
>
>
> I am attempting to use the new atomic publishing functionality in the filesystem resolver (fix for IVY-492.)
> The publishing process appears to complete, and does not show any errors, but the artifacts are left in a directory named '[revision].part'.
> I am using the following ivy settings:
> <ivysettings>
> 	<settings defaultResolver="Mustang" latest="latest-revision" circularDependencyStrategy="error" defaultConflictManager="strict" defaultBranch="trunk" />
> 	<cache lockStrategy="artifact-lock" />
> 	<resolvers>
> 		<chain name="Mustang">
> 			<filesystem name="Permanent" transactional="true">
> 				<ivy pattern="${repository.dir}\Permanent\[module]\[branch]\[revision]\ivy.xml" />
> 				<artifact pattern="${repository.dir}\Permanent\[module]\[branch]\[revision]\[artifact](.[ext])" />
> 			</filesystem>
> 			<filesystem name="Nightly" transactional="true">
> 				<ivy pattern="${repository.dir}\Nightly\[module]\[branch]\[revision]\ivy.xml" />
> 				<artifact pattern="${repository.dir}\Nightly\[module]\[branch]\[revision]\[artifact](.[ext])" />
> 			</filesystem>
> 		</chain>
> 	</resolvers>
> </ivysettings>
> I am running Ivy from an MSBuild script using a command line like the following:
> java.exe -cp ivy.jar;commons-cli.jar -Drepository.dir=C:\Temp org.apache.ivy.Main -settings ivysettings.Nightly.xml -ivy ivy.xml -revision 1.0.0.0 -publish Nightly -deliverto build\ivy.xml -status integration -publishpattern build\[artifact](.[ext])

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (IVY-733) File system resolver fails to rename artifact directory during atomic publish

Posted by "Tim Berry (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/IVY-733?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12608075#action_12608075 ] 

Tim Berry commented on IVY-733:
-------------------------------

I can still reproduce the original problem with our current build environment using the 2.0.0-beta2 release, but I no longer see the problem using ivy built from the latest sources in trunk.

> File system resolver fails to rename artifact directory during atomic publish
> -----------------------------------------------------------------------------
>
>                 Key: IVY-733
>                 URL: https://issues.apache.org/jira/browse/IVY-733
>             Project: Ivy
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.0.0-beta-2
>         Environment: Windows XP Professional SP2 and Windows Vista Ultimate.
> Java version 1.6.0_04.
> Ivy running standalone (called from MSBuild scripts.)
>            Reporter: Tim Berry
>            Assignee: Xavier Hanin
>             Fix For: 2.0-RC1
>
>         Attachments: ivysettings.Nightly.xml
>
>
> I am attempting to use the new atomic publishing functionality in the filesystem resolver (fix for IVY-492.)
> The publishing process appears to complete, and does not show any errors, but the artifacts are left in a directory named '[revision].part'.
> See attached file for the ivy settings I am using.
> I am running Ivy from an MSBuild script using a command line like the following:
> java.exe -cp ivy.jar;commons-cli.jar -Drepository.dir=C:\Temp org.apache.ivy.Main -settings ivysettings.Nightly.xml -ivy ivy.xml -revision 1.0.0.0 -publish Nightly -deliverto build\ivy.xml -status integration -publishpattern build\[artifact](.[ext])

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (IVY-733) File system resolver fails to rename artifact directory during atomic publish

Posted by "Xavier Hanin (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/IVY-733?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Xavier Hanin reassigned IVY-733:
--------------------------------

    Assignee: Xavier Hanin

> File system resolver fails to rename artifact directory during atomic publish
> -----------------------------------------------------------------------------
>
>                 Key: IVY-733
>                 URL: https://issues.apache.org/jira/browse/IVY-733
>             Project: Ivy
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.0.0-beta-2
>         Environment: Windows XP Professional SP2 and Windows Vista Ultimate.
> Java version 1.6.0_04.
> Ivy running standalone (called from MSBuild scripts.)
>            Reporter: Tim Berry
>            Assignee: Xavier Hanin
>             Fix For: 2.0-RC1
>
>         Attachments: ivysettings.Nightly.xml
>
>
> I am attempting to use the new atomic publishing functionality in the filesystem resolver (fix for IVY-492.)
> The publishing process appears to complete, and does not show any errors, but the artifacts are left in a directory named '[revision].part'.
> See attached file for the ivy settings I am using.
> I am running Ivy from an MSBuild script using a command line like the following:
> java.exe -cp ivy.jar;commons-cli.jar -Drepository.dir=C:\Temp org.apache.ivy.Main -settings ivysettings.Nightly.xml -ivy ivy.xml -revision 1.0.0.0 -publish Nightly -deliverto build\ivy.xml -status integration -publishpattern build\[artifact](.[ext])

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.