mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 14:10:49 -05:00
* fix(kinesis): stop routing records to closed shards Repeated resharding can leave a selected shard and both of its direct children closed. `selectShard` currently falls back to that closed parent, so a successful write can append after the shard's ending sequence number. - Follow both parent links through closed intermediate shards to an open descendant, with deterministic breadth-first order and visited shard IDs. - Reject an unreachable open destination before appending. Keep the producer lock, ordinary-key hash selection, ExplicitHashKey routing, and actual returned ShardId. - Cover repeated splits, split/merge lineage, malformed graphs, handler success/failure results, and Java SDK writes after resharding. * test(kinesis): protect breadth-first descendant preference Add a mixed-depth split topology so routing to the still-open direct child is distinguished from depth-first traversal through its closed sibling. * test(kinesis): cover both mixed-depth shard layouts Parameterize the split child so the direct-child preference regression rejects depth-first traversal under either child ordering. * fix(kinesis): preserve the open-shard routing fast path Delay the lineage snapshot until the selected shard is closed, avoiding a shard-list copy on ordinary open-shard writes. Name expected descendant destinations in routing fixtures and cover an unrelated open shard preceding the reachable child.