Would snapshot stop mutation and read

I am wondering that would snapshot stop mutation and read? I found that when dgraph is taking snapshot, the mutation is block. As the image, my program consume data from kafka and write into dgraph, the consume rate decrease to zero when snapshot is taking.

my program is the same as you. as I know, it would stop writing when snapshoting

Hi @JimWen and @Willem520, yes snapshot creation can block mutations in some cases. I have tried to address this issue in PR https://github.com/dgraph-io/dgraph/pull/4901, which will be merged soon.

Great Work!
But there is still a similar problem caused by log compaction, i have commit a issue here(Dgraph do not respond to any requests when it logs " LOG Compact" when I perform online mutation or liveload · Issue #4960 · dgraph-io/dgraph · GitHub)

Thanks for reporting the issue. We are aware of this. Compaction in Badger can block writes. Badger team is trying to optimize this as well.

Nice news, thank you.

For everyone having similar issues, a PR was just merged to optimize snapshot creation! https://github.com/dgraph-io/dgraph/pull/4901 :slight_smile: