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

Also discard 'caches' and 'backfill' stream POSITIONS#16655

Merged
erikjohnston merged 3 commits into
developfrom
erikj/discard_cache_stream
Nov 17, 2023
Merged

Also discard 'caches' and 'backfill' stream POSITIONS#16655
erikjohnston merged 3 commits into
developfrom
erikj/discard_cache_stream

Conversation

@erikjohnston
Copy link
Copy Markdown
Member

Follow on from #16640

@erikjohnston erikjohnston marked this pull request as ready for review November 17, 2023 10:09
@erikjohnston erikjohnston requested a review from a team as a code owner November 17, 2023 10:09
Comment thread synapse/replication/tcp/streams/_base.py Outdated
Comment thread changelog.d/16655.misc
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Do we no longer need #16557 (is this a more general solution)?

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.

Not really, that PR reduces the amount sent, this is reducing the processing of what we receive (but its still non-zero)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I thought #16561 reduced the amount sent? I guess #16557 does so too though.

Comment thread synapse/replication/tcp/streams/_base.py Outdated
@erikjohnston erikjohnston requested a review from clokep November 17, 2023 13:14
Copy link
Copy Markdown
Member

@clokep clokep left a comment

Choose a reason for hiding this comment

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

It looks like this the ones that we don't apply this to are the PresenceFederationStream and TypingStream (the two direct sub-classes of Stream without the additional logic).

@clokep clokep changed the title Also discard 'caches' stream POSITIONS Also discard 'caches' and 'backfill' stream POSITIONS Nov 17, 2023
@erikjohnston erikjohnston merged commit 6fec2d0 into develop Nov 17, 2023
@erikjohnston erikjohnston deleted the erikj/discard_cache_stream branch November 17, 2023 14:14
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.

2 participants