Skip to content

Commit

Permalink
improve log message when client cache is out of sync with server
Browse files Browse the repository at this point in the history
This fixes #142
  • Loading branch information
jugmac00 committed Apr 23, 2021
1 parent e277ba0 commit 37acb1a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ Changelog
- Fix data corruption due to race between load and external invalidations.
See `issue 155 <https://github.com/zopefoundation/ZEO/issues/155>`_.

- Improve logging message when client cache is out of sync with server.
See `issue 142 <https://github.com/zopefoundation/ZEO/issues/142>`_.

5.2.2 (2020-08-11)
------------------

Expand Down
4 changes: 3 additions & 1 deletion src/ZEO/asyncio/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,9 @@ def verify(self, server_tid):
elif cache_tid > server_tid:
self.verify_result = "Cache newer than server"
logger.critical(
'Client has seen newer transactions than server!')
'Client cache is out of sync with the server. '
'Verify that this is expected and then remove the '
'cache file at %s before restarted the server.' % self.cache)
raise AssertionError("Server behind client, %r < %r, %s",
server_tid, cache_tid, protocol)
elif cache_tid == server_tid:
Expand Down

0 comments on commit 37acb1a

Please sign in to comment.