Unexpected cbor code `0xa1` when decoding `banyan::index::Index<trees::axtrees::AxTrees>`.
- Langage dominant
- Rust
- Étoiles
- 42
- Forks
- 6
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
This error basically says “I don’t want to read this dictionary of length 1”, which is the “kinded” representation of `Index` (DagCbor doesn’t like definite-length encoding, IIRC). I encountered this while developing event dump/restore functionality in Actyx. The restore part feeds events to `BanyanStore::append0` (to preserve timestamps) and does not mess with the internals, so I don’t see how my code could influence the encoding of a Banyan index block.
How much work would it be to replace all DagCbor with cbor-data? I trust that implementation much more, it is very thoroughly tested to actually accept all valid CBOR.
/cc @rklaehn
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
Start at BanyanStore::append0 and trace the event dump/restore path into banyan::index::Index. Reproduce the unexpected 0xa1 decoding error, then compare the current DagCbor handling with cbor-data. Done means the restore path can decode the Banyan index block without that error and the scope of any DagCbor replacement is documented.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- rust
- Domaine
- databases
- Type d'issue
- Bug
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Activité
- À l'abandon
- Clarté
- À clarifier
- Accessibilité débutants
- 25/100