Commit f855616
fix: floor monotonic timestamps to milliseconds before comparison (#573)
Comparing at microsecond precision missed collisions: two events in the
same millisecond but different microseconds passed the tie check yet
collide once the service floors both to the same millisecond (AgentCore
Memory stores and orders eventTimestamp at ms resolution). Floor the
desired timestamp to ms first so same-ms events are detected as a tie
and separated by 1ms.
Co-authored-by: jariy17 <tjariy+jariy17@users.noreply.github.com>1 parent a271ab4 commit f855616
2 files changed
Lines changed: 40 additions & 2 deletions
File tree
- src/bedrock_agentcore/memory/integrations/strands
- tests/bedrock_agentcore/memory/integrations/strands
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
116 | 122 | | |
117 | 123 | | |
118 | 124 | | |
| |||
Lines changed: 34 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3870 | 3870 | | |
3871 | 3871 | | |
3872 | 3872 | | |
3873 | | - | |
| 3873 | + | |
| 3874 | + | |
| 3875 | + | |
| 3876 | + | |
| 3877 | + | |
| 3878 | + | |
| 3879 | + | |
| 3880 | + | |
| 3881 | + | |
3874 | 3882 | | |
3875 | 3883 | | |
3876 | 3884 | | |
3877 | | - | |
| 3885 | + | |
3878 | 3886 | | |
3879 | 3887 | | |
3880 | 3888 | | |
| |||
3887 | 3895 | | |
3888 | 3896 | | |
3889 | 3897 | | |
| 3898 | + | |
| 3899 | + | |
| 3900 | + | |
| 3901 | + | |
| 3902 | + | |
| 3903 | + | |
| 3904 | + | |
| 3905 | + | |
| 3906 | + | |
| 3907 | + | |
| 3908 | + | |
| 3909 | + | |
| 3910 | + | |
| 3911 | + | |
| 3912 | + | |
| 3913 | + | |
| 3914 | + | |
| 3915 | + | |
| 3916 | + | |
| 3917 | + | |
| 3918 | + | |
| 3919 | + | |
| 3920 | + | |
| 3921 | + | |
0 commit comments