Skip to content

feat(bulk): add error logging to bulk loader#9601

Merged
matthewmcneely merged 2 commits intomainfrom
matthewmcneely/add-error-logging-to-bulk-loader
Feb 18, 2026
Merged

feat(bulk): add error logging to bulk loader#9601
matthewmcneely merged 2 commits intomainfrom
matthewmcneely/add-error-logging-to-bulk-loader

Conversation

@matthewmcneely
Copy link
Copy Markdown
Contributor

Description

This PR adds error logging to the bulk loader. Prior to these changes, error handling in bulk loading allowed for only ignoring errors or stopping the load upon any error. These changes allow for errors to be logged to a file so that the entire bulk loading operation does not have to be an "all or nothing" exercise -- important for loads that can take hours to complete.

The new flags look like this:

dgraph bulk .... --ignore_errors  --log_errors   --error_log=/tmp/bulktest/errors.log

The existing --ignore_errors flag is required. The location of the error log can be specfied, the default is bulk_errors.log.

Checklist

  • The PR title follows the
    Conventional Commits syntax, leading
    with fix:, feat:, chore:, ci:, etc.
  • Code compiles correctly and linting (via trunk) passes locally
  • Tests added for new functionality, or regression tests for bug fixes added as applicable
  • For public APIs, new features, etc., a PR on the
    docs repo staged and linked here. This process can
    be simplified by going to the public docs site and clicking the
    "Edit this page" button at the bottom of page(s) relevant to your changes. Ensure that you
    indicate in the PR that this is an unreleased feature so that it does not get merged into
    the main docs prematurely.

@matthewmcneely matthewmcneely requested a review from a team as a code owner February 16, 2026 19:19
@github-actions github-actions bot added area/bulk-loader Issues related to bulk loading. area/core internal mechanisms go Pull requests that update Go code labels Feb 16, 2026
@matthewmcneely matthewmcneely merged commit da18664 into main Feb 18, 2026
29 checks passed
@matthewmcneely matthewmcneely deleted the matthewmcneely/add-error-logging-to-bulk-loader branch February 18, 2026 22:29
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. area/core internal mechanisms go Pull requests that update Go code

Development

Successfully merging this pull request may close these issues.

2 participants