Skip to content
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

cats: BareosDb: FilterZeroFileJobs returned list now is sorted #1172

Conversation

alaaeddineelamri
Copy link
Contributor

@alaaeddineelamri alaaeddineelamri commented Apr 25, 2022

Description

This PR orders zero-file jobids to be purged and makes always-incremental-consolidate systemtest more stable.

Please check

  • Short description and the purpose of this PR is present above this paragraph
  • Your name is present in the AUTHORS file (optional)

If you have any questions or problems, please give a comment in the PR.

Helpful documentation and best practices

Checklist for the reviewer of the PR (will be processed by the Bareos team)

General
  • PR name is meaningful
  • Purpose of the PR is understood
  • Separate commit for this PR in the CHANGELOG.md, PR number referenced is same
  • Commit descriptions are understandable and well formatted
Source code quality
  • Source code changes are understandable
  • Variable and function names are meaningful
  • Code comments are correct (logically and spelling)
  • Required documentation changes are present and part of the PR
  • bareos-check-sources --since-merge does not report any problems
  • git status should not report modifications in the source tree after building and testing

@alaaeddineelamri alaaeddineelamri force-pushed the dev/alaaeddineelamri/master/another-fix-for-always-incremental-test branch 2 times, most recently from b1c7d6c to f2ed2e0 Compare April 26, 2022 15:52
Copy link
Member

@pstorz pstorz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BY is also an sql keyword.

core/src/cats/sql_get.cc Outdated Show resolved Hide resolved
@alaaeddineelamri alaaeddineelamri force-pushed the dev/alaaeddineelamri/master/another-fix-for-always-incremental-test branch from f2ed2e0 to 364dd95 Compare April 27, 2022 12:22
@pstorz pstorz self-requested a review April 27, 2022 14:27
Copy link
Member

@pstorz pstorz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have the following change requests:

  • The PR Name is not meaningful enough, how about cats: BareosDb::FilterZeroFileJobs returned list now is sorted or sql_get.cc: order zero file jobs by Id
  • the CHANGELOG.md entry is missing

We probably also want to backport this to 21.

@alaaeddineelamri alaaeddineelamri changed the title cats: another fix for always-incremental-consolidate cats: BareosDb::FilterZeroFileJobs returned list now is sorted Apr 27, 2022
Makes systemtest `always-incremental-consolidate` more reliable,
as its results can sometimes show a false negative when jobids for 
zero files are not well ordered
@alaaeddineelamri alaaeddineelamri force-pushed the dev/alaaeddineelamri/master/another-fix-for-always-incremental-test branch from 364dd95 to 90060e0 Compare April 27, 2022 14:51
@alaaeddineelamri alaaeddineelamri changed the title cats: BareosDb::FilterZeroFileJobs returned list now is sorted cats: BareosDb: FilterZeroFileJobs returned list now is sorted Apr 27, 2022
@pstorz pstorz merged commit 12c4842 into bareos:master Apr 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants