Empty reply from server for exports and backups

What version of Dgraph are you using?


Have you tried reproducing the issue with the latest release?


What is the hardware spec (RAM, OS)?

40 GB Ubuntu

Steps to reproduce the issue (command/config used to run Dgraph).

Have a lot of data in Dgraph and then request a export or a backup.

When running via curl, the request exits with the message Empty reply from server. According to the Alpha logs, the export/backup is still being created.

Expected behaviour and actual result.

I expect the request stay alive while the export/backup is being taken. It shouldn’t exit while the export/backup is being created. I’d expect to see this response when, say, an export completes:

{"code": "Success", "message": "Export completed."}

When the request connection exits early, there’s no way for the user to know when the request has been completed other than monitoring the Alpha logs.

I am assuming it is a regression from 20.03.3? Did we miss it during our release testing or is it only happening for instances with

cc @Neeraj @Rahul
why did you guys not run into this in your testing?

Hey @dmai, how big is the data? We tested with 1million dataset and it worked fine.

1 Like

Yes, the export is created before we get the “Success” response, when we tested for the 1 million data set.

A 50 GB p directory should be sufficient enough to show this behavior.

It’s not a regression in this particular patch release. I suspect this is an issue for Alphas with large data sizes.

As an example, other systems set up keep-alive messages for requests. e.g., Twitter’s streaming API (see “Keep-alive signals” section) has a keep-alive heartbeat every 10 seconds so that the connection doesn’t terminate.

1 Like