Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
1.0-beta-4
-
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.