Limit event fetches to prevent stack size from growing too large

This commit is contained in:
Devon Hudson 2024-11-07 15:10:20 -07:00
parent c7a1d0aa1a
commit 81186c02a6
No known key found for this signature in database
GPG key ID: CD06B18E77F6A628

View file

@ -452,7 +452,9 @@ class DatabaseOutageTestCase(unittest.HomeserverTestCase):
with self._outage(): with self._outage():
# Kick off a bunch of event fetches but do not pump the reactor # Kick off a bunch of event fetches but do not pump the reactor
event_deferreds = [] event_deferreds = []
for event_id in self.event_ids: # Limit the number of event_ids otherwise the total stack size grows too
# large for our custom twisted patch.
for event_id in self.event_ids[0:17]:
event_deferreds.append(ensureDeferred(self.store.get_event(event_id))) event_deferreds.append(ensureDeferred(self.store.get_event(event_id)))
# We should have maxed out on event fetcher threads # We should have maxed out on event fetcher threads