Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@vinzenz
Copy link
Member

@vinzenz vinzenz commented Apr 29, 2019

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]

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]>
@vinzenz vinzenz requested a review from a team April 29, 2019 11:33
Copy link
Member

@pirat89 pirat89 left a 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).

Copy link
Member

@pirat89 pirat89 left a 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.

@pirat89 pirat89 merged commit f766a84 into oamg:master Apr 30, 2019
pirat89 added a commit to pirat89/leapp that referenced this pull request Jul 15, 2019
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
@pirat89 pirat89 mentioned this pull request Jul 15, 2019
pirat89 added a commit that referenced this pull request Jul 15, 2019
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants