mirror of
https://github.com/floci-io/floci.git
synced 2026-11-22 21:50:46 -05:00
* fix: honor kinesis explicit hash keys * fix(kinesis): reject numeric ExplicitHashKey and migrate legacy shard ranges (#3069) Address the two review findings on explicit-hash-key routing: - Reject a non-string ExplicitHashKey JSON node with SerializationException in PutRecord and PutRecords, instead of letting asText coerce a JSON number into an accepted decimal string, preserving AWS wire-protocol fidelity. - Repartition legacy multi-shard streams whose open shards still carry the old full-span hash range into disjoint contiguous ranges before explicit-hash routing, so an explicit key no longer collapses onto the first shard after an upgrade. Already-disjoint (new/split/merged) streams are left untouched. RED -> GREEN: 3 new tests failed on the prior HEAD (putRecordRejectsNumericExplicitHashKey, putRecordsRejectNumericExplicitHashKey, putRecordMigratesLegacyOverlappingShardRangesForExplicitHashKey), all green after the fix. Kinesis suite: 118 run, 0 failures. --------- Co-authored-by: Ben Younes <2910651+ousamabenyounes@users.noreply.github.com>