1. 31 Jul, 2020 1 commit
  2. 19 Apr, 2017 4 commits
  3. 14 Sep, 2016 2 commits
  4. 13 Sep, 2016 6 commits
  5. 28 Apr, 2016 2 commits
    • Julien Muchembled's avatar
      Changelog for PR #52 · 64f3b58f
      Julien Muchembled authored
      64f3b58f
    • Julien Muchembled's avatar
      Fix possible data corruption after FileStorage is truncated to roll back a transaction · 2ed12f35
      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.
      
      (cherry picked from commit 028b1922)
      
      Conflicts:
      	src/ZODB/FileStorage/FileStorage.py
      2ed12f35
  6. 17 Mar, 2016 4 commits
  7. 16 Mar, 2016 1 commit
  8. 10 Mar, 2014 3 commits
  9. 03 Mar, 2014 2 commits
  10. 03 Feb, 2014 6 commits
  11. 23 Dec, 2013 1 commit
  12. 21 Oct, 2013 2 commits
  13. 17 Sep, 2013 3 commits
  14. 11 Jun, 2012 1 commit
  15. 25 May, 2012 1 commit
  16. 19 May, 2012 1 commit