Re: [classad-users] collections, TruncateLog, and InitializeFromLog


Date: Wed, 10 Apr 2002 13:33:02 -0500 (CDT)
From: Su Zhang <zs@xxxxxxxxxxx>
Subject: Re: [classad-users] collections, TruncateLog, and InitializeFromLog
but whenever the initializefromlog is called, the first thing it does is
to clear all the views. so it should not find the root view when it start
to read the log. I will figure it out.
 thanks,
zs

On Wed, 10 Apr 2002, Rajesh Raman wrote:

> The "root" is created when the collections object is 
> instantiated.  My guess is that its trying to reset
> a view that already exists.  In addition, I remember
> the code having some checks so that the info of the
> root view cannot be changed.  An interaction between
> the two is probably what's causing this bug.  The fix
> might be to not have the "root" view spit out a record
> during truncation.
> 
> ++Rajesh
> 
> --- John Bethencourt <bethenco@xxxxxxxxxxxxxxx> wrote:
> > On Wed, Apr 10, 2002 at 11:07:37AM -0500, Alain
> > Aslag Roy wrote:
> > > John, maybe you could give us a before and after
> > log too: copy the log just 
> > > before you call TruncateLog, and copy it again
> > just after. The smaller the 
> > > log, the easier it will be for us to analyze, but
> > whatever works is okay.
> > 
> > Here are before and after copies of the log. The
> > only method I called on the
> > ClassAdCollection between the two was TruncateLog.
> > 
> > Lest there be any ambiguity about the exact text of
> > the log, note that the
> > first copy of the log has one line and the second
> > has two.
> > 
> > John B
> > 
> > 
> > 
> > <<<log before>>>
> > 
> > [ Ad = [ MyType = "Machine"; Machine =
> > "c01.cs.wisc.edu"; ReservedBy = "nobody" ]; Key =
> > "c01.cs.wisc.edu"; OpType = 10006 ]
> > 
> > <<<log after>>>
> > 
> > [ Requirements = true; SubordinateViews = {  };
> > PartitionExprs = {  }; NumMembers = 1; Rank =
> > undefined; PartitionedViews = {  }; ParentViewName =
> > ""; ViewName = "root"; OpType = 10001 ]
> > [ Ad = [ MyType = "Machine"; Machine =
> > "c01.cs.wisc.edu"; ReservedBy = "nobody" ]; Key =
> > "c01.cs.wisc.edu"; OpType = 10006 ]
> > Condor Classads Info:
> > http://www.cs.wisc.edu/condor/classad/
> > 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Tax Center - online filing with TurboTax
> http://taxes.yahoo.com/
> Condor Classads Info:
> http://www.cs.wisc.edu/condor/classad/
> 
> 



Condor Classads Info:
http://www.cs.wisc.edu/condor/classad/




[← Prev in Thread] Current Thread [Next in Thread→]