Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-25042

Updating a snapshot view triggers a race condition on fast machines

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • clearcase-plugin
    • None
    • Jenkins 1.583, CC plugin latest, Windows 7, CC 8

      We are currently installing some new and fast hardware and run into snapshot view update problems like below. I can reproduce this on the command line by adding the cleartool endview and cleartool catcs into a batch script, the update almost always fails. If I add a pause of 500 ms between the two commands, everything works reliably. We even see the error on our older and slower machines, but very sporadically.

      So my question is: Ist this repeated cleartool endview really necessary? Or is it possible to add some (configurable) wait/sleep inbetween the commands? At the moment the new and fast hardware is not usable with the ClearCase plugin for us because updates almost always fail.

      10:43:55 [Snapshots] $ cleartool endview -server view_name
      10:43:55
      10:43:55 [Snapshots] $ cleartool catcs -tag view_name
      10:43:55 view_contact call failed: RPC: Unable to receive; errno = [WINSOCK] Connection reset by peer
      10:43:55 cleartool: Error: Error trying to contact view_server for view path_to_view_name.vws: No such file or directory
      10:43:55
      10:43:55 FATAL: Base ClearCase failed. exit code=1
      10:43:55 java.io.IOException: cleartool did not return the expected exit code. Command line="catcs -tag view_name", actual exit code=1
      10:43:55 at hudson.plugins.clearcase.HudsonClearToolLauncher.run(HudsonClearToolLauncher.java:152)
      10:43:55 at hudson.plugins.clearcase.ClearToolExec.runAndProcessOutput(ClearToolExec.java:907)
      10:43:55 at hudson.plugins.clearcase.ClearToolExec.catcs(ClearToolExec.java:103)
      10:43:55 at hudson.plugins.clearcase.action.BaseSnapshotCheckoutAction.checkout(BaseSnapshotCheckoutAction.java:104)
      10:43:55 at hudson.plugins.clearcase.AbstractClearCaseScm.checkout(AbstractClearCaseScm.java:383)
      10:43:55 at hudson.model.AbstractProject.checkout(AbstractProject.java:1253)
      10:43:55 at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:622)
      10:43:55 at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
      10:43:55 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:528)
      10:43:55 at hudson.model.Run.execute(Run.java:1745)
      10:43:55 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      10:43:55 at hudson.model.ResourceController.execute(ResourceController.java:89)
      10:43:55 at hudson.model.Executor.run(Executor.java:240)

      ClearCase version info:
      10:41:35 [Snapshots] $ cleartool -version
      10:41:35 ClearCase version 8.0.0.01 (Wed Dec 28 01:01:29 EST 2011) (8.0.0.01.00_2011D.FCS)
      10:41:35 ClearCase version 8.0.0.02 (Thu Apr 05 18:31:09 EST 2012) (8.0.0.02.00_2012A.FCS)
      10:41:35 ClearCase version 8.0.0.03 (Thu Jun 21 16:08:51 EST 2012) (8.0.0.03.00_2012B.FCS)
      10:41:35 ClearCase version 8.0.0.04 (Thu Sep 13 15:30:21 EDT 2012) (8.0.0.04.00_2012C.FCS)
      10:41:35 ClearCase version 8.0.0.05 (Wed Dec 12 19:09:45 EST 2012) (8.0.0.05.00_2012D.FCS)
      10:41:35 ClearCase version 8.0.0.06 (Fri Mar 20 10:35:58 EST 2013) (8.0.0.06.00_2013A.FCS)
      10:41:35 ClearCase version 8.0.0.07 (Tue Jun 11 00:01:08 EDT 2013) (8.0.0.07.00_2013B.FCS)
      10:41:35 ClearCase version 8.0.0.08 (Mon Sep 23 00:01:21 EDT 2013) (8.0.0.08.00_2013C.FCS)
      10:41:35 ClearCase version 8.0.0.09 (Wed Dec 11 00:01:16 EST 2013) (8.0.0.09.00_2013D.FCS)
      10:41:35 ClearCase version 8.0.0.10 (Tue Mar 04 20:30:56 EST 2014) (8.0.0.10.00_2014A.D140304)
      10:41:36 @(#) MVFS version 8.0.0.10 (Wed Feb 19 21:13:32 2014)

      10:41:36 cleartool 8.0.0.10 (Tue Mar 4 21:16:26 2014)
      10:41:36 db_server 8.0.0.10 (Tue Feb 25 21:21:26 2014)

      10:41:36 VOB database schema versions: 54, 80

            vlatombe Vincent Latombe
            bruce Dirk Kuypers
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: