Uploaded image for project: 'Maven SCM'
  1. Maven SCM
  2. SCM-279

Clearcase scm:update Hangs After Stream Configuration Has Changed (patch included)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 1.0-beta-4
    • 1.0-rc1
    • None

    Description

      Maven hangs when running scm:update goal on a Clearcase snapshot view for a stream that has been rebased (see attached debug output). The same goal works fine once the view is manually updated to the new configuration. Using a custom config spec seems to make no difference (though I'm no expert on config specs).

      The project POM includes the following lines:
      <scm>
      <connection>scm:clearcase:no_spec</connection>
      </scm>

      The hang is caused by the 'cleartool update' command, which requires an extra argument (-force) to prevent it from displaying the following message and waiting for input:

      The stream's configuration has changed.
      This update operation will make the view show the new configuration.
      Do you want to update the view now? [yes]

      Note that this issue has caused our CruiseControl server to hang, as there does not seem to be any timeout on the scm:update operation.

      A patch is attached, which fixes the problem by adding the -force argument to the cleartool command. I'll let you guys decide whether there are any other unwanted side-effects of doing this.

      Attachments

        1. scm-clearcase-update.patch
          2 kB
          Mark Holster
        2. ClearCaseUpdateCommand.java
          4 kB
          Dave Blumenfeld
        3. DebugOutput.txt
          16 kB
          Dave Blumenfeld

        Activity

          People

            evenisse Emmanuel Venisse
            daveblumenfeld Dave Blumenfeld
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: