mirror of
https://github.com/floci-io/floci.git
synced 2026-11-24 06:20:24 -05:00
* fix(cloudwatch-logs): preserve ingestion order for same-timestamp events GetLogEvents and FilterLogEvents sorted events by timestamp only, so events sharing the same millisecond came back in arbitrary store order. Add a monotonic ingestion sequence to LogEvent and use it as a sort tie-breaker, matching CloudWatch Logs which returns same-timestamp events in ingestion order. The counter is seeded from the highest stored sequence so ordering survives persistence reloads. Closes #1584 * fix(cloudwatch-logs): add eventId as final ordering tie-breaker Legacy events created before the sequence field default to sequence 0, so timestamp+sequence alone left their relative order to arbitrary scan order. Fall back to eventId to keep ordering deterministic. * test(cloudwatch-logs): import ArrayList instead of inline FQN Add an import for java.util.ArrayList and use the short name across the test, replacing inline new java.util.ArrayList<>() usages.