[Issue 10365] OOM during replication with a lot of updates