-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bulk loader fails on some exports #3571
Comments
A work around this would be doing JSON escaping and unescaping. |
Thanks for your reply. I'm not sure how JSON encoding the string will help. The string |
This looks like an issue with how we handle facet strings in N-Quad triples. This same mutation works properly in the JSON mutation format: {"uid":"_:node","name":"me","name|kind":"\u003c"} |
@danielmai that seems to produce the same RDF on export. $ curl -X POST localhost:8080/mutate -H 'X-Dgraph-MutationType: json' -H 'X-Dgraph-CommitNow: true' -d $'
{
"set": [
{"uid":"_:node","name":"me","name|kind":"\u003c"}
]
}'
$ curl localhost:8008/admin/export
$ gzip -dc <export>/g01.rdf.gz
<_:uid1> <name> "me"^^<xs:string> (kind="\u003c") . Then starting a new zero and running
|
The unicode issue was fixed by #4175 but it needs to be cherry-picked into the 1.0 release branch. I'll do just that. I'll also look into the second issue (bulk loader fails on an empty graph). |
This has been fixed. Also, the bulk loader fails with a more descriptive warning when no data is passed to it. |
If you suspect this could be a bug, follow the template.
What version of Dgraph are you using?
v1.0.15
Have you tried reproducing the issue with latest release?
Yes
What is the hardware spec (RAM, OS)?
Linux, 6GiB
Steps to reproduce the issue (command/config used to run Dgraph).
curl http://localhost:8080/admin/export
dgraph bulk
on the exportThe
<
character in the facet is exported as"\u003c"
instead of"<"
(also>
is exported as"\u003e"
). This causesdgraph bulk
to choke as shown in the log below:dgraph bulk
logPS: maybe this should be a separate issue, but the bulk loader also craps out on an empty file. E.g., create an empty graph, export, and try to bulk import it. I'd be happy to open a second issue if desired.
The text was updated successfully, but these errors were encountered: