Skip to content

Conversation

@tezc
Copy link
Collaborator

@tezc tezc commented Mar 27, 2025

Before #13732, replicas were brought online immediately after master wrote the last bytes of the RDB file to the socket. This behavior remains unchanged if rdbchannel replication is not used. However, with rdbchannel replication, the replica is brought online after receiving the first ack which is sent by replica after rdb is loaded.

To align the behavior, reverting this change to put replica online once bgsave is done.

Additonal changes:

  • INFO field mem_total_replication_buffers will also contain server.repl_full_sync_buffer.mem_used which shows accumulated replication stream during rdbchannel replication on replica side.
  • Deleted debug level logging from some replication tests. These tests generate thousands of keys and it may cause per key logging on some cases.

@tezc tezc requested review from ShooterIT and oranagra March 27, 2025 09:26
@oranagra oranagra added the release-notes indication that this issue needs to be mentioned in the release notes label Mar 30, 2025
@tezc tezc merged commit 366c6af into redis:unstable Mar 31, 2025
18 checks passed
@tezc tezc deleted the repl-minor branch March 31, 2025 10:48
@sundb sundb added this to Redis 8.0 Aug 15, 2025
@sundb sundb moved this from Todo to Done in Redis 8.0 Aug 15, 2025
funny-dog pushed a commit to funny-dog/redis that referenced this pull request Sep 17, 2025
Before redis#13732, replicas were brought
online immediately after master wrote the last bytes of the RDB file to
the socket. This behavior remains unchanged if rdbchannel replication is
not used. However, with rdbchannel replication, the replica is brought
online after receiving the first ack which is sent by replica after rdb
is loaded.

To align the behavior, reverting this change to put replica online once
bgsave is done.

Additonal changes:
- INFO field `mem_total_replication_buffers` will also contain
`server.repl_full_sync_buffer.mem_used` which shows accumulated
replication stream during rdbchannel replication on replica side.
- Deleted debug level logging from some replication tests. These tests
generate thousands of keys and it may cause per key logging on some
cases.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-notes indication that this issue needs to be mentioned in the release notes

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants