Skip to content
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

Merged
merged 2 commits into from
Jul 5, 2019

Conversation

manishrjain
Copy link
Contributor

@manishrjain manishrjain commented Jul 5, 2019

Last remaining KVs were not getting their StreamId set during reduce phase. This PR fixes that.

Fixes #3625 .


This change is Reviewable

@manishrjain manishrjain requested a review from a team as a code owner July 5, 2019 19:56
var listSize int
list := &bpb.KVList{}

preds := make(map[string]uint32)
setStreamId := func(kv *bpb.KV) {

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]

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)

Copy link
Contributor Author

@manishrjain manishrjain left a 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 be setStreamID (from golint)

Ignoring.


dgraph/cmd/bulk/reduce.go, line 152 at r1 (raw file):

Previously, golangcibot (Bot from GolangCI) wrote…

var streamId should be streamID (from golint)

Ignoring.

@manishrjain manishrjain merged commit a67fbfd into master Jul 5, 2019
@manishrjain manishrjain deleted the mrjn/fix-bulk-loader-swriter branch July 5, 2019 20:21
dna2github pushed a commit to dna2fork/dgraph that referenced this pull request Jul 19, 2019
Last remaining KVs were not getting their StreamId set during reduce phase. This PR fixes that.

Fixes dgraph-io#3625 .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Bulk loader crashes after stream writer changes
2 participants