Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
synapse
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maunium
synapse
Commits
8b6ff1db
Commit
8b6ff1db
authored
7 months ago
by
Erik Johnston
Browse files
Options
Downloads
Patches
Plain Diff
Revert "Also handle invalid event errors"
This reverts commit
b4d0356e
.
parent
b4d0356e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
synapse/storage/databases/main/events_bg_updates.py
+3
-6
3 additions, 6 deletions
synapse/storage/databases/main/events_bg_updates.py
with
3 additions
and
6 deletions
synapse/storage/databases/main/events_bg_updates.py
+
3
−
6
View file @
8b6ff1db
...
@@ -41,10 +41,7 @@ from synapse.storage.databases.main.events import (
...
@@ -41,10 +41,7 @@ from synapse.storage.databases.main.events import (
SlidingSyncMembershipSnapshotSharedInsertValues
,
SlidingSyncMembershipSnapshotSharedInsertValues
,
SlidingSyncStateInsertValues
,
SlidingSyncStateInsertValues
,
)
)
from
synapse.storage.databases.main.events_worker
import
(
from
synapse.storage.databases.main.events_worker
import
DatabaseCorruptionError
DatabaseCorruptionError
,
InvalidEventError
,
)
from
synapse.storage.databases.main.state_deltas
import
StateDeltasStore
from
synapse.storage.databases.main.state_deltas
import
StateDeltasStore
from
synapse.storage.databases.main.stream
import
StreamWorkerStore
from
synapse.storage.databases.main.stream
import
StreamWorkerStore
from
synapse.storage.types
import
Cursor
from
synapse.storage.types
import
Cursor
...
@@ -2093,7 +2090,7 @@ class EventsBackgroundUpdatesStore(StreamWorkerStore, StateDeltasStore, SQLBaseS
...
@@ -2093,7 +2090,7 @@ class EventsBackgroundUpdatesStore(StreamWorkerStore, StateDeltasStore, SQLBaseS
fetched_events
=
await
self
.
get_events
(
fetched_events
=
await
self
.
get_events
(
current_state_ids_map
.
values
()
current_state_ids_map
.
values
()
)
)
except
(
DatabaseCorruptionError
,
InvalidEventError
)
as
e
:
except
DatabaseCorruptionError
as
e
:
logger
.
warning
(
logger
.
warning
(
"
Failed to fetch state for room
'
%s
'
due to corrupted events. Ignoring. Error: %s
"
,
"
Failed to fetch state for room
'
%s
'
due to corrupted events. Ignoring. Error: %s
"
,
room_id
,
room_id
,
...
@@ -2200,7 +2197,7 @@ class EventsBackgroundUpdatesStore(StreamWorkerStore, StateDeltasStore, SQLBaseS
...
@@ -2200,7 +2197,7 @@ class EventsBackgroundUpdatesStore(StreamWorkerStore, StateDeltasStore, SQLBaseS
try
:
try
:
fetched_events
=
await
self
.
get_events
(
state_ids_map
.
values
())
fetched_events
=
await
self
.
get_events
(
state_ids_map
.
values
())
except
(
DatabaseCorruptionError
,
InvalidEventError
)
as
e
:
except
DatabaseCorruptionError
as
e
:
logger
.
warning
(
logger
.
warning
(
"
Failed to fetch state for room
'
%s
'
due to corrupted events. Ignoring. Error: %s
"
,
"
Failed to fetch state for room
'
%s
'
due to corrupted events. Ignoring. Error: %s
"
,
room_id
,
room_id
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment