Uploaded image for project: 'ACE'
  1. ACE
  2. ACE-449

IllegalStateException when deploymentversionlimit is re-configured to a value lower than the amount of deployment versions in the repository

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.0.1
    • None
    • None

    Description

      When the deploymentversionlimit property in org.apache.ace.client.repository.cfg is re-configured to a value that is lower than the number of deployment versions currently available in the repository I get an IllegalStateException when trying to create a workspace.

      Steps to reproduce:

      • Create a new ace instance (with the default deploymentversionlimit of -1)
      • Add a few artifacts ( at least 3)
      • create a feature, distribution and target
      • link the feature, distribution and target
      • add one artifact to the feature
      • store
      • add a second artifact to the feature
      • store
      • add a third artifact to the feature
      • store
      • stop ace (at least the client when not using the allinone distibution)
      • change the deploymentversionlimit to 2
      • start ace again
      • run "ace:cw" in the gogo shell

      For me this results in the following output:

      g! ace:cw
      gogo: ConversionException: java.lang.IllegalStateException: The repository is currently busy, so no objects can be removed.
      ---- Debugging information ----
      message : java.lang.IllegalStateException: The repository is currently busy, so no objects can be removed.
      cause-exception : java.lang.IllegalArgumentException
      cause-message : java.lang.IllegalStateException: The repository is currently busy, so no objects can be removed.
      class : org.apache.ace.client.repository.impl.RepositorySerializer
      required-type : org.apache.ace.client.repository.impl.RepositorySerializer
      path : /repository/deploymentversions/deploymentversion[3]
      line number : 68
      -------------------------------

      Attachments

        Issue Links

          Activity

            People

              marrs Marcel Offermans
              brampouwelse Bram Pouwelse
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: