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(bulk): save schemaMap after map phase #7188

Merged
merged 5 commits into from
Jan 6, 2021
Merged

fix(bulk): save schemaMap after map phase #7188

merged 5 commits into from
Jan 6, 2021

Conversation

ajeetdsouza
Copy link
Contributor

@ajeetdsouza ajeetdsouza commented Dec 22, 2020

Fixes DGRAPH-2862.

The bulk loader currently loses the schemaMap when the map and reduce phase are separated. This PR stores this data in a proto file so that it can resume correctly.


This change is Reviewable

@github-actions github-actions bot added the area/bulk-loader Issues related to bulk loading. label Dec 22, 2020
@ajeetdsouza ajeetdsouza changed the title fix(bulk): Add preds to schemaMap when writing fix(bulk): save schemaMap after map phase Dec 24, 2020
Copy link
Contributor

@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.

:lgtm:

Reviewed 4 of 4 files at r1.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @ajeetdsouza, @jarifibrahim, and @vvbalaji-dgraph)


dgraph/cmd/bulk/run.go, line 315 at r1 (raw file):

		var bulkMeta pb.BulkMeta
		err = bulkMeta.Unmarshal(bulkMetaData)

if err = ..; err != nil


dgraph/cmd/bulk/run.go, line 337 at r1 (raw file):

		}
		err = ioutil.WriteFile(bulkMetaPath, bulkMetaData, 0644)
		if err != nil {

and here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/bulk-loader Issues related to bulk loading.
Development

Successfully merging this pull request may close these issues.

2 participants