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

Fix "'int' object is not iterable" error in set_device_id_for_pushers background update#16594

Merged
clokep merged 2 commits intorelease-v1.96from
clokep/fix-tuples
Nov 2, 2023
Merged

Fix "'int' object is not iterable" error in set_device_id_for_pushers background update#16594
clokep merged 2 commits intorelease-v1.96from
clokep/fix-tuples

Conversation

@clokep
Copy link
Copy Markdown
Member

@clokep clokep commented Nov 2, 2023

Fixes #16591

table="pushers",
key_names=("id",),
key_values=[row[0] for row in rows],
key_values=[(row[0],) for row in rows],
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops, is this from the cursor_to_dict changes?

I guess this means we don't have any test coverage for this background update? :(

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From #16431, yes. Probably not... we should probably fail unit tests if any errors happen in the background, but there's no guarantee this actually runs with any data?

@clokep clokep force-pushed the clokep/fix-tuples branch from 25e236b to 43a023d Compare November 2, 2023 12:52
@clokep clokep changed the base branch from develop to release-v1.96 November 2, 2023 12:53
@clokep
Copy link
Copy Markdown
Member Author

clokep commented Nov 2, 2023

Going to target the 1.96 branch with this since the background update won't be more broken if this doesn't work properly.

@clokep clokep enabled auto-merge (squash) November 2, 2023 13:02
@clokep clokep merged commit bf69b57 into release-v1.96 Nov 2, 2023
@clokep clokep deleted the clokep/fix-tuples branch November 2, 2023 14:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Upgrade from 1.76.0 to 1.95.1 results in synapse.storage.background_updates: [background_updates-0] Error doing update: 'int' object is not iterable

2 participants