P4DTI issue job000522

TitleP4DTI may fail if Perforce client exists and is broken
Statusclosed
Priorityessential
Assigned userNick Barnes
OrganizationRavenbrook
DescriptionThe P4DTI creates a Perforce client when it first runs. The client name is "p4dti-" concatenated with the machine name (as returned by Python's socket.gethostname() function). This Perforce client may already exist, and may have a clientspec which is broken in such a way that it prevents the P4DTI from running, as reported by a customer [1].
AnalysisThe P4DTI should try harder to use a unique Perforce client, without a broken client spec. Maybe it should just fail if the automatically-generated client name already exists (this can be checked by doing "p4 clients", which doesn't need an existing client to run).
This is Perforce job 008038.[2]
How foundcustomer
Evidence[1] <http://info.ravenbrook.com/mail/2002/05/02/18-59-47/0.txt>
[2] <http://info.ravenbrook.com/mail/2002/05/07/18-30-01/0.txt>
Observed in1.4.2
Introduced in0.3.0
Created byNick Barnes
Created on2002-05-03 12:00:20
Last modified byNick Barnes
Last modified on2003-05-30 17:33:55
History2002-05-02 NB Created.

Fixes

Change Effect Date User Description
46723 closed 2003-05-30 17:33:15 Nick Barnes Work around broken client spec or depot list.