In ClearCase how long does it take for a changeset

2019-06-02 08:03发布

问题:

I am trying to understand how long ClearCase operations take after performing the add to source control operations.

If I am working through a CCRC snapshot view and I add a file to source control, how long will it take for the changeset to be updated with the new line, and how long until the operation completes will the new file be available under a dynamic view pointing to the stream that the file was checked into?

Is there any way to speed up that process by invoking a manual update of the dynamic view or something?

Regards,

Andrew

回答1:

how long will it take for the changeset to be updated with the new line

As soon as you checkout a file, selecting an activity, it will update the chenge set of said activity immediately.

A dynamic view would reflect that file only after you check in (through your web snapshot view in CCRC), and that update would also be near instantaneous.
To speed up, you can refresh the dynamic view, or do a cleartool ls in the directory you want to see updated.

In each case, when you are doing a checkout or a checkin through CCRC, you are posting an http request to the CCRC server which in turn complete the operation with the ClearCase Vob/View server.
So once the checkout/checkin is completed, any other ClearCase view (CCRC or not) would be ready to reflect the changes.
The only part which takes time is the communication between the CCRC client and the CCRC server. That server being usually on the same LAN as the ClearCase server, the ClearCase command itself executes fairly quickly.


"fairly quickly" turned out too slow for the OP's need: a postop trigger on checkin.

That trigger use a ClearCase dynamic view on the server side, and has to introduce a sleep on the element checkin (on mkelem) in order for the second call of that trigger (on the parent directory being checked in) to properly detect the new created file.



回答2:

Theoretically, it should be instant. As soon as the add finishes, the dynamic view should see the new file. In reality, it might take longer due to the nature of ClearCase and its view processes.

Every view has a process running on the view server (local or remote), and this process needs to query the VOB server to get the changes.

In our ClearCase environment, we see many lags that are probably the combination of a loaded server and network traffic.

Bottom line - should be quick (seconds), but not instant. If it takes longer, you should try and see what might be slowing the processes down.



标签: clearcase