Files
floci/src/main/java/io/github
Stuart Lang 7f76009cdb fix(cloudwatch-logs): preserve ingestion order for same-timestamp events (#1592)
* 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.
2026-07-01 00:55:35 -05:00
..