Skip to content

Commit

Permalink
T208684: Also allow retries for SerializationFailure exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
Viktor Dick authored and viktordick committed Jan 29, 2021
1 parent 24f0357 commit c2deab9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
Changelog
=========

2.4.7.dev1+perfact.6
--------------------

Catch another class of serialization errors that have been observed on specific
systems.


2.4.7.dev1+perfact.5
--------------------

Expand Down
2 changes: 1 addition & 1 deletion Products/ZPsycopgDA/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# their work without bothering about the module dependencies.

__doc__ = "ZPsycopg Database Adapter Registration."
__version__ = '2.4.7.dev1+perfact.5'
__version__ = '2.4.7.dev1+perfact.6'

# Python2 backward compatibility
try:
Expand Down
4 changes: 2 additions & 2 deletions Products/ZPsycopgDA/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,8 +357,8 @@ def is_serialization_error(error):
'''
(name, value) = DB.split_error(error)
return (
name == 'TransactionRollbackError' and
'could not serialize' in value
name in ('TransactionRollbackError', 'SerializationFailure')
and 'could not serialize' in value
)


Expand Down

0 comments on commit c2deab9

Please sign in to comment.