Skip to content

Commit 99f9e30

Browse files
committed
docs(supervisor): add missing DA error codes
Add three missing Data Availability error codes that exist in the Go implementation but were missing from the documentation: - -320902 REWIND_FAILED (FAILED_PRECONDITION) - -321001 INVALIDATED_READ (ABORTED) - -321002 ALREADY_INVALIDATING_READ (ABORTED) Fixes #725
1 parent c7e5d47 commit 99f9e30

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

specs/interop/supervisor.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,11 @@
5353
- [-3209`XX` `FAILED_PRECONDITION` errors](#-3209xx-failed_precondition-errors)
5454
- [-320900 `OUT_OF_ORDER`](#-320900-out_of_order)
5555
- [-320901 `AWAITING_REPLACEMENT_BLOCK`](#-320901-awaiting_replacement_block)
56+
- [-320902 `REWIND_FAILED`](#-320902-rewind_failed)
5657
- [-3210`XX` `ABORTED` errors](#-3210xx-aborted-errors)
5758
- [-321000 `ITER_STOP`](#-321000-iter_stop)
59+
- [-321001 `INVALIDATED_READ`](#-321001-invalidated_read)
60+
- [-321002 `ALREADY_INVALIDATING_READ`](#-321002-already_invalidating_read)
5861
- [-3211`XX` `OUT_OF_RANGE` errors](#-3211xx-out_of_range-errors)
5962
- [-321100 `OUT_OF_SCOPE`](#-321100-out_of_scope)
6063
- [-3212`XX` `UNIMPLEMENTED` errors](#-3212xx-unimplemented-errors)
@@ -421,13 +424,25 @@ Happens when you try to add data to the DB, but it does not actually fit onto th
421424

422425
Happens when we know for sure that a replacement block is needed before progress can be made.
423426

427+
###### -320902 `REWIND_FAILED`
428+
429+
Happens when we fail to rewind the chain (reorg response).
430+
424431
##### -3210`XX` `ABORTED` errors
425432

426433
###### -321000 `ITER_STOP`
427434

428435
Happens in iterator to indicate iteration has to stop.
429436
This error might only be used internally and not sent over the network.
430437

438+
###### -321001 `INVALIDATED_READ`
439+
440+
Happens when something was assumed from the DB, but then invalidated due to e.g. a reorg.
441+
442+
###### -321002 `ALREADY_INVALIDATING_READ`
443+
444+
Happens when something is being invalidated, and something else attempts to invalidate at the same time.
445+
431446
##### -3211`XX` `OUT_OF_RANGE` errors
432447

433448
###### -321100 `OUT_OF_SCOPE`
@@ -456,4 +471,4 @@ Happens when we search the DB, know the data may be there, but is not (e.g. diff
456471

457472
###### -321501 `DATA_CORRUPTION`
458473

459-
Happens when the underlying DB has some I/O issue.
474+
Happens when the underlying DB has some I/O issue.

0 commit comments

Comments
 (0)