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
276ae5c6
Unverified
Commit
276ae5c6
authored
5 years ago
by
Richard van der Hoff
Committed by
GitHub
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
add some logging to the rooms stats updates, to try to track down a flaky test (#6167)
parent
97e27227
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
changelog.d/6167.misc
+1
-0
1 addition, 0 deletions
changelog.d/6167.misc
synapse/handlers/stats.py
+1
-0
1 addition, 0 deletions
synapse/handlers/stats.py
synapse/storage/stats.py
+3
-0
3 additions, 0 deletions
synapse/storage/stats.py
with
5 additions
and
0 deletions
changelog.d/6167.misc
0 → 100644
+
1
−
0
View file @
276ae5c6
Add some logging to the rooms stats updates, to try to track down a flaky test.
This diff is collapsed.
Click to expand it.
synapse/handlers/stats.py
+
1
−
0
View file @
276ae5c6
...
@@ -293,6 +293,7 @@ class StatsHandler(StateDeltasHandler):
...
@@ -293,6 +293,7 @@ class StatsHandler(StateDeltasHandler):
room_state
[
"
guest_access
"
]
=
event_content
.
get
(
"
guest_access
"
)
room_state
[
"
guest_access
"
]
=
event_content
.
get
(
"
guest_access
"
)
for
room_id
,
state
in
room_to_state_updates
.
items
():
for
room_id
,
state
in
room_to_state_updates
.
items
():
logger
.
info
(
"
Updating room_stats_state for %s: %s
"
,
room_id
,
state
)
yield
self
.
store
.
update_room_state
(
room_id
,
state
)
yield
self
.
store
.
update_room_state
(
room_id
,
state
)
return
room_to_stats_deltas
,
user_to_stats_deltas
return
room_to_stats_deltas
,
user_to_stats_deltas
This diff is collapsed.
Click to expand it.
synapse/storage/stats.py
+
3
−
0
View file @
276ae5c6
...
@@ -332,6 +332,9 @@ class StatsStore(StateDeltasStore):
...
@@ -332,6 +332,9 @@ class StatsStore(StateDeltasStore):
def
_bulk_update_stats_delta_txn
(
txn
):
def
_bulk_update_stats_delta_txn
(
txn
):
for
stats_type
,
stats_updates
in
updates
.
items
():
for
stats_type
,
stats_updates
in
updates
.
items
():
for
stats_id
,
fields
in
stats_updates
.
items
():
for
stats_id
,
fields
in
stats_updates
.
items
():
logger
.
info
(
"
Updating %s stats for %s: %s
"
,
stats_type
,
stats_id
,
fields
)
self
.
_update_stats_delta_txn
(
self
.
_update_stats_delta_txn
(
txn
,
txn
,
ts
=
ts
,
ts
=
ts
,
...
...
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