Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Federated backfill broken for medium/large sized rooms since v0.10.8 #2923

Closed
z411 opened this issue Dec 25, 2022 · 3 comments · Fixed by #2926
Closed

Federated backfill broken for medium/large sized rooms since v0.10.8 #2923

z411 opened this issue Dec 25, 2022 · 3 comments · Fixed by #2926
Labels
C-Federation S-Major Major functionality / product severely impaired, no satisfactory workaround. T-Defect Bugs, crashes, hangs, security vulnerabilities, or other reported issues.

Comments

@z411
Copy link

z411 commented Dec 25, 2022

Background information

  • Dendrite version or git SHA: v0.10.8
  • Monolith or Polylith?: Monolith
  • SQLite3 or Postgres?: Postgres
  • Running in Docker?: No
  • go version: 1.19.3
  • Client used (if applicable): Element 1.11.17

Description

  • What is the problem: Newly joined remote rooms don't backfill the history, they just show "You can't see earlier messages". It seems to work for smaller rooms (less than 100 events) but I'm not sure if that's the cause.
  • Who is affected: Dendrite clients joining remote Synapse rooms
  • How is this bug manifesting: The room fails to backfill after first join, can't see history. Logs don't display erorrs or wanings, just "backfilled 0 events".
  • When did this first appear: Since v0.10.8, main as of today affected as well

Steps to reproduce

  • Try to join a remote room hosted a Synapse homeserver (preferably with a longer than 100 message history)
  • After join, backfilling won't work. It'll just display "You can't see earlier messages" instead of showing the room history.

When Dendrite attempts the backfill request, the remote Synapse server appears to log the backfill events in its log, but the Dendrite server just shows the following in the log:

level=info msg="backfilled 0 events"

In a smaller room, though, it works fine:

level=info msg="backfilled 77 events"

In v0.10.7 and v0.10.6 (versions I tested) everything works as expected, with the backfill appearing in the client and the Dendrite log showing the following, even with very large and old rooms:

level=info msg="backfilled 100 events"

In all said rooms there are only local users of said homeservers.

I can't see any warnings or errors related to this so if there are other ways to debug the issue I'd be glad to provide more information.

Notes

I say "federated" because I only tried joining remote rooms, but I don't know if this also happens with local rooms.

@bones-was-here
Copy link

I can reproduce this.

@dead10ck
Copy link

This is also happening for me.

@S7evinK S7evinK added C-Federation T-Defect Bugs, crashes, hangs, security vulnerabilities, or other reported issues. S-Major Major functionality / product severely impaired, no satisfactory workaround. labels Jan 1, 2023
S7evinK added a commit that referenced this issue Jan 5, 2023
@dead10ck
Copy link

dead10ck commented Jan 5, 2023

I can confirm that this fix worked on my own Dendrite instance. Thanks so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-Federation S-Major Major functionality / product severely impaired, no satisfactory workaround. T-Defect Bugs, crashes, hangs, security vulnerabilities, or other reported issues.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants