-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix duplicated system stats if you run multiple ETLs in parallel (#38)
If one is running two or more ETLs at the same time and these runs produce a system statistics at the exact same millisecond, we would fail one of these runs with a failure to add the statistic to the DB. Now: A new run_id column which contains the run_id of the run which produces the system statistic. Old rows are migrated to -1 automatically. The default retention period is 30 days, so after 30 days these should be gone. We have a compound PK (run_id, timestamp), but unfortunately upgraded DB do not pick this up automatically. For that reason we now simply ignore bad writes for system statistics events -> if the mara DB is upgraded without the compound PK, this will catch these cases. The UI now only shows the statistics for the specific run (with a fallback for any -1 run_ids in the stats table. Replaces #29 Closes: #22 #29
- Loading branch information
Showing
3 changed files
with
46 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters