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

Failed to handle stream account_data: TypeError: '<' not supported between instances of 'str' and 'NoneType' #7617

@richvdh

Description

@richvdh

possibly this happens if we have global account data and per-room account data with the same stream_id?

TypeError: '<' not supported between instances of 'str' and 'NoneType'
  File "synapse/metrics/background_process_metrics.py", line 213, in run
    return (yield result)
  File "twisted/internet/defer.py", line 1418, in _inlineCallbacks
    result = g.send(result)
  File "synapse/replication/tcp/resource.py", line 146, in _run_notifier_loop
    updates, current_token, limited = await stream.get_updates()
  File "synapse/replication/tcp/streams/_base.py", line 161, in get_updates
    self.local_instance_name, self.last_token, current_token
  File "synapse/replication/tcp/streams/_base.py", line 186, in get_updates_since
    instance_name, from_token, upto_token, _STREAM_UPDATE_TARGET_ROW_COUNT,
  File "synapse/replication/tcp/streams/_base.py", line 604, in _update_function
    updates = list(heapq.merge(room_rows, global_rows))
  File "heapq.py", line 353, in merge
    _heapify(h)

Metadata

Metadata

Assignees

Labels

A-WorkersProblems related to running Synapse in Worker Mode (or replication)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions