During production environment use, the DGRAPH query is blocked and not responsive until it times out?

It depends on what you are doing. The write will be blocked anyway and there’s nothing to do other than just wait. You can increase some configs in your cluster.

Share details of your config and machine stats.

In general writes are blocked due to a predicate move or some other big background task.

BTW, if you don’t wanna be blocked often you can try the ludicrous mode.

BTW2, I don’t code JAVA. So I can’t help you analyze your code. I hope others can.