ZEO 6.2__tar.gz → 6.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {zeo-6.2 → zeo-6.3}/.pre-commit-config.yaml +14 -1
- {zeo-6.2 → zeo-6.3}/CHANGES.rst +14 -0
- zeo-6.3/COPYRIGHT.txt +1 -0
- {zeo-6.2 → zeo-6.3}/PKG-INFO +19 -3
- {zeo-6.2 → zeo-6.3}/docs/client-cache.rst +2 -2
- {zeo-6.2 → zeo-6.3}/docs/requirements.txt +1 -1
- {zeo-6.2 → zeo-6.3}/docs/server.rst +0 -2
- {zeo-6.2 → zeo-6.3}/pyproject.toml +10 -5
- {zeo-6.2 → zeo-6.3}/src/ZEO/asyncio/client.py +3 -3
- {zeo-6.2 → zeo-6.3}/src/ZEO/asyncio/futures.py +1 -2
- {zeo-6.2 → zeo-6.3}/src/ZEO/cache.py +3 -5
- {zeo-6.2 → zeo-6.3}/src/ZEO/scripts/cache_simul.py +3 -2
- {zeo-6.2 → zeo-6.3}/src/ZEO/scripts/cache_stats.py +2 -1
- {zeo-6.2 → zeo-6.3}/src/ZEO/tests/testZEO.py +13 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/tests/test_cache.py +65 -8
- {zeo-6.2 → zeo-6.3}/src/ZEO.egg-info/PKG-INFO +19 -3
- {zeo-6.2 → zeo-6.3}/tox.ini +4 -4
- zeo-6.2/COPYRIGHT.txt +0 -1
- {zeo-6.2 → zeo-6.3}/.readthedocs.yaml +0 -0
- {zeo-6.2 → zeo-6.3}/CONTRIBUTING.md +0 -0
- {zeo-6.2 → zeo-6.3}/COPYING +0 -0
- {zeo-6.2 → zeo-6.3}/LICENSE.txt +0 -0
- {zeo-6.2 → zeo-6.3}/MANIFEST.in +0 -0
- {zeo-6.2 → zeo-6.3}/README.rst +0 -0
- {zeo-6.2 → zeo-6.3}/buildout.cfg +0 -0
- {zeo-6.2 → zeo-6.3}/docs/blob-nfs.rst +0 -0
- {zeo-6.2 → zeo-6.3}/docs/changelog.rst +0 -0
- {zeo-6.2 → zeo-6.3}/docs/client-cache-tracing.rst +0 -0
- {zeo-6.2 → zeo-6.3}/docs/clients.rst +0 -0
- {zeo-6.2 → zeo-6.3}/docs/conf.py +0 -0
- {zeo-6.2 → zeo-6.3}/docs/index.rst +0 -0
- {zeo-6.2 → zeo-6.3}/docs/introduction.rst +0 -0
- {zeo-6.2 → zeo-6.3}/docs/nagios.rst +0 -0
- {zeo-6.2 → zeo-6.3}/docs/ordering.rst +0 -0
- {zeo-6.2 → zeo-6.3}/docs/protocol.rst +0 -0
- {zeo-6.2 → zeo-6.3}/docs/reference.rst +0 -0
- {zeo-6.2 → zeo-6.3}/log.ini +0 -0
- {zeo-6.2 → zeo-6.3}/perf.py +0 -0
- {zeo-6.2 → zeo-6.3}/setup.cfg +0 -0
- {zeo-6.2 → zeo-6.3}/setup.py +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/ClientStorage.py +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/Exceptions.py +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/StorageServer.py +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/TransactionBuffer.py +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/__init__.py +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/_compat.py +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/_forker.py +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/asyncio/README.rst +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/asyncio/__init__.py +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/asyncio/_futures.pyx +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/asyncio/_smp.pyx +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/asyncio/base.py +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/asyncio/compat.py +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/asyncio/marshal.py +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/asyncio/server.py +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/asyncio/smp.py +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/asyncio/testing.py +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/asyncio/tests.py +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/component.xml +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/interfaces.py +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/monitor.py +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/nagios.py +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/nagios.rst +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/runzeo.py +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/schema.xml +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/scripts/README.txt +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/scripts/__init__.py +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/scripts/parsezeolog.py +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/scripts/tests.py +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/scripts/timeout.py +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/scripts/zeopack.py +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/scripts/zeopack.test +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/scripts/zeoqueue.py +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/scripts/zeoreplay.py +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/scripts/zeoserverlog.py +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/scripts/zeoup.py +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/server.xml +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/shortrepr.py +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/tests/Cache.py +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/tests/CommitLockTests.py +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/tests/ConnectionTests.py +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/tests/InvalidationTests.py +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/tests/IterationTests.py +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/tests/TestThread.py +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/tests/ThreadTests.py +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/tests/__init__.py +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/tests/client-config.test +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/tests/client.pem +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/tests/client_key.pem +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/tests/component.xml +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/tests/drop_cache_rather_than_verify.txt +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/tests/dynamic_server_ports.test +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/tests/forker.py +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/tests/invalidation-age.txt +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/tests/new_addr.test +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/tests/protocols.test +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/tests/racetest.py +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/tests/server.pem +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/tests/server.pem.csr +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/tests/server_key.pem +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/tests/serverpw.pem +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/tests/serverpw_key.pem +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/tests/servertesting.py +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/tests/speed.py +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/tests/stress.py +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/tests/testConfig.py +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/tests/testConnection.py +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/tests/testConversionSupport.py +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/tests/testTransactionBuffer.py +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/tests/testZEO2.py +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/tests/testZEOOptions.py +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/tests/testZEOServer.py +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/tests/test_client_credentials.py +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/tests/test_client_side_conflict_resolution.py +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/tests/test_marshal.py +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/tests/test_sync.py +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/tests/testssl.py +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/tests/threaded.py +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/tests/utils.py +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/tests/zdoptions.test +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/tests/zeo-fan-out.test +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/tests/zeo_blob_cache.test +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/util.py +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/version.txt +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/zconfig.py +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/zeoctl.py +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO/zeoctl.xml +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO.egg-info/SOURCES.txt +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO.egg-info/dependency_links.txt +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO.egg-info/entry_points.txt +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO.egg-info/requires.txt +0 -0
- {zeo-6.2 → zeo-6.3}/src/ZEO.egg-info/top_level.txt +0 -0
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
# https://github.com/zopefoundation/meta/tree/master/src/zope/meta/pure-python
|
|
3
3
|
minimum_pre_commit_version: '3.6'
|
|
4
4
|
repos:
|
|
5
|
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
6
|
+
rev: v6.0.0
|
|
7
|
+
hooks:
|
|
8
|
+
- id: check-case-conflict
|
|
9
|
+
- id: check-merge-conflict
|
|
10
|
+
- id: check-toml
|
|
11
|
+
- id: check-yaml
|
|
12
|
+
- id: end-of-file-fixer
|
|
13
|
+
- id: trailing-whitespace
|
|
5
14
|
- repo: https://github.com/pycqa/isort
|
|
6
15
|
rev: "8.0.1"
|
|
7
16
|
hooks:
|
|
@@ -15,7 +24,7 @@ repos:
|
|
|
15
24
|
rev: v3.21.2
|
|
16
25
|
hooks:
|
|
17
26
|
- id: pyupgrade
|
|
18
|
-
args: [--
|
|
27
|
+
args: [--py311-plus]
|
|
19
28
|
- repo: https://github.com/isidentical/teyit
|
|
20
29
|
rev: 0.4.3
|
|
21
30
|
hooks:
|
|
@@ -27,3 +36,7 @@ repos:
|
|
|
27
36
|
- id: flake8
|
|
28
37
|
additional_dependencies:
|
|
29
38
|
- flake8-debugger == 4.1.2
|
|
39
|
+
- repo: https://github.com/sphinx-contrib/sphinx-lint
|
|
40
|
+
rev: v1.0.2
|
|
41
|
+
hooks:
|
|
42
|
+
- id: sphinx-lint
|
{zeo-6.2 → zeo-6.3}/CHANGES.rst
RENAMED
|
@@ -1,6 +1,20 @@
|
|
|
1
1
|
Changelog
|
|
2
2
|
=========
|
|
3
3
|
|
|
4
|
+
6.3 (2026-11-28)
|
|
5
|
+
----------------
|
|
6
|
+
|
|
7
|
+
- Switch to PyPI Trusted Publishing.
|
|
8
|
+
|
|
9
|
+
- Fix ``KeyError`` in ``ClientCache._makeroom`` after an invalidation with
|
|
10
|
+
the current tid
|
|
11
|
+
(`issue 254 <https://github.com/zopefoundation/ZEO/issues/254>`_).
|
|
12
|
+
|
|
13
|
+
- Add support for Python 3.15.
|
|
14
|
+
|
|
15
|
+
- Drop support for Python 3.10.
|
|
16
|
+
|
|
17
|
+
|
|
4
18
|
6.2 (2026-04-13)
|
|
5
19
|
----------------
|
|
6
20
|
|
zeo-6.3/COPYRIGHT.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Zope Foundation and Contributors
|
{zeo-6.2 → zeo-6.3}/PKG-INFO
RENAMED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ZEO
|
|
3
|
-
Version: 6.
|
|
3
|
+
Version: 6.3
|
|
4
|
+
Summary: Single-server client-server database server for ZODB
|
|
4
5
|
Author-email: Zope Foundation and contributors <zodb@googlegroups.com>
|
|
5
6
|
Maintainer-email: Plone Foundation and contributors <zope-dev@zope.dev>
|
|
6
7
|
License-Expression: ZPL-2.1
|
|
@@ -9,13 +10,14 @@ Project-URL: Source, https://github.com/zopefoundation/ZEO
|
|
|
9
10
|
Project-URL: Issues, https://github.com/zopefoundation/ZEO/issues
|
|
10
11
|
Project-URL: Changelog, https://raw.githubusercontent.com/zopefoundation/ZEO/master/CHANGES.rst
|
|
11
12
|
Keywords: database,zodb
|
|
13
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
12
14
|
Classifier: Intended Audience :: Developers
|
|
13
15
|
Classifier: Programming Language :: Python :: 3
|
|
14
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
15
16
|
Classifier: Programming Language :: Python :: 3.11
|
|
16
17
|
Classifier: Programming Language :: Python :: 3.12
|
|
17
18
|
Classifier: Programming Language :: Python :: 3.13
|
|
18
19
|
Classifier: Programming Language :: Python :: 3.14
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.15
|
|
19
21
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
20
22
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
21
23
|
Classifier: Topic :: Database
|
|
@@ -23,7 +25,7 @@ Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
|
23
25
|
Classifier: Operating System :: Microsoft :: Windows
|
|
24
26
|
Classifier: Operating System :: Unix
|
|
25
27
|
Classifier: Framework :: ZODB
|
|
26
|
-
Requires-Python: >=3.
|
|
28
|
+
Requires-Python: >=3.11
|
|
27
29
|
Description-Content-Type: text/x-rst
|
|
28
30
|
License-File: LICENSE.txt
|
|
29
31
|
License-File: COPYING
|
|
@@ -78,6 +80,20 @@ The documentation is available on `readthedocs <http://zeo.readthedocs.io/en/lat
|
|
|
78
80
|
Changelog
|
|
79
81
|
=========
|
|
80
82
|
|
|
83
|
+
6.3 (2026-11-28)
|
|
84
|
+
----------------
|
|
85
|
+
|
|
86
|
+
- Switch to PyPI Trusted Publishing.
|
|
87
|
+
|
|
88
|
+
- Fix ``KeyError`` in ``ClientCache._makeroom`` after an invalidation with
|
|
89
|
+
the current tid
|
|
90
|
+
(`issue 254 <https://github.com/zopefoundation/ZEO/issues/254>`_).
|
|
91
|
+
|
|
92
|
+
- Add support for Python 3.15.
|
|
93
|
+
|
|
94
|
+
- Drop support for Python 3.10.
|
|
95
|
+
|
|
96
|
+
|
|
81
97
|
6.2 (2026-04-13)
|
|
82
98
|
----------------
|
|
83
99
|
|
|
@@ -7,8 +7,8 @@ client cache allows reads to be done from local disk rather than by remote
|
|
|
7
7
|
access to the storage server.
|
|
8
8
|
|
|
9
9
|
The cache may be persistent or transient. If the cache is persistent, then
|
|
10
|
-
the cache file is retained for use after process restarts. A
|
|
11
|
-
persistent cache uses a temporary file.
|
|
10
|
+
the cache file is retained for use after process restarts. A
|
|
11
|
+
non-persistent cache uses a temporary file.
|
|
12
12
|
|
|
13
13
|
The client cache is managed in a single file, of the specified size.
|
|
14
14
|
|
|
@@ -230,5 +230,3 @@ should first rename the log file and then send the signal to the
|
|
|
230
230
|
server. The server will continue writing to the renamed log file
|
|
231
231
|
until it receives the signal. After it receives the signal, the
|
|
232
232
|
server will create a new file with the old name and write to it.
|
|
233
|
-
|
|
234
|
-
|
|
@@ -2,24 +2,25 @@
|
|
|
2
2
|
# https://github.com/zopefoundation/meta/tree/master/src/zope/meta/pure-python
|
|
3
3
|
[build-system]
|
|
4
4
|
requires = [
|
|
5
|
-
"setuptools >= 78.1.1,<
|
|
5
|
+
"setuptools >= 78.1.1,< 82",
|
|
6
6
|
"wheel",
|
|
7
7
|
]
|
|
8
8
|
build-backend = "setuptools.build_meta"
|
|
9
9
|
|
|
10
|
-
|
|
11
10
|
[project]
|
|
12
11
|
name = "ZEO"
|
|
13
|
-
version = "6.
|
|
12
|
+
version = "6.3"
|
|
13
|
+
description = "Single-server client-server database server for ZODB"
|
|
14
14
|
license = "ZPL-2.1"
|
|
15
15
|
classifiers = [
|
|
16
|
+
"Development Status :: 5 - Production/Stable",
|
|
16
17
|
"Intended Audience :: Developers",
|
|
17
18
|
"Programming Language :: Python :: 3",
|
|
18
|
-
"Programming Language :: Python :: 3.10",
|
|
19
19
|
"Programming Language :: Python :: 3.11",
|
|
20
20
|
"Programming Language :: Python :: 3.12",
|
|
21
21
|
"Programming Language :: Python :: 3.13",
|
|
22
22
|
"Programming Language :: Python :: 3.14",
|
|
23
|
+
"Programming Language :: Python :: 3.15",
|
|
23
24
|
"Programming Language :: Python :: Implementation :: CPython",
|
|
24
25
|
"Programming Language :: Python :: Implementation :: PyPy",
|
|
25
26
|
"Topic :: Database",
|
|
@@ -29,7 +30,7 @@ classifiers = [
|
|
|
29
30
|
"Framework :: ZODB",
|
|
30
31
|
]
|
|
31
32
|
dynamic = ["readme"]
|
|
32
|
-
requires-python = ">=3.
|
|
33
|
+
requires-python = ">=3.11"
|
|
33
34
|
authors = [
|
|
34
35
|
{name = "Zope Foundation and contributors",email = "zodb@googlegroups.com"},
|
|
35
36
|
]
|
|
@@ -104,3 +105,7 @@ directory = "parts/htmlcov"
|
|
|
104
105
|
[tool.setuptools.dynamic]
|
|
105
106
|
readme = {file = ["README.rst", "CHANGES.rst"]}
|
|
106
107
|
|
|
108
|
+
[tool.zest-releaser]
|
|
109
|
+
create-wheel = false
|
|
110
|
+
extra-message = ""
|
|
111
|
+
upload-pypi = false
|
|
@@ -701,7 +701,7 @@ class ClientIO:
|
|
|
701
701
|
|
|
702
702
|
try:
|
|
703
703
|
await await_with_timeout(self.connected, timeout, self.loop)
|
|
704
|
-
except
|
|
704
|
+
except TimeoutError:
|
|
705
705
|
raise ClientDisconnected("timed out waiting for connection")
|
|
706
706
|
except asyncio.CancelledError:
|
|
707
707
|
raise ClientDisconnected("connection cancelled")
|
|
@@ -727,7 +727,7 @@ class ClientIO:
|
|
|
727
727
|
closing = self.close()
|
|
728
728
|
try:
|
|
729
729
|
await await_with_timeout(closing, 10, self.loop)
|
|
730
|
-
except
|
|
730
|
+
except TimeoutError:
|
|
731
731
|
from pprint import pformat
|
|
732
732
|
info = {"client": pformat(vars(self))}
|
|
733
733
|
if self.protocol is not None:
|
|
@@ -1091,6 +1091,6 @@ async def await_with_timeout(f, timeout, loop):
|
|
|
1091
1091
|
return f.result()
|
|
1092
1092
|
else:
|
|
1093
1093
|
f.remove_done_callback(stop)
|
|
1094
|
-
raise
|
|
1094
|
+
raise TimeoutError
|
|
1095
1095
|
finally:
|
|
1096
1096
|
handle.cancel()
|
|
@@ -13,7 +13,6 @@ know the coroutine run by the task, it is safer to use
|
|
|
13
13
|
a standard ``asyncio.Task``.
|
|
14
14
|
"""
|
|
15
15
|
|
|
16
|
-
import asyncio
|
|
17
16
|
from asyncio import CancelledError
|
|
18
17
|
from asyncio import InvalidStateError
|
|
19
18
|
from asyncio import get_event_loop
|
|
@@ -192,7 +191,7 @@ class ConcurrentFuture(Future):
|
|
|
192
191
|
concurrent.futures.TimeoutError, which is raised for uniformity.
|
|
193
192
|
"""
|
|
194
193
|
if not self.completed.wait(timeout):
|
|
195
|
-
raise
|
|
194
|
+
raise TimeoutError()
|
|
196
195
|
return Future.result(self)
|
|
197
196
|
|
|
198
197
|
|
|
@@ -724,17 +724,15 @@ class ClientCache:
|
|
|
724
724
|
assert saved_oid == oid, (ofs, self.f.tell(), oid, saved_oid)
|
|
725
725
|
assert end_tid == z64, (ofs, self.f.tell(), oid)
|
|
726
726
|
del self.current[oid]
|
|
727
|
-
|
|
727
|
+
# Same tid: the oid was stored twice in one transaction, and a
|
|
728
|
+
# record cannot be current and invalid from the same tid.
|
|
729
|
+
if tid is None or tid == saved_tid:
|
|
728
730
|
self.f.seek(ofs)
|
|
729
731
|
self.f.write(b'f' + pack(">I", size))
|
|
730
732
|
# 0x1E = invalidate (hit, discarding current or non-current)
|
|
731
733
|
self._trace(0x1E, oid, tid)
|
|
732
734
|
self._len -= 1
|
|
733
735
|
else:
|
|
734
|
-
if tid == saved_tid:
|
|
735
|
-
logger.warning(
|
|
736
|
-
"Ignoring invalidation with same tid as current")
|
|
737
|
-
return
|
|
738
736
|
self.f.seek(ofs + 21)
|
|
739
737
|
self.f.write(tid)
|
|
740
738
|
self._set_noncurrent(oid, saved_tid, ofs)
|
|
@@ -412,8 +412,9 @@ class CircularCacheSimulation(Simulation):
|
|
|
412
412
|
self.invals += 1
|
|
413
413
|
self.total_invals += 1
|
|
414
414
|
del self.current[oid]
|
|
415
|
-
if tid == z64:
|
|
416
|
-
# Startup cache verification
|
|
415
|
+
if tid == z64 or tid == cur_tid:
|
|
416
|
+
# Startup cache verification, or the oid was stored twice in one
|
|
417
|
+
# transaction: forget this oid entirely, as the cache does.
|
|
417
418
|
self._remove(oid, cur_tid)
|
|
418
419
|
return
|
|
419
420
|
|
|
@@ -381,7 +381,8 @@ explain = {
|
|
|
381
381
|
0x10: "invalidate (miss)",
|
|
382
382
|
0x1A: "invalidate (hit, version)",
|
|
383
383
|
0x1C: "invalidate (hit, saving non-current)",
|
|
384
|
-
# 0x1E can occur during startup verification
|
|
384
|
+
# 0x1E can occur during startup verification, and when an object is
|
|
385
|
+
# stored twice in one transaction.
|
|
385
386
|
0x1E: "invalidate (hit, discarding current or non-current)",
|
|
386
387
|
|
|
387
388
|
0x20: "load (miss)",
|
|
@@ -210,6 +210,19 @@ class MiscZEOTests:
|
|
|
210
210
|
obj = MinPO("X" * (10 * 128 * 1024))
|
|
211
211
|
self._dostore(data=obj)
|
|
212
212
|
|
|
213
|
+
def checkStoreTwiceInOneTransaction(self):
|
|
214
|
+
"""The cache keeps the last data stored in a transaction (#254)."""
|
|
215
|
+
oid = self._storage.new_oid()
|
|
216
|
+
t = TransactionMetaData()
|
|
217
|
+
self._storage.tpc_begin(t)
|
|
218
|
+
self._storage.store(oid, z64, b'first', '', t)
|
|
219
|
+
self._storage.store(oid, z64, b'second', '', t)
|
|
220
|
+
self._storage.tpc_vote(t)
|
|
221
|
+
tid = self._storage.tpc_finish(t)
|
|
222
|
+
cache = self._storage._cache
|
|
223
|
+
self.assertEqual(len(cache), 1)
|
|
224
|
+
self.assertEqual(cache.load(oid), (b'second', tid))
|
|
225
|
+
|
|
213
226
|
def checkZEOInvalidation(self):
|
|
214
227
|
storage2 = self._new_storage_client()
|
|
215
228
|
try:
|
|
@@ -114,6 +114,30 @@ class CacheTests(ZODB.tests.util.TestCase):
|
|
|
114
114
|
self.assertEqual(self.cache.loadBefore(n1, n4),
|
|
115
115
|
(data1, n3, n4))
|
|
116
116
|
|
|
117
|
+
def testInvalidateSameTid(self):
|
|
118
|
+
"""Invalidating with the current tid drops the record (#254)."""
|
|
119
|
+
self.cache.store(n1, n3, None, b"first data for n1")
|
|
120
|
+
self.cache.invalidate(n1, n3)
|
|
121
|
+
self.assertEqual(self.cache.load(n1), None)
|
|
122
|
+
self.assertEqual(self.cache.loadBefore(n1, n5), None)
|
|
123
|
+
self.assertEqual(len(self.cache), 0)
|
|
124
|
+
# The next store with the same tid wins.
|
|
125
|
+
self.cache.store(n1, n3, None, b"second data for n1")
|
|
126
|
+
self.assertEqual(self.cache.load(n1), (b"second data for n1", n3))
|
|
127
|
+
|
|
128
|
+
def testInvalidateSameTidThenEvict(self):
|
|
129
|
+
"""Evicting after an invalidation with the current tid works (#254)."""
|
|
130
|
+
cache = ZEO.cache.ClientCache(None, 200000)
|
|
131
|
+
self.addCleanup(cache.close)
|
|
132
|
+
cache.store(n1, n3, None, b"x" * 1000)
|
|
133
|
+
cache.setLastTid(n3)
|
|
134
|
+
cache.invalidate(n1, n3)
|
|
135
|
+
# Fill the cache until the first record is evicted.
|
|
136
|
+
for i in range(2, 2000):
|
|
137
|
+
cache.store(p64(i), n4, None, b"y" * 1000)
|
|
138
|
+
self.assertGreater(cache.getStats()[2], 0) # evictions
|
|
139
|
+
self.assertEqual(cache.load(n1), None)
|
|
140
|
+
|
|
117
141
|
def testNonCurrent(self):
|
|
118
142
|
data1 = b"data for n1"
|
|
119
143
|
data2 = b"data for n2"
|
|
@@ -1043,22 +1067,55 @@ Now try to do simulation:
|
|
|
1043
1067
|
"""
|
|
1044
1068
|
|
|
1045
1069
|
|
|
1070
|
+
def cache_tools_handle_invalidation_with_current_tid():
|
|
1071
|
+
r"""
|
|
1072
|
+
The trace tools handle the 0x1E record written when an object is stored
|
|
1073
|
+
twice in one transaction.
|
|
1074
|
+
|
|
1075
|
+
>>> os.environ["ZEO_CACHE_TRACE"] = 'yes'
|
|
1076
|
+
>>> cache = ZEO.cache.ClientCache('cache', 1<<21)
|
|
1077
|
+
>>> cache.store(p64(1), p64(1), None, b'x' * 500)
|
|
1078
|
+
>>> cache.invalidate(p64(1), p64(1))
|
|
1079
|
+
>>> cache.store(p64(1), p64(1), None, b'x' * 600)
|
|
1080
|
+
>>> cache.close()
|
|
1081
|
+
>>> del os.environ["ZEO_CACHE_TRACE"]
|
|
1082
|
+
|
|
1083
|
+
>>> import ZEO.scripts.cache_simul, ZEO.scripts.cache_stats
|
|
1084
|
+
>>> ZEO.scripts.cache_simul.main('-s 1 cache.trace'.split())
|
|
1085
|
+
... # doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
|
|
1086
|
+
CircularCacheSimulation, cache size 1,048,576 bytes
|
|
1087
|
+
START TIME DUR. LOADS HITS INVALS WRITES HITRATE EVICTS INUSE
|
|
1088
|
+
... 0 0 1 2 n/a 0 0.1
|
|
1089
|
+
--------------------------------------------------------------------------
|
|
1090
|
+
... 0 0 1 2 n/a 0 0.1
|
|
1091
|
+
>>> ZEO.scripts.cache_stats.main('-q cache.trace'.split())
|
|
1092
|
+
... # doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
|
|
1093
|
+
loads hits inv(h) writes hitrate
|
|
1094
|
+
...
|
|
1095
|
+
Count Code Function (action)
|
|
1096
|
+
1 00 _setup_trace (initialization)
|
|
1097
|
+
1 1e invalidate (hit, discarding current or non-current)
|
|
1098
|
+
2 52 store (current, non-version)
|
|
1099
|
+
"""
|
|
1100
|
+
|
|
1101
|
+
|
|
1046
1102
|
def invalidations_with_current_tid_dont_wreck_cache():
|
|
1047
1103
|
"""
|
|
1104
|
+
An invalidation with the current tid drops the record, and the cache
|
|
1105
|
+
can still evict and reopen afterwards.
|
|
1106
|
+
|
|
1048
1107
|
>>> cache = ZEO.cache.ClientCache('cache', 1000)
|
|
1049
1108
|
>>> cache.store(p64(1), p64(1), None, b'data')
|
|
1050
|
-
>>> import logging, sys
|
|
1051
|
-
>>> handler = logging.StreamHandler(sys.stdout)
|
|
1052
|
-
>>> logging.getLogger().addHandler(handler)
|
|
1053
|
-
>>> old_level = logging.getLogger().getEffectiveLevel()
|
|
1054
|
-
>>> logging.getLogger().setLevel(logging.WARNING)
|
|
1055
1109
|
>>> cache.invalidate(p64(1), p64(1))
|
|
1056
|
-
|
|
1110
|
+
>>> cache.load(p64(1))
|
|
1111
|
+
>>> len(cache)
|
|
1112
|
+
0
|
|
1113
|
+
>>> for i in range(2, 40): # let the cache go around many times
|
|
1114
|
+
... cache.store(p64(i), p64(1), None, b'x' * 100)
|
|
1115
|
+
>>> cache.load(p64(1))
|
|
1057
1116
|
>>> cache.close()
|
|
1058
1117
|
>>> cache = ZEO.cache.ClientCache('cache', 1000)
|
|
1059
1118
|
>>> cache.close()
|
|
1060
|
-
>>> logging.getLogger().removeHandler(handler)
|
|
1061
|
-
>>> logging.getLogger().setLevel(old_level)
|
|
1062
1119
|
"""
|
|
1063
1120
|
|
|
1064
1121
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ZEO
|
|
3
|
-
Version: 6.
|
|
3
|
+
Version: 6.3
|
|
4
|
+
Summary: Single-server client-server database server for ZODB
|
|
4
5
|
Author-email: Zope Foundation and contributors <zodb@googlegroups.com>
|
|
5
6
|
Maintainer-email: Plone Foundation and contributors <zope-dev@zope.dev>
|
|
6
7
|
License-Expression: ZPL-2.1
|
|
@@ -9,13 +10,14 @@ Project-URL: Source, https://github.com/zopefoundation/ZEO
|
|
|
9
10
|
Project-URL: Issues, https://github.com/zopefoundation/ZEO/issues
|
|
10
11
|
Project-URL: Changelog, https://raw.githubusercontent.com/zopefoundation/ZEO/master/CHANGES.rst
|
|
11
12
|
Keywords: database,zodb
|
|
13
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
12
14
|
Classifier: Intended Audience :: Developers
|
|
13
15
|
Classifier: Programming Language :: Python :: 3
|
|
14
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
15
16
|
Classifier: Programming Language :: Python :: 3.11
|
|
16
17
|
Classifier: Programming Language :: Python :: 3.12
|
|
17
18
|
Classifier: Programming Language :: Python :: 3.13
|
|
18
19
|
Classifier: Programming Language :: Python :: 3.14
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.15
|
|
19
21
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
20
22
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
21
23
|
Classifier: Topic :: Database
|
|
@@ -23,7 +25,7 @@ Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
|
23
25
|
Classifier: Operating System :: Microsoft :: Windows
|
|
24
26
|
Classifier: Operating System :: Unix
|
|
25
27
|
Classifier: Framework :: ZODB
|
|
26
|
-
Requires-Python: >=3.
|
|
28
|
+
Requires-Python: >=3.11
|
|
27
29
|
Description-Content-Type: text/x-rst
|
|
28
30
|
License-File: LICENSE.txt
|
|
29
31
|
License-File: COPYING
|
|
@@ -78,6 +80,20 @@ The documentation is available on `readthedocs <http://zeo.readthedocs.io/en/lat
|
|
|
78
80
|
Changelog
|
|
79
81
|
=========
|
|
80
82
|
|
|
83
|
+
6.3 (2026-11-28)
|
|
84
|
+
----------------
|
|
85
|
+
|
|
86
|
+
- Switch to PyPI Trusted Publishing.
|
|
87
|
+
|
|
88
|
+
- Fix ``KeyError`` in ``ClientCache._makeroom`` after an invalidation with
|
|
89
|
+
the current tid
|
|
90
|
+
(`issue 254 <https://github.com/zopefoundation/ZEO/issues/254>`_).
|
|
91
|
+
|
|
92
|
+
- Add support for Python 3.15.
|
|
93
|
+
|
|
94
|
+
- Drop support for Python 3.10.
|
|
95
|
+
|
|
96
|
+
|
|
81
97
|
6.2 (2026-04-13)
|
|
82
98
|
----------------
|
|
83
99
|
|
{zeo-6.2 → zeo-6.3}/tox.ini
RENAMED
|
@@ -5,11 +5,11 @@ minversion = 3.18
|
|
|
5
5
|
envlist =
|
|
6
6
|
release-check
|
|
7
7
|
lint
|
|
8
|
-
py310
|
|
9
8
|
py311
|
|
10
9
|
py312
|
|
11
10
|
py313
|
|
12
11
|
py314
|
|
12
|
+
py315
|
|
13
13
|
pypy3
|
|
14
14
|
docs
|
|
15
15
|
coverage
|
|
@@ -19,7 +19,7 @@ usedevelop = true
|
|
|
19
19
|
package = wheel
|
|
20
20
|
wheel_build_env = .pkg
|
|
21
21
|
deps =
|
|
22
|
-
setuptools >= 78.1.1,<
|
|
22
|
+
setuptools >= 78.1.1,< 82
|
|
23
23
|
!zodbmaster: ZODB >= 4.2.0b1
|
|
24
24
|
zodbmaster: git+https://github.com/zopefoundation/ZODB.git@master\#egg=ZODB
|
|
25
25
|
uvloop: uvloop
|
|
@@ -46,12 +46,12 @@ description = ensure that the distribution is ready to release
|
|
|
46
46
|
basepython = python3
|
|
47
47
|
skip_install = true
|
|
48
48
|
deps =
|
|
49
|
-
setuptools >= 78.1.1,<
|
|
49
|
+
setuptools >= 78.1.1,< 82
|
|
50
50
|
wheel
|
|
51
51
|
twine
|
|
52
52
|
build
|
|
53
53
|
check-manifest
|
|
54
|
-
check-python-versions >= 0.
|
|
54
|
+
check-python-versions >= 0.24.2
|
|
55
55
|
wheel
|
|
56
56
|
commands_pre =
|
|
57
57
|
commands =
|
zeo-6.2/COPYRIGHT.txt
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
Zope Foundation and Contributors
|
|
File without changes
|
|
File without changes
|
{zeo-6.2 → zeo-6.3}/COPYING
RENAMED
|
File without changes
|
{zeo-6.2 → zeo-6.3}/LICENSE.txt
RENAMED
|
File without changes
|
{zeo-6.2 → zeo-6.3}/MANIFEST.in
RENAMED
|
File without changes
|
{zeo-6.2 → zeo-6.3}/README.rst
RENAMED
|
File without changes
|
{zeo-6.2 → zeo-6.3}/buildout.cfg
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{zeo-6.2 → zeo-6.3}/docs/conf.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{zeo-6.2 → zeo-6.3}/log.ini
RENAMED
|
File without changes
|
{zeo-6.2 → zeo-6.3}/perf.py
RENAMED
|
File without changes
|
{zeo-6.2 → zeo-6.3}/setup.cfg
RENAMED
|
File without changes
|
{zeo-6.2 → zeo-6.3}/setup.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|