1. 27 May, 2004 1 commit
    • Chris Withers's avatar
      - Removed unused imports · f1752106
      Chris Withers authored
      - refactored slightly
      - logged when object cannot be resolved on re-indexing of an index
      - made manage_reindexIndex more efficient.
      f1752106
  2. 26 May, 2004 3 commits
  3. 23 May, 2004 7 commits
    • Chris McDonough's avatar
    • Chris McDonough's avatar
      Merge from 2.7 branch: · 1eeff781
      Chris McDonough authored
      Collector 789:  Zope's transaction behavior flawed.
                                                                                      
      Historically, errors that made it up to the publisher have run outside the
      context of a transaction.  This has caused problems for applications which
      expect to be able to write to the database (if only temporarily, before
      transaction.abort() is eventually called).
                                                                                      
      With this patch, we allow the error to execute in the same transaction as
      the "main" request, and abort only after the error has executed.
      1eeff781
    • Chris McDonough's avatar
      5a38c6e8
    • Chris McDonough's avatar
      Merge from 2.7 branch: · 92a1f1b4
      Chris McDonough authored
      Ensure that persistence machinery is tickled when __setitem__, __delitem__,
      clear, and update are called on a transient object.
      
      Also, use a distinct logger for error logging.
      92a1f1b4
    • Chris McDonough's avatar
      Merge from 2.7 branch: · 1f2a7cce
      Chris McDonough authored
      - Add "instance-local" "period" to TransientObjectContainer.  This allows
        users to dial a knob which may (or may not) reduce the number of conflicts
        that happen during heavy sessioning usage by reducing the frequency at
        which buckets potentially expire at the cost of expiration time
        accuracy.  Previously, this setting was hardcoded to 20 (seconds) at
        module scope.
      
      - Add 'session-resolution-seconds' to zope.conf.in/zopeschema.xml to
        control instance-local period for /temp_folder/session_data.
      
      - Update TOC UI, interface, and help files to deal with instance-local
        period.
      
      - Update OFS/Application to deal with instance-local period for default
        /temp/session_data TOC.
      
      - Use __setstate__ for TOC upgrade instead of a dedicated _upgrade method
        (it was too hard to figure out where to call _upgrade from and when to
        call it).
      
      - Perform a few formatting changes that should make it easier to merge the 2.7
        branch with the HEAD going forward.  I beseech those who make formatting
        changes to a branch or the HEAD make them to the other at that time
        as well, especially with the SVN/CVS split it's very painful to do merging
        when there are non-substantive differences between HEAD/maint.  When I was
        a child, I never thought I would need to use the word "beseech", however, it
        has indeed happened.
      1f2a7cce
    • Chris McDonough's avatar
      Merge from 2.7 branch: · 0871e361
      Chris McDonough authored
      Collector 1304: zopectl doesn't allow specification of zdrun effective user.
      0871e361
    • Chris Withers's avatar
  4. 22 May, 2004 4 commits
  5. 21 May, 2004 2 commits
  6. 20 May, 2004 2 commits
    • Chris McDonough's avatar
      6f2d9bf5
    • Chris McDonough's avatar
      Merge from 2.7 branch: · 5c95b165
      Chris McDonough authored
      - Simple parameterization of BUCKET_CLASS for testing/debugging purposes.
        BUCKET_CLASS can be set to something like "dict" in order to isolate
        future problems potentially caused by OOBTrees (not that there seem
        to be any, but it's nice to be able to confirm).
                                                                                      
      - Log at INFO level in TLOG instead of BLATHER.
                                                                                      
      - Fix "off by one" error in _getCurrentSlices and explain.
                                                                                      
      - Add various DEBUG and TLOG statements for testing/debugging purposes.
                                                                                      
      - Arrange to compare against "default" instead of "_marker" in .get.
                                                                                      
      - Use random.uniform instead of random.choice to decide how to sleep.
                                                                                      
      - Use "_wrap" instead of directly calling __of__ for consistency.
      5c95b165
  7. 19 May, 2004 2 commits
  8. 18 May, 2004 4 commits
  9. 17 May, 2004 3 commits
  10. 16 May, 2004 8 commits
  11. 15 May, 2004 4 commits
    • Chris McDonough's avatar
      Less verbose output. · f41ed0b5
      Chris McDonough authored
      f41ed0b5
    • Chris McDonough's avatar
      Merge from 2.7 branch. · b63a4b46
      Chris McDonough authored
      New "Transience" implementation.  This implementation offers no new features,
      but is is vastly simpler, which makes it easier to maintain.  The older version
      used all sorts of (questionable) tricks to attempt to avoid conflicts and to
      improve performance, such as using Python Queue-module queues to store action 
      lists, using an index to quickly look up which "bucket" a transient object
      was stored within and several other persistent objects which attempted to keep
      pointers into the data.  The older version also had a lot of "voodoo" code in
      it which papered over problems that was apparenly caused by its complexity.
      This code is now removed/replaced and the implementation is fairly straight-
      forward.
      
      The newer version is probably much slower (due to the lack of an index, it
      needs to scan all "current" buckets to attempt to find a value), but it 
      operates reliably under high load. 
      
      This implementation removes backwards compatibility support for transient
      object containers persisted via the Zope 2.5.X implementation.  It is possible
      to use it against instances created in Zope 2.6.X and better, and it
      is possible after using it against a database created under one of these
      flavors to move back to an "older" Zope in this range, although it is likely
      that data in the TOC will be silently lost when this is done.
      b63a4b46
    • Andreas Jung's avatar
      removed · efe70c9e
      Andreas Jung authored
      efe70c9e
    • Christian Heimes's avatar
      3fd60861