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(https://github.com/dgraph-io/dgraph/issues/4960)

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.