-
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
Fix StreamWriter usage in bulk loader #3635
Conversation
…phase. This PR fixes that.
var listSize int | ||
list := &bpb.KVList{} | ||
|
||
preds := make(map[string]uint32) | ||
setStreamId := func(kv *bpb.KV) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
var setStreamId
should be setStreamID
(from golint
)
|
||
// We don't need to consider the data prefix, count prefix, etc. because each predicate has | ||
// a list of sorted keys the way they are produced. | ||
streamId := preds[pk.Attr] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
var streamId
should be streamID
(from golint
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 1 files reviewed, 2 unresolved discussions (waiting on @golangcibot)
dgraph/cmd/bulk/reduce.go, line 146 at r1 (raw file):
Previously, golangcibot (Bot from GolangCI) wrote…
var
setStreamId
should besetStreamID
(fromgolint
)
Ignoring.
dgraph/cmd/bulk/reduce.go, line 152 at r1 (raw file):
Previously, golangcibot (Bot from GolangCI) wrote…
var
streamId
should bestreamID
(fromgolint
)
Ignoring.
Last remaining KVs were not getting their StreamId set during reduce phase. This PR fixes that. Fixes dgraph-io#3625 .
Last remaining KVs were not getting their StreamId set during reduce phase. This PR fixes that.
Fixes #3625 .
This change is