dropped messages in TUMBLINGWINDOW from FILE source #3733
-
Hi, {"EnqueuedTimeUtc":"2025-06-04T08:53:30.7510000Z","Properties":{},"SystemProperties":{"correlationId":"825fc18b-97fe-4310-940d-979a0a6c3f32","connectionDeviceId":"sim000001","connectionAuthMethod":"{"scope":"hub","type":"sas","issuer":"iothub"}","connectionDeviceGenerationId":"638284825497147007","contentType":"application/json","contentEncoding":"utf-8","enqueuedTime":"2025-06-04T08:53:30.7510000Z"},"Body":{"deviceId": "sim000001", "time": "2025-06-04T08:53:36.6120938Z", "counter": 81}} There are 120 lines in the file. The lines represent test iot data, 1 event sent every second for 120 seconds, select count(*) from playback group by SystemProperties.connectionDeviceId, TUMBLINGWINDOW(ss, 10) I expected 12 events with a payload of 10. What actually happens is
I few other things to add:
{ Here is the rule, and I have ensured that isEventTime is true. { I have tried to play around with the lateTolerance setting but it does not have any effect. Besides, the lines in the file are already sorted in ascending order, each 1 second apart. When I look at the topology flow I see the culprit seems to be the op_4_watermark function (screenshot below). This time it goes from 120 message to 40. If I run it numerous times this number will differ each time. This number does match up with the events I get out in the end. So, I presume that the events are being dropped. I just don't know why. Here is the zip of the input file that contains 120 messages Hope someone can shed some light on this. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Please provide the content of the key |
Beta Was this translation helpful? Give feedback.
Hi @cormac-raftery-gea
Thanks for reporting. The issue is caused by the bug when parsing the timestamp(
EnqueuedTimeUtc
) to the wrong value.The bug issue is fixed in #3735.
For your current ekuiper version, please make the length of fraction number in your timestamp as 3/6/9 to avoid the bug.
For example, making "EnqueuedTimeUtc":"2025-06-04T08:53:32.7510000Z" as "EnqueuedTimeUtc":"2025-06-04T08:53:32.751000000Z" or "EnqueuedTimeUtc":"2025-06-04T08:53:32.751000Z" which let the fraction number become from 7 to 6/9