runs are chained to very old ones, past the tsEnd date. #430
Description
At least a few recent batches contain runs that are marked as continuation of very old runs for tags that should be long dead.
This results in old tags showing up in detection timelines.
select c.batchID, b.runID, b.motusTagID, b.tsBegin, b.tsEnd, MIN(a.ts) as min_ts, MAX(a.ts) as max_ts from hits a inner join runs b on a.runID = b.runID
inner join batches c on a.batchID = c.batchID where a.ts > b.tsEnd and c.batchID > 217000
group by c.batchID, b.runID, motusTagID, b.tsBegin, b.tsEnd order by c.batchID
This was pointed out by Phil for this deployment.
https://motus.org/data/tagDeploymentDetections?id=8377
The tag involved (20442 ) appears in the table below.
This seems to have started only a few days ago. I'm running a query now to identify the earliest batchID, but that is a slow query. I'll post an update if the issue started earlier than I think.
batchID | runID | motusTagID | tsBegin | tsEnd | min_ts | max_ts |
---|---|---|---|---|---|---|
217213 | 259 | 20442 | 1467829829.9299 | 1467829888.4142 | 1538240751.7887 | 1538241131.6877 |
217213 | 261 | -7 | 1467840344.2572 | 1467840365.6879 | 1538240747.9028 | 1538241127.7989 |
217213 | 262 | 20433 | 1467872885.6687 | 1467872928.2599 | 1538240747.9028 | 1538241007.8317 |
217213 | 263 | -7 | 1467875903.8191 | 1467875962.3318 | 1538240751.789 | 1538241131.6876 |
217213 | 264 | -7 | 1467875930.3086 | 1467876068.2843 | 1538240747.9029 | 1538240987.8373 |
217213 | 265 | -11 | 1467880021.6371 | 1467880081.7267 | 1538240751.7888 | 1538241011.7196 |
217260 | 30381 | 15586 | 1441260327.6529 | 1441260418.8059 | 1538317608.1012 | 1538317988.0047 |
217260 | 30382 | 15567 | 1441260350.7835 | 1441260704.3378 | 1538317608.1012 | 1538318047.9897 |
217260 | 30383 | 15549 | 1441260353.0237 | 1441260666.2063 | 1538317608.1011 | 1538318027.9948 |
217260 | 30384 | 15549 | 1441260403.4986 | 1441260625.8264 | 1538317612.5377 | 1538317992.4445 |
217260 | 30385 | 15569 | 1441260404.0514 | 1441260848.52 | 1538317612.5378 | 1538318032.4348 |
217260 | 30386 | 14679 | 1441260644.5382 | 1441260684.149 | 1538317612.5377 | 1538318092.42 |
217300 | 39766270 | 29270 | 1532849927.5349 | 1532850124.0139 | 1538247105.8853 | 1538248645.4969 |
217300 | 39766272 | -580 | 1535162114.3128 | 1535162185.1724 | 1538247105.8852 | 1538248645.4969 |