Commit da18664
authored
feat(bulk): add error logging to bulk loader (#9601)
**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**
- [x] The PR title follows the
[Conventional
Commits](https://www.conventionalcommits.org/en/v1.0.0/#summary) syntax,
leading
with `fix:`, `feat:`, `chore:`, `ci:`, etc.
- [x] 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](https://github.com/dgraph-io/dgraph-docs) staged and linked
here. This process can
be simplified by going to the [public docs
site](https://docs.dgraph.io/) 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.1 parent 837bc14 commit da18664
3 files changed
+76
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
| 63 | + | |
62 | 64 | | |
63 | 65 | | |
64 | 66 | | |
| |||
79 | 81 | | |
80 | 82 | | |
81 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
82 | 90 | | |
83 | 91 | | |
84 | 92 | | |
85 | 93 | | |
86 | 94 | | |
87 | 95 | | |
88 | | - | |
| 96 | + | |
89 | 97 | | |
90 | 98 | | |
91 | 99 | | |
92 | 100 | | |
93 | 101 | | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
94 | 137 | | |
95 | 138 | | |
96 | 139 | | |
| |||
130 | 173 | | |
131 | 174 | | |
132 | 175 | | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
133 | 187 | | |
134 | 188 | | |
135 | 189 | | |
136 | 190 | | |
137 | 191 | | |
138 | | - | |
| 192 | + | |
139 | 193 | | |
140 | 194 | | |
| 195 | + | |
141 | 196 | | |
142 | 197 | | |
143 | 198 | | |
| |||
348 | 403 | | |
349 | 404 | | |
350 | 405 | | |
351 | | - | |
| 406 | + | |
352 | 407 | | |
353 | 408 | | |
354 | 409 | | |
| |||
453 | 508 | | |
454 | 509 | | |
455 | 510 | | |
456 | | - | |
| 511 | + | |
457 | 512 | | |
458 | 513 | | |
459 | 514 | | |
| |||
531 | 586 | | |
532 | 587 | | |
533 | 588 | | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
534 | 594 | | |
535 | 595 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
224 | | - | |
225 | | - | |
| 224 | + | |
| 225 | + | |
226 | 226 | | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
227 | 230 | | |
228 | 231 | | |
229 | 232 | | |
| |||
250 | 253 | | |
251 | 254 | | |
252 | 255 | | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
253 | 259 | | |
254 | 260 | | |
255 | 261 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| 94 | + | |
| 95 | + | |
94 | 96 | | |
95 | 97 | | |
96 | 98 | | |
| |||
155 | 157 | | |
156 | 158 | | |
157 | 159 | | |
| 160 | + | |
| 161 | + | |
158 | 162 | | |
159 | 163 | | |
160 | 164 | | |
| |||
0 commit comments