1. 30 Jun, 2016 2 commits
    • Jim Fulton's avatar
      Define a new interface for storages that support the new commit protocol. · 7901868a
      Jim Fulton authored
      This allows interface incompatibilities:
      
      - Future version of ZODB that requires the new protocol being
        configured with a storage that doesn't implement the new protocol
      
      - ZEO has a client that uses the old protocol can't use a storage that
        implements the new protocol.
      
      To be caught early.
      
      This commit also clarifies that the serial returned by ``undo()`` is ignored.
      7901868a
    • Jim Fulton's avatar
      4.4.0 · 1167cdcf
      Jim Fulton authored
      1167cdcf
  2. 21 Jun, 2016 1 commit
  3. 19 Jun, 2016 3 commits
  4. 18 Jun, 2016 2 commits
  5. 16 Jun, 2016 1 commit
  6. 13 Jun, 2016 2 commits
  7. 11 Jun, 2016 2 commits
    • Julien Muchembled's avatar
    • Julien Muchembled's avatar
      windows: fix failures due to low-precision of time.time() · f08b40e1
      Julien Muchembled authored
      This fixes the following random failure:
      
      Failure in test checkBaseHistory (ZODB.tests.testDemoStorage.DemoStorageTests)
      Traceback (most recent call last):
        File "unittest\case.py", line 384, in _executeTestPart
          function()
        File "ZODB\tests\testDemoStorage.py", line 96, in checkBaseHistory
          self._checkHistory(base_only())
        File "ZODB\tests\HistoryStorage.py", line 46, in _checkHistory
          self.assertLess(a, b)
        File "unittest\case.py", line 1026, in assertLess
          self.fail(self._formatMessage(msg, standardMsg))
        File "unittest\case.py", line 508, in fail
          raise self.failureException(msg)
      AssertionError: 1465433823.260304 not less than 1465433823.260304
      f08b40e1
  8. 06 Jun, 2016 6 commits
  9. 05 Jun, 2016 1 commit
  10. 31 May, 2016 3 commits
  11. 30 May, 2016 1 commit
  12. 17 May, 2016 1 commit
  13. 12 May, 2016 1 commit
  14. 09 May, 2016 3 commits
  15. 05 May, 2016 3 commits
  16. 04 May, 2016 1 commit
  17. 29 Apr, 2016 2 commits
  18. 28 Apr, 2016 2 commits
  19. 27 Apr, 2016 3 commits
    • Julien Muchembled's avatar
      Changelog for PR #52 · 06df0eba
      Julien Muchembled authored
      06df0eba
    • Julien Muchembled's avatar
      Fix possible data corruption after FileStorage is truncated to roll back a transaction · 028b1922
      Julien Muchembled authored
      Multi-threaded IO support, which is new to ZODB 3.10, allows clients to read
      data (load & loadBefore) even after tpc_vote has started to write a new
      transaction to disk. This is done by using different 'file' objects.
      
      Issues start when a transaction is rolled back after data has been appended
      (using the writing file object). Truncating is not enough because the FilePool
      may have been used concurrently to read the end of the last transaction:
      file objects have their own read buffers which, in this case, may also contain
      the beginning of the aborted transaction.
      
      So a solution is to invalidate read buffers whenever they may contain wrong
      data. This patch does it on truncation, which happens rarely enough to not
      affect performance.
      
      We discovered this bug in the following conditions:
      - ZODB splitted in several FileStorage
      - many conflicts in the first committed DB, but always resolved
      - unresolved conflict in another DB
      If the transaction is replayed with success (no more conflict in the other DB),
      a subsequent load of the object that could be resolved in the first DB may, for
      example, return a wrong serial (tid of the aborted transaction) if the layout
      of the committed transaction matches that of the aborted one.
      
      The bug usually manifests with POSKeyError & CorruptedDataError exceptions in
      ZEO logs, for example while trying to resolve a conflict (and restarting the
      transaction does not help, causing Site Errors in Zope). But theorically,
      this could also cause silent corruption or unpickling errors at client side.
      028b1922
    • Julien Muchembled's avatar
      Changelog for PR #54 · b83ac1c2
      Julien Muchembled authored
      b83ac1c2