Skip to content

Conversation

@sundb
Copy link
Collaborator

@sundb sundb commented Jun 24, 2024

In certain situations, we might generate a large number of propagates (e.g., multi/exec, Lua script, or a single command generating tons of propagations) within an event loop.
During the process of propagating to a replica, if the replica is disconnected(marked as CLIENT_CLOSE_ASAP) due to exceeding the output buffer limit, we should remove its reference to the global replication buffer to avoid the global replication buffer being unable to be properly trimmed due to being referenced.

@sundb sundb requested review from MeirShpilraien and oranagra June 24, 2024 09:53
YaacovHazan
YaacovHazan previously approved these changes Jun 24, 2024
oranagra
oranagra previously approved these changes Jun 25, 2024
Copy link
Member

@oranagra oranagra left a comment

Choose a reason for hiding this comment

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

redis fixes LGTM

…rove comments

Co-authored-by: oranagra <oran@redislabs.com>
@sundb sundb dismissed stale reviews from oranagra and YaacovHazan via 48fde7e June 25, 2024 15:17
@sundb sundb merged commit 52e12d8 into redis:unstable Jun 26, 2024
@sundb sundb deleted the dont_feed_close_asap_replica branch June 26, 2024 00:26
YaacovHazan pushed a commit that referenced this pull request Oct 30, 2024
…IENT_CLOSE_ASAP (#13363)

In certain situations, we might generate a large number of propagates
(e.g., multi/exec, Lua script, or a single command generating tons of
propagations) within an event loop.
During the process of propagating to a replica, if the replica is
disconnected(marked as CLIENT_CLOSE_ASAP) due to exceeding the output
buffer limit, we should remove its reference to the global replication
buffer to avoid the global replication buffer being unable to be
properly trimmed due to being referenced.

---------

Co-authored-by: oranagra <oran@redislabs.com>
YaacovHazan pushed a commit that referenced this pull request Jan 6, 2025
…IENT_CLOSE_ASAP (#13363)

In certain situations, we might generate a large number of propagates
(e.g., multi/exec, Lua script, or a single command generating tons of
propagations) within an event loop.
During the process of propagating to a replica, if the replica is
disconnected(marked as CLIENT_CLOSE_ASAP) due to exceeding the output
buffer limit, we should remove its reference to the global replication
buffer to avoid the global replication buffer being unable to be
properly trimmed due to being referenced.

---------

Co-authored-by: oranagra <oran@redislabs.com>
@YaacovHazan YaacovHazan moved this from In Progress to Done in Redis 7.2 Backport Apr 21, 2025
funny-dog pushed a commit to funny-dog/redis that referenced this pull request Sep 17, 2025
…IENT_CLOSE_ASAP (redis#13363)

In certain situations, we might generate a large number of propagates
(e.g., multi/exec, Lua script, or a single command generating tons of
propagations) within an event loop.
During the process of propagating to a replica, if the replica is
disconnected(marked as CLIENT_CLOSE_ASAP) due to exceeding the output
buffer limit, we should remove its reference to the global replication
buffer to avoid the global replication buffer being unable to be
properly trimmed due to being referenced.

---------

Co-authored-by: oranagra <oran@redislabs.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants