-
Notifications
You must be signed in to change notification settings - Fork 79
checkpoints: Load checkpoints ordered by id
#499
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Previously checkpoints were loaded from the audit table in the database and ordered by timestamp. However we ran into some problems were timestamps were off due to some misconfiguration that caused the time of the system being in the past after the reboot. That resulted in leapp, trying to resume at a place that has been already executed before. This patch will change the ordering to use the row id, which is sequential in SQLite. Signed-off-by: Vinzenz Feenstra <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer to change the sort everywhere by id (even for snactor).
- sending PR (vinzenz#4)
pirat89
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
work as expected (leapp), I didn't tried the snactor, but believe it will be ok regarding the change.
Packaging - Fix URL and Source0 in the SPEC file ===================================================================== Framework * Fixes - Add workround patch for the multiprocessing library - Exit non-zero on unhandled exceptions and errors - Fix actor library loading, so libs do not have to be imported in lexicographical order - Fix buf with mode inheritance and list field (oamg#203) - Fix warning about membership check of models when (oamg#503) - Load checkpoint ordered by `id` instead of timestamp to prevent issues with changed timezone (oamg#499) - Log on the ERROR level by default instead of DEBUG - Print usage to stderr * Enhancements - Add phase name checking to workflow parameters - Add the fetch_upgrade_report_raw() function to obtain raw report data - Create a dynamic configuration phase that allows creation of configuration for repository workflow - Functionalite getting actor and phase names when working with a workflow ===================================================================== Leapp * Fixes - Add checks of arguments for cmdline parameters - Load checkpoint ordered by `id` instead of timestamp to prevent issues with changed timezone (oamg#499) * Enhancements - Add JSON report generation - Add the preupgrade subcommand for the leapp tool that stops workflow execution after the Reports phase and display info about generated report ===================================================================== Snactor * Fixes - Add a simple logger to snactor discover command to avoid spurious output about missing logger - Add checks of arguments for cmdline parameters - Exit non-zero on unhandled exceptions and errors - Load checkpoint ordered by `id` instead of timestamp to prevent issues with changed timezone (oamg#499) ===================================================================== stdlib * Fixes - Add checks of arguments for cmdline parameters * Enhancements - Log output of commands to logfile (oamg#520) - stdlib: add option to `run()` to ignore exit code ===================================================================== Modifications - introduced conftest.py to utilize fixture mechanism, so fixture doesn't have to be imported explicitly in tests. - refactoring to satisfy linters
Packaging - Fix URL and Source0 in the SPEC file ===================================================================== Framework * Fixes - Add workround patch for the multiprocessing library - Exit non-zero on unhandled exceptions and errors - Fix actor library loading, so libs do not have to be imported in lexicographical order - Fix buf with mode inheritance and list field (#203) - Fix warning about membership check of models when (#503) - Load checkpoint ordered by `id` instead of timestamp to prevent issues with changed timezone (#499) - Log on the ERROR level by default instead of DEBUG - Print usage to stderr * Enhancements - Add phase name checking to workflow parameters - Add the fetch_upgrade_report_raw() function to obtain raw report data - Create a dynamic configuration phase that allows creation of configuration for repository workflow - Functionalite getting actor and phase names when working with a workflow ===================================================================== Leapp * Fixes - Add checks of arguments for cmdline parameters - Load checkpoint ordered by `id` instead of timestamp to prevent issues with changed timezone (#499) * Enhancements - Add JSON report generation - Add the preupgrade subcommand for the leapp tool that stops workflow execution after the Reports phase and display info about generated report ===================================================================== Snactor * Fixes - Add a simple logger to snactor discover command to avoid spurious output about missing logger - Add checks of arguments for cmdline parameters - Exit non-zero on unhandled exceptions and errors - Load checkpoint ordered by `id` instead of timestamp to prevent issues with changed timezone (#499) ===================================================================== stdlib * Fixes - Add checks of arguments for cmdline parameters * Enhancements - Log output of commands to logfile (#520) - stdlib: add option to `run()` to ignore exit code ===================================================================== Modifications - introduced conftest.py to utilize fixture mechanism, so fixture doesn't have to be imported explicitly in tests. - refactoring to satisfy linters
Previously checkpoints were loaded from the audit table in the database
and ordered by timestamp. However we ran into some problems were
timestamps were off due to some misconfiguration that caused the time
of the system being in the past after the reboot.
That resulted in leapp, trying to resume at a place that has been
already executed before.
This patch will change the ordering to use the row id, which is
sequential in SQLite.
Signed-off-by: Vinzenz Feenstra [email protected]