Topic
  • 4 replies
  • Latest Post - ‏2013-04-02T20:04:50Z by SystemAdmin
SystemAdmin
SystemAdmin
47293 Posts

Pinned topic lost a label applied to checkedout version

‏2013-03-13T10:55:08Z |
Yesterday, one element history looked as follows:

$ ct lsvtree foo foo@@/main foo@@/main/0 foo@@/main/dev foo@@/main/dev/0 foo@@/main/dev/CHECKEDOUT view 
"jenkins" (LBT)

Applying from another view a new label over LBT failed, since the element was checked out.
We asked the developer to check in, which he did, resulting in:

$ ct lsvtree foo foo@@/main foo@@/main/0 foo@@/main/dev foo@@/main/dev/1 $ ct lshist -minor foo --03-12T18:46  jbond    create version 
"foo@@/main/dev/1" --02-01T13:37  jbond    create version 
"foo@@/main/dev/0" --02-01T13:37  jbond    create branch 
"foo@@/main/dev" --02-01T13:37  jbond    create version 
"foo@@/main/0" --02-01T13:37  jbond    create branch 
"foo@@/main" --02-01T13:37  jbond    create file element 
"foo@@" $ ct lshist -minor -l -since yesterday foo 2013-03-12T18:46:45+01:00 James Bond (jbond.des@moscow) create version 
"foo@@/main/dev/1"

The question: where did the LBT label go?
I fail to reproduce: applying a label to a checkedout version, then checkin in results in the label following the checkin.
Can the fact that the first application took place on Feb 1, and that the vob was scrubbed since, have an effect?
The last scrubbing log record for this vob is:

scrubbing parameters: 
"/opt/rational/clearcase/config/vob/vob_scrubber_params" Started VOB 
"/cc/vobs10/cominf_media.vbs" at 2013-03-10T02:43:39+01:00.   Number of   Events      Events      Events      Kind of event objects     before      deleted     after       by meta-type ----------  ----------  ----------  ----------  ------------------------------- 1          29           0          29  versioned object base 4         815         126         689  replica 3           5           0           5  pool 1           1           0           1  replica type 13          13           0          13  element type 4           4           0           4  branch type 9          12           0          12  label type 9           9           0           9  attribute type 9           9           0           9  hyperlink type 1134        1134           0        1134  directory element 8734       17426           0       17426  file element 19715       19715           0       19715  branch 3426        6511        1414        5097  directory version 26866       53149       11617       41532  version 59928       98832       13157       85675  total in VOB   Event scrubbing done. 0 Oplog entries created before 2012-12-10T02:43:39+01:00 have been deleted. Oplog scrubbing done. 0 Export rows created before 2012-12-10T02:43:39+01:00 have been deleted. Finished VOB 
"/cc/vobs10/cominf_media.vbs" at 2013-03-10T02:44:07+01:00. packages> grep mklabel /opt/rational/clearcase/config/vob/vob_scrubber_params event mklabel                -keep_all 7     -keep_last 30

Thanks,
Marc
Updated on 2013-04-02T20:04:50Z at 2013-04-02T20:04:50Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    47293 Posts

    Re: lost a label applied to checkedout version

    ‏2013-03-13T11:14:58Z  
    Marc wrote:
    > The last scrubbing log record for this vob is:
    ...
              9          12           0          12  label type
    

    So, if I understand correctly, no label related events were scrubbed on March 10.
    Addition: the record for March 3 (the first one 30 days after the checkout event) doesn't either show any:
    scrubbing parameters: "/opt/rational/clearcase/config/vob/vob_scrubber_params"
    Started VOB "/cc/vobs10/dte,coverity.vbs" at 2013-03-03T03:02:36+01:00.
     
    Number of   Events      Events      Events      Kind of event
    objects     before      deleted     after       by meta-type
    ----------  ----------  ----------  ----------  -------------------------------
    ...
            36          40           0          40  label type
    

    Marc
    Updated on 2014-03-26T13:42:33Z at 2014-03-26T13:42:33Z by iron-man
  • SystemAdmin
    SystemAdmin
    47293 Posts

    Re: lost a label applied to checkedout version

    ‏2013-03-13T11:22:09Z  
    Marc wrote:
    > The last scrubbing log record for this vob is:
    <pre class="java dw" data-editor-lang="java" data-pbcklang="java" dir="ltr">... 9 12 0 12 label type </pre>
    So, if I understand correctly, no label related events were scrubbed on March 10.
    Addition: the record for March 3 (the first one 30 days after the checkout event) doesn't either show any:
    <pre class="java dw" data-editor-lang="java" data-pbcklang="java" dir="ltr">scrubbing parameters: "/opt/rational/clearcase/config/vob/vob_scrubber_params" Started VOB "/cc/vobs10/dte,coverity.vbs" at 2013-03-03T03:02:36+01:00. Number of Events Events Events Kind of event objects before deleted after by meta-type ---------- ---------- ---------- ---------- ------------------------------- ... 36 40 0 40 label type </pre>
    Marc
    > Marc wrote:
    > Addition: the record for March 3 (the first one 30 days after the checkout event)
    > doesn't either show any:
    Started VOB "/cc/vobs10/dte,coverity.vbs" at 2013-03-03T03:02:36+01:00.
    

    Sorry: wrong vob! I meant:
    Started VOB "/cc/vobs10/cominf_media.vbs" at 2013-03-10T02:43:39+01:00.
     
    Number of   Events      Events      Events      Kind of event
    objects     before      deleted     after       by meta-type
    ----------  ----------  ----------  ----------  -------------------------------
    ...
             9          12           0          12  label type
    

    Marc
    Updated on 2014-03-26T13:42:13Z at 2014-03-26T13:42:13Z by iron-man
  • Dave-Robinson
    Dave-Robinson
    116 Posts

    Re: lost a label applied to checkedout version

    ‏2013-04-02T06:00:01Z  
    Hello Marc,

    Per the events_ccase man page, the events associated with mklabel and rmlabel operations are associated to the "version" object, not the "lbtype" object.
    You would see them in a "lshistory -minor" of the element, subject to scrubbing.

    The other data that can be used (with difficulty) for post-mortem analysis is, if the VOB is MultiSite replicated, the oplogs, extracted by "multitool dumpoplog".

    Dave
  • SystemAdmin
    SystemAdmin
    47293 Posts

    Re: lost a label applied to checkedout version

    ‏2013-04-02T20:04:50Z  
    Hello Marc,

    Per the events_ccase man page, the events associated with mklabel and rmlabel operations are associated to the "version" object, not the "lbtype" object.
    You would see them in a "lshistory -minor" of the element, subject to scrubbing.

    The other data that can be used (with difficulty) for post-mortem analysis is, if the VOB is MultiSite replicated, the oplogs, extracted by "multitool dumpoplog".

    Dave
    Hi Dave,
    Thanks for your reply.

    Dave-Robinson wrote:
    > You would see them in a "lshistory -minor" of the element, subject to scrubbing.

    But that's where I looked for them: the element is 'foo'...
    Now, I expected that these would still be mklabel and rmlabel events, hence be scrubbed as such.

    > The other data that can be used (with difficulty) for post-mortem analysis is,
    > if the VOB is MultiSite replicated, the oplogs, extracted by "multitool dumpoplog".

    Right. I don't remember now if I looked at it, and if not, why not... Maybe out of laziness, since it involves some scripting, as you note.
    It's not too late. We keep oplogs for 90 days...

    Marc