Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit cd50eba

Browse files
committed
Merge commit '9991aaa49' into anoa/dinsic_release_1_21_x
* commit '9991aaa49': 1.21.2 Remove racey assertion in MultiWriterIDGenerator (#8530)
2 parents e80d7c3 + 9991aaa commit cd50eba

File tree

4 files changed

+17
-8
lines changed

4 files changed

+17
-8
lines changed

CHANGES.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
Synapse 1.21.2 (2020-10-15)
2+
===========================
3+
4+
Bugfixes
5+
--------
6+
7+
- Fix rare bug where sending an event would fail due to a racey assertion. ([\#8530](https://github.com/matrix-org/synapse/issues/8530))
8+
9+
110
Synapse 1.21.1 (2020-10-13)
211
===========================
312

debian/changelog

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
matrix-synapse-py3 (1.21.2) stable; urgency=medium
2+
3+
[ Synapse Packaging team ]
4+
* New synapse release 1.21.2.
5+
6+
-- Synapse Packaging team <[email protected]> Thu, 15 Oct 2020 09:23:27 -0400
7+
18
matrix-synapse-py3 (1.21.1) stable; urgency=medium
29

310
[ Synapse Packaging team ]

synapse/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
except ImportError:
4949
pass
5050

51-
__version__ = "1.21.1"
51+
__version__ = "1.21.2"
5252

5353
if bool(os.environ.get("SYNAPSE_TEST_PATCH_LOG_CONTEXTS", False)):
5454
# We import here so that we don't have to install a bunch of deps when

synapse/storage/util/id_generators.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -612,14 +612,7 @@ async def __aenter__(self) -> Union[int, List[int]]:
612612
db_autocommit=True,
613613
)
614614

615-
# Assert the fetched ID is actually greater than any ID we've already
616-
# seen. If not, then the sequence and table have got out of sync
617-
# somehow.
618615
with self.id_gen._lock:
619-
assert max(self.id_gen._current_positions.values(), default=0) < min(
620-
self.stream_ids
621-
)
622-
623616
self.id_gen._unfinished_ids.update(self.stream_ids)
624617

625618
if self.multiple_ids is None:

0 commit comments

Comments
 (0)