dragonflydb / dragonfly

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

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

Closed adiholden closed 5 months ago

adiholden commented 6 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 6 months ago

we already had an issue for this around a year ago

safa-topal commented 6 months ago

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

BorysTheDev commented 5 months ago

Probably related: #2907

it's a different problem