Uploaded image for project: 'Continuum'
  1. Continuum
  2. CONTINUUM-1650

Cannot rollback release if prepare failed before create-backup-poms

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 1.1
    • None
    • Release
    • None

    Description

      If the release prepare step failed before the create-backup-poms, e.g. during check-dependency-snapshots, you cannot rollback the changes: the HTTP request times out, and the error below appears in the log file:

      BTW, the release:rollback mojo from maven-2.0.4 maven-release-plugin fails as well.

      10626479 [pool-5-thread-1] ERROR org.codehaus.plexus.taskqueue.execution.TaskQueueExecutor:rollback-release - Error executing task
      org.codehaus.plexus.taskqueue.execution.TaskExecutionException: Failed to rollback release
      at org.apache.maven.continuum.release.executors.RollbackReleaseTaskExecutor.execute(RollbackReleaseTaskExecutor.java:45)
      at org.apache.maven.continuum.release.executors.AbstractReleaseTaskExecutor.executeTask(AbstractReleaseTaskExecutor.java:67)
      at org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable$1.run(ThreadedTaskQueueExecutor.java:116)
      at edu.emory.mathcs.backport.java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:442)
      at edu.emory.mathcs.backport.java.util.concurrent.FutureTask.run(FutureTask.java:176)
      at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
      at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
      at java.lang.Thread.run(Thread.java:619)
      Caused by: org.apache.maven.shared.release.ReleaseExecutionException: Cannot restore from a missing backup POM: /data01/continuum/work/6/pom.xml.releaseBackup
      at org.apache.maven.shared.release.phase.RestoreBackupPomsPhase.restorePomBackup(RestoreBackupPomsPhase.java:90)
      at org.apache.maven.shared.release.phase.RestoreBackupPomsPhase.execute(RestoreBackupPomsPhase.java:69)
      at org.apache.maven.shared.release.DefaultReleaseManager.rollback(DefaultReleaseManager.java:248)
      at org.apache.maven.continuum.release.executors.RollbackReleaseTaskExecutor.execute(RollbackReleaseTaskExecutor.java:40)
      ... 7 more

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              greyfairer Geert Pante
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: