dragonflydb / dragonfly

A modern replacement for Redis and Memcached
https://www.dragonflydb.io/
Other
24.76k stars 892 forks source link

replicaof no one on returns after long time while running memtier on master #3020

Closed adiholden closed 2 months ago

adiholden commented 2 months ago

Describe the bug Running replicaof no one on replica in full sync state returns after more than 20 seconds

To Reproduce run master and replica ./dragonfly --alsologtostderr --dbfilename= --port=6379 ./dragonfly --alsologtostderr --dbfilename= --port=6380

run memtier on master memtier_benchmark -c 10 -t 8 --pipeline=30 --hide-histogram --test-time=3000 --distinct-client-seed -d 256 --ratio=1:0 and wait a little for master to fill with data

run command on replica replicaof localhost 6379 and after replicaof no one

Expected behavior replica of no one should return fast

dranikpg commented 2 months ago

we already had an issue for this around a year ago

safa-topal commented 2 months ago

Probably related: https://github.com/dragonflydb/dragonfly/issues/2907

BorysTheDev commented 2 months ago

Probably related: #2907

it's a different problem