You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dgraph version : v1.1.0
Dgraph SHA-256 : 7d4294a80f74692695467e2cf17f74648c18087ed7057d798f40e1d3a31d2095
Commit SHA-1 : ef7cdb28
Commit timestamp : 2019-09-04 00:12:51 -0700
Branch : HEAD
Go version : go1.12.7
For Dgraph official documentation, visit https://docs.dgraph.io.
For discussions about Dgraph , visit https://discuss.dgraph.io.
To say hi to the community , visit https://dgraph.slack.com.
Licensed variously under the Apache Public License 2.0 and Dgraph Community License.
Copyright 2015-2018 Dgraph Labs, Inc.
{
"DataFiles": "data.rdf",
"DataFormat": "",
"SchemaFile": "data.schema",
"OutDir": "./out",
"ReplaceOutDir": false,
"TmpDir": "tmp",
"NumGoroutines": 8,
"MapBufSize": 67108864,
"SkipMapPhase": false,
"CleanupTmp": true,
"NumReducers": 1,
"Version": false,
"StoreXids": false,
"ZeroAddr": "localhost:5200",
"HttpAddr": "localhost:8124",
"IgnoreErrors": false,
"CustomTokenizers": "",
"NewUids": false,
"MapShards": 4,
"ReduceShards": 1
}
The bulk loader needs to open many files at once. This number depends on the size of the data set loaded, the map file output size, and the level of indexing. 100,000 is adequate for most data set sizes. See `man ulimit` for details of how to change the limit.
Current max open files limit: 102400
Connecting to zero at localhost:5200
Processing file (1 out of 1): data.rdf
Shard tmp/shards/000 -> Reduce tmp/shards/shard_0/000
Shard tmp/shards/001 -> Reduce tmp/shards/shard_0/001
[17:12:56+0800] REDUCE 00s 100.00% edge_count:2.000 edge_speed:2.000/sec plist_count:2.000 plist_speed:2.000/sec
Total: 00s
In mapper stage of bulk loader, NQuads are processed by calling processNQuad(). If store_xids is true, we create extra NQuad for xid and uid mapping and call processNQuad(). Ideally this should be done only once. But we were not tracking if we had already created NQuad or not. This was resulting in multiple recursive calls to processNQuad() and leading to overflowing of stack.
This PR fixes it by returning true/false from AssignUid() of xidmap. When it returns false, we know its an old Uid and avoid creating extra NQuad and recursive call to processNQuad().
Fixes: #3922
- What version of Dgraph are you using?
- Have you tried reproducing the issue with latest release?
- What is the hardware spec (RAM, OS)?
- Steps to reproduce the issue (command/config used to run Dgraph).
step
content
- Expected behaviour and actual result.
Expected to bulk loader generated file with xid info.
However,the following error is shown:
I remove --store_xids
result is shown:
If you have a question, please ask it on https://discuss.dgraph.io
Our Docs: https://docs.dgraph.io/
Slack Channel: https://slack.dgraph.io/
The text was updated successfully, but these errors were encountered: