Skip to content

Commit f0b9f80

Browse files
committed
"Timeout receiving bulk data" error message modified.
The new message now contains an hint about modifying the repl-timeout configuration directive if the problem persists. This should normally not be needed, because while the master generates the RDB file it makes sure to send newlines to the replication channel to prevent timeouts. However there are times when masters running on very slow systems can completely stop for seconds during the RDB saving process. In such a case enlarging the timeout value can fix the problem. See issue redis#695 for an example of this problem in an EC2 deployment.
1 parent 9a914a6 commit f0b9f80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/replication.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,7 @@ void replicationCron(void) {
721721
if (server.masterhost && server.repl_state == REDIS_REPL_TRANSFER &&
722722
(time(NULL)-server.repl_transfer_lastio) > server.repl_timeout)
723723
{
724-
redisLog(REDIS_WARNING,"Timeout receiving bulk data from MASTER...");
724+
redisLog(REDIS_WARNING,"Timeout receiving bulk data from MASTER... If the problem persists try to set the 'repl-timeout' parameter in redis.conf to a larger value.");
725725
replicationAbortSyncTransfer();
726726
}
727727

0 commit comments

Comments
 (0)