RE: [Zope] NOTICE: issue with database packing in current Zope releases

2000-07-06 Thread Dieter Maurer

Brian Lloyd writes:
Jim found a problem with the algorithm for packing the Zope
database that we wanted to announce so that folks can avoid 
being bitten by it until the fix is out (in b4).
   
   I think this is a candidate for a Hotfix.
   
   2.2 upgrades could be problematic and I think we might continue
   to see large numbers of 2.1.6 users until all the products run
   happily on it.
  
  Hm - the goal I had for Hotfixes was to address imperative 
  problems that couldn't really be addressed any other way. I'm 
  not sure that this _quite_ makes the grade in my opinion (but 
  I could probably be convinced). For example, a security problem 
  _demands_ a hotfix-type solution because you can't tell the 
  crackers out there "dont do that!". In this case, there is 
  a clear way to avoid the problem that *is* under your control
  and a clear way to recover in case you forget :)
It definitely is not an issue for me, because my Zope Sites
are still small (I never did pack up to now).

But large Zope sites with lots of temporary objects may need repacking
before they consume too much disk space.

Maybe, a patch would be a compromise.
Sites that need to care can apply the patch. Those that do not,
simply ignore it.
The patch could be announced with the problem report.


Dieter

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] NOTICE: issue with database packing in current Zope releases

2000-06-29 Thread Brian Lloyd

Hi all,

Jim found a problem with the algorithm for packing the Zope
database that we wanted to announce so that folks can avoid 
being bitten by it until the fix is out (in b4).

The gist of it is that you should not pack your database to 
a given time and then subsequently  pack the database to an 
*earlier* time. For example, do not pack to "older than 0 days"
and then pack to "older than 10 days". The algorithm in the 
current Zope releases doesn't handle this correctly and 
depending on the exact circumstances can end up getting rid 
of objects that it shouldn't in the packed version of the 
database.

Note that if you _are_ inadvertantly bitten by this, you can 
recover by using the Data.fs.old in the /var directory that is 
created at pack time.


Brian Lloyd[EMAIL PROTECTED]
Software Engineer  540.371.6909  
Digital Creations  http://www.digicool.com 



___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )