[Checkins] [zopefoundation/ZODB] 790186: Define a new interface for storages that support t...
GitHub
noreply at github.com
Mon Jul 4 21:29:39 CEST 2016
Branch: refs/heads/master
Home: https://github.com/zopefoundation/ZODB
Commit: 7901868a60624d501ac581451459e2e068ce6fb8
https://github.com/zopefoundation/ZODB/commit/7901868a60624d501ac581451459e2e068ce6fb8
Author: Jim Fulton <jim at zope.com>
Date: 2016-06-30 (Thu, 30 Jun 2016)
Changed paths:
M src/ZODB/interfaces.py
Log Message:
-----------
Define a new interface for storages that support the new commit protocol.
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.
Commit: c5fe46d041e82d546532b1779128631ed3c48cc6
https://github.com/zopefoundation/ZODB/commit/c5fe46d041e82d546532b1779128631ed3c48cc6
Author: Jim Fulton <jim at zope.com>
Date: 2016-06-30 (Thu, 30 Jun 2016)
Changed paths:
M src/ZODB/interfaces.py
Log Message:
-----------
Revert "Define a new interface for storages that support the new commit protocol."
This reverts commit 7901868a60624d501ac581451459e2e068ce6fb8.
Commit: 7824385376cc0a0058a04cac0874319583f39799
https://github.com/zopefoundation/ZODB/commit/7824385376cc0a0058a04cac0874319583f39799
Author: Jim Fulton <jim at zope.com>
Date: 2016-06-30 (Thu, 30 Jun 2016)
Changed paths:
M src/ZODB/interfaces.py
Log Message:
-----------
Define a new interface for storages that support the new commit protocol.
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.
Commit: 572a96521e626542c0328708d714f2254254dd75
https://github.com/zopefoundation/ZODB/commit/572a96521e626542c0328708d714f2254254dd75
Author: Julien Muchembled <jm at nexedi.com>
Date: 2016-07-01 (Fri, 01 Jul 2016)
Changed paths:
M src/ZODB/BaseStorage.py
M src/ZODB/Connection.py
M src/ZODB/blob.py
M src/ZODB/tests/MVCCMappingStorage.py
M src/ZODB/tests/blob_packing.txt
M src/ZODB/tests/testConnection.py
M src/ZODB/tests/testblob.py
Log Message:
-----------
Better support of the new API to notify of resolved conflicts (store/tpc_finish)
When switching all storages to the new API in the master branch,
I found a few issues, mainly with blobs.
1. Created/modified blobs are invalidated during the first phase
(in Connection._store_objects):
obj._p_invalidate()
And with the old API, _handle_serial then sets _p_serial
Ghost objects are not supposed to have a _p_serial and with the new API,
a few tests would fail because _p_serial are checked without activating the
blob first.
2. Another consequence of _handle_serial not updating _p_changed/_p_serial
immediately is that created objects are stored twice if __getstate__
modifies itself. This case is tested in testConnection by
doctest_lp485456_setattr_in_setstate_doesnt_cause_multiple_stores
Hence the change in Connection._commit:
- self._modified is already appended in Connection._store_objects
- (obj._p_serial == z64) instead of (oid in self._creating)
would not work for savepoints.
3. Setting _p_changed of a Blob with no uncommitted changes would cause an error
(lp440234_Setting__p_changed_of_a_Blob_w_no_uncomitted_changes_is_noop)
Fixed by the same change as in 2:
- oid was appended twice to self._modified but reverted one
(self._modified.pop() in _store_objects)
- the test passed because _p_changed was reset early by _handle_serial
Commit: a874d186e2c6d10c4e91fad12b5d5ad1c2325bf3
https://github.com/zopefoundation/ZODB/commit/a874d186e2c6d10c4e91fad12b5d5ad1c2325bf3
Author: Jim Fulton <jim at zope.com>
Date: 2016-07-01 (Fri, 01 Jul 2016)
Changed paths:
M src/ZODB/interfaces.py
Log Message:
-----------
Attempt to simplify and highight the differences between IStorage and IMultiCommitStorage
Commit: d74589ef6169ceb85fe66a0938fc7f6c1d1f4ef2
https://github.com/zopefoundation/ZODB/commit/d74589ef6169ceb85fe66a0938fc7f6c1d1f4ef2
Author: Jim Fulton <jim at zope.com>
Date: 2016-07-01 (Fri, 01 Jul 2016)
Changed paths:
M src/ZODB/interfaces.py
Log Message:
-----------
fixed typos
Commit: caf745f6e891b0a4e81f46db6f4c7ca15c5e53ea
https://github.com/zopefoundation/ZODB/commit/caf745f6e891b0a4e81f46db6f4c7ca15c5e53ea
Author: Jim Fulton <jim at jimfulton.info>
Date: 2016-07-01 (Fri, 01 Jul 2016)
Changed paths:
M src/ZODB/interfaces.py
Log Message:
-----------
Merge pull request #76 from zopefoundation/IMultiCommitStorage
Define a new interface for storages that support the new commit protocol.
Commit: 05be22e0bf73780d1ff432abee17e6b81961c3ae
https://github.com/zopefoundation/ZODB/commit/05be22e0bf73780d1ff432abee17e6b81961c3ae
Author: Jim Fulton <jim at zope.com>
Date: 2016-07-01 (Fri, 01 Jul 2016)
Changed paths:
M CHANGES.rst
M setup.py
Log Message:
-----------
4.4.1
Commit: 870f2d58b795c5a29d67612037c60f40fb786cea
https://github.com/zopefoundation/ZODB/commit/870f2d58b795c5a29d67612037c60f40fb786cea
Author: Jim Fulton <jim at zope.com>
Date: 2016-07-04 (Mon, 04 Jul 2016)
Changed paths:
M src/ZODB/DB.py
M src/ZODB/tests/TransactionalUndoStorage.py
M src/ZODB/tests/blob_transaction.txt
M src/ZODB/tests/testFileStorage.py
Log Message:
-----------
Test that IMultiCommitStorages are supported
Commit: eec498102191ccb6ff3b2c81014d31e4e233a0aa
https://github.com/zopefoundation/ZODB/commit/eec498102191ccb6ff3b2c81014d31e4e233a0aa
Author: Jim Fulton <jim at zope.com>
Date: 2016-07-04 (Mon, 04 Jul 2016)
Changed paths:
M src/ZODB/interfaces.py
Log Message:
-----------
Update interface for reality
ZEO handles undo asynchronously and ZODB has for some time allowed
undo oids to be returned via vote.
Commit: 0a2670a257b743a7149ecaec0da2e5bf9462ea75
https://github.com/zopefoundation/ZODB/commit/0a2670a257b743a7149ecaec0da2e5bf9462ea75
Author: Jim Fulton <jim at zope.com>
Date: 2016-07-04 (Mon, 04 Jul 2016)
Changed paths:
A src/ZODB/multicommitadapter.py
Log Message:
-----------
forgot to add a file again...
Commit: 788606598a9c92d6e61dc5da830858478661579e
https://github.com/zopefoundation/ZODB/commit/788606598a9c92d6e61dc5da830858478661579e
Author: Jim Fulton <jim at zope.com>
Date: 2016-07-04 (Mon, 04 Jul 2016)
Changed paths:
M src/ZODB/Connection.py
M src/ZODB/DB.py
M src/ZODB/multicommitadapter.py
M src/ZODB/tests/TransactionalUndoStorage.py
M src/ZODB/tests/blob_transaction.txt
Log Message:
-----------
Various small fixes suggested in review.
Commit: d09694fcb9639522adbd3a7c815830237c303a04
https://github.com/zopefoundation/ZODB/commit/d09694fcb9639522adbd3a7c815830237c303a04
Author: Julien Muchembled <jm at nexedi.com>
Date: 2016-07-04 (Mon, 04 Jul 2016)
Changed paths:
M src/ZODB/tests/blob_packing.txt
Log Message:
-----------
Simplify a test in blob_packing
Commit: 09423921ae33205e694347b936cf66fb3eeb5531
https://github.com/zopefoundation/ZODB/commit/09423921ae33205e694347b936cf66fb3eeb5531
Author: Jim Fulton <jim at zope.com>
Date: 2016-07-04 (Mon, 04 Jul 2016)
Changed paths:
M CHANGES.rst
M setup.py
M src/ZODB/interfaces.py
Log Message:
-----------
Merge remote-tracking branch 'origin/4' into handle-serial-4
Conflicts:
src/ZODB/interfaces.py
Commit: 88221040fbe67094f58ffea03c54093e1ae7cd78
https://github.com/zopefoundation/ZODB/commit/88221040fbe67094f58ffea03c54093e1ae7cd78
Author: Jim Fulton <jim at jimfulton.info>
Date: 2016-07-04 (Mon, 04 Jul 2016)
Changed paths:
M src/ZODB/BaseStorage.py
M src/ZODB/Connection.py
M src/ZODB/DB.py
M src/ZODB/blob.py
M src/ZODB/interfaces.py
A src/ZODB/multicommitadapter.py
M src/ZODB/tests/MVCCMappingStorage.py
M src/ZODB/tests/TransactionalUndoStorage.py
M src/ZODB/tests/blob_packing.txt
M src/ZODB/tests/blob_transaction.txt
M src/ZODB/tests/testConnection.py
M src/ZODB/tests/testFileStorage.py
M src/ZODB/tests/testblob.py
Log Message:
-----------
Merge pull request #77 from zopefoundation/handle-serial-4
Better support of the new API to notify of resolved conflicts (store/tpc_finish)
Commit: 00483fa0b6a8a87c6b8867d45994ce10ad333084
https://github.com/zopefoundation/ZODB/commit/00483fa0b6a8a87c6b8867d45994ce10ad333084
Author: Julien Muchembled <jm at nexedi.com>
Date: 2016-07-04 (Mon, 04 Jul 2016)
Changed paths:
M CHANGES.rst
M src/ZODB/BaseStorage.py
M src/ZODB/Connection.py
M src/ZODB/blob.py
M src/ZODB/interfaces.py
A src/ZODB/multicommitadapter.py
M src/ZODB/mvccadapter.py
M src/ZODB/tests/MVCCMappingStorage.py
M src/ZODB/tests/TransactionalUndoStorage.py
M src/ZODB/tests/blob_packing.txt
M src/ZODB/tests/blob_transaction.txt
M src/ZODB/tests/testConnection.py
M src/ZODB/tests/testFileStorage.py
M src/ZODB/tests/testblob.py
Log Message:
-----------
Merge 4.x branch
Commit: 50f6ba25fa510214886cb0bbd0c71bf14a88191f
https://github.com/zopefoundation/ZODB/commit/50f6ba25fa510214886cb0bbd0c71bf14a88191f
Author: Jim Fulton <jim at jimfulton.info>
Date: 2016-07-04 (Mon, 04 Jul 2016)
Changed paths:
M CHANGES.rst
M src/ZODB/BaseStorage.py
M src/ZODB/Connection.py
M src/ZODB/blob.py
M src/ZODB/interfaces.py
A src/ZODB/multicommitadapter.py
M src/ZODB/mvccadapter.py
M src/ZODB/tests/MVCCMappingStorage.py
M src/ZODB/tests/TransactionalUndoStorage.py
M src/ZODB/tests/blob_packing.txt
M src/ZODB/tests/blob_transaction.txt
M src/ZODB/tests/testConnection.py
M src/ZODB/tests/testFileStorage.py
M src/ZODB/tests/testblob.py
Log Message:
-----------
Merge pull request #81 from zopefoundation/jm-merge-4
Merge 4.x branch
Compare: https://github.com/zopefoundation/ZODB/compare/2e7fcb9e7fd2...50f6ba25fa51
More information about the checkins
mailing list