Commit 683c83b
authored
## Description
This PR standardizes behavior around `--first-checkpoint` and its
effects on
A. The checkpoint to start ingesting from
B. The checkpoint for a pipeline to resume processing from
- When an indexer starts, it will always start ingesting from the next
checkpoint after the smallest committed checkpoint across all pipelines
added to it.
- Pipelines without a watermark are by default to be backfilled from
genesis.
- Providing `--first-checkpoint` overrides this behavior, and tells the
indexer that these pipelines are to process checkpoints from
`--first-checkpoint` instead.
## Test plan
New tests
---
## Release notes
Check each box that your changes affect. If none of the boxes relate to
your changes, release notes aren't required.
For each box you select, include information after the relevant heading
that describes the impact of your changes that a user might notice and
any actions they must take to implement updates.
- [ ] Protocol:
- [ ] Nodes (Validators and Full nodes):
- [ ] gRPC:
- [ ] JSON-RPC:
- [ ] GraphQL:
- [ ] CLI:
- [ ] Rust SDK:
1 parent 91dcdb9 commit 683c83b
File tree
8 files changed
+860
-450
lines changed- crates
- sui-indexer-alt-framework/src
- pipeline
- concurrent
- postgres
- sui-indexer-alt/src
- docs/content/guides/developer/advanced/custom-indexer
8 files changed
+860
-450
lines changedLarge diffs are not rendered by default.
Lines changed: 1 addition & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | | - | |
| 44 | + | |
46 | 45 | | |
47 | 46 | | |
48 | 47 | | |
49 | | - | |
50 | 48 | | |
51 | 49 | | |
52 | 50 | | |
53 | 51 | | |
54 | 52 | | |
55 | 53 | | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | 54 | | |
62 | 55 | | |
63 | 56 | | |
| |||
341 | 334 | | |
342 | 335 | | |
343 | 336 | | |
344 | | - | |
345 | 337 | | |
346 | 338 | | |
347 | 339 | | |
| |||
Lines changed: 8 additions & 56 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | 40 | | |
42 | 41 | | |
43 | 42 | | |
| |||
194 | 193 | | |
195 | 194 | | |
196 | 195 | | |
197 | | - | |
| 196 | + | |
198 | 197 | | |
199 | 198 | | |
200 | 199 | | |
| |||
333 | 332 | | |
334 | 333 | | |
335 | 334 | | |
336 | | - | |
337 | | - | |
| 335 | + | |
338 | 336 | | |
339 | 337 | | |
340 | 338 | | |
| |||
348 | 346 | | |
349 | 347 | | |
350 | 348 | | |
351 | | - | |
352 | 349 | | |
353 | 350 | | |
354 | 351 | | |
| |||
368 | 365 | | |
369 | 366 | | |
370 | 367 | | |
371 | | - | |
| 368 | + | |
372 | 369 | | |
373 | 370 | | |
374 | 371 | | |
| |||
451 | 448 | | |
452 | 449 | | |
453 | 450 | | |
454 | | - | |
| 451 | + | |
455 | 452 | | |
456 | 453 | | |
457 | 454 | | |
| |||
520 | 517 | | |
521 | 518 | | |
522 | 519 | | |
523 | | - | |
| 520 | + | |
524 | 521 | | |
525 | 522 | | |
526 | 523 | | |
| |||
577 | 574 | | |
578 | 575 | | |
579 | 576 | | |
580 | | - | |
| 577 | + | |
581 | 578 | | |
582 | 579 | | |
583 | 580 | | |
| |||
616 | 613 | | |
617 | 614 | | |
618 | 615 | | |
619 | | - | |
620 | | - | |
621 | | - | |
622 | | - | |
623 | | - | |
624 | | - | |
625 | | - | |
626 | | - | |
627 | | - | |
628 | | - | |
629 | | - | |
630 | | - | |
631 | | - | |
632 | | - | |
633 | | - | |
634 | | - | |
635 | | - | |
636 | | - | |
637 | | - | |
638 | | - | |
639 | | - | |
640 | | - | |
641 | | - | |
642 | | - | |
643 | | - | |
644 | | - | |
645 | | - | |
646 | | - | |
647 | | - | |
648 | | - | |
649 | | - | |
650 | | - | |
651 | | - | |
652 | | - | |
653 | | - | |
654 | | - | |
655 | | - | |
656 | | - | |
657 | | - | |
658 | | - | |
659 | | - | |
660 | | - | |
661 | | - | |
662 | | - | |
663 | | - | |
664 | 616 | | |
665 | 617 | | |
666 | | - | |
| 618 | + | |
667 | 619 | | |
668 | 620 | | |
669 | 621 | | |
| |||
Lines changed: 1 addition & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
197 | | - | |
198 | | - | |
| 197 | + | |
199 | 198 | | |
200 | 199 | | |
201 | 200 | | |
| |||
205 | 204 | | |
206 | 205 | | |
207 | 206 | | |
208 | | - | |
209 | 207 | | |
210 | 208 | | |
211 | 209 | | |
| |||
255 | 253 | | |
256 | 254 | | |
257 | 255 | | |
258 | | - | |
259 | 256 | | |
260 | 257 | | |
261 | 258 | | |
| |||
266 | 263 | | |
267 | 264 | | |
268 | 265 | | |
269 | | - | |
270 | 266 | | |
271 | 267 | | |
272 | 268 | | |
| |||
412 | 408 | | |
413 | 409 | | |
414 | 410 | | |
415 | | - | |
416 | 411 | | |
417 | 412 | | |
418 | 413 | | |
419 | 414 | | |
420 | | - | |
421 | 415 | | |
422 | 416 | | |
423 | 417 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | 24 | | |
28 | 25 | | |
29 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
163 | | - | |
| 163 | + | |
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
182 | | - | |
| 182 | + | |
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
| |||
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
208 | | - | |
| 208 | + | |
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
213 | | - | |
| 213 | + | |
214 | 214 | | |
215 | 215 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
55 | 54 | | |
56 | 55 | | |
57 | 56 | | |
| |||
Lines changed: 0 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | 78 | | |
83 | 79 | | |
84 | 80 | | |
| |||
0 commit comments