Skip to content

stored: fix some sd error messages; add additional check during restore; split up always-incremental-consolidate test#1722

Merged
BareosBot merged 8 commits intobareos:masterfrom
sebsura:dev/ssura/master/fix-sd-restore-error-messages
Apr 15, 2024
Merged

stored: fix some sd error messages; add additional check during restore; split up always-incremental-consolidate test#1722
BareosBot merged 8 commits intobareos:masterfrom
sebsura:dev/ssura/master/fix-sd-restore-error-messages

Conversation

@sebsura
Copy link
Contributor

@sebsura sebsura commented Feb 29, 2024

Thank you for contributing to the Bareos Project!

This pr adds a missing sd error message as well as fixing one situation where we are sending the wrong one.
Additionally we added a check during restore on the fd, that double checks that we do not merge two different files,
which may happen if the restore stream get messed up somehow (this situation came up in the real world).

Lastly it splits up the test always-incremental-consolidate into multiple tests + test-setup. Additionally this test now does not auto fail on a repeat.

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)

Make sure you check/merge the PR using devtools/pr-tool to have some simple automated checks run and a proper changelog record added.

General
  • Is the PR title usable as CHANGELOG entry?
  • Purpose of the PR is understood
  • Commit descriptions are understandable and well formatted
  • Check backport line
  • Required backport PRs have been created
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
Tests
  • Decision taken that a test is required (if not, then remove this paragraph)
  • The choice of the type of test (unit test or systemtest) is reasonable
  • Testname matches exactly what is being tested
  • On a fail, output of the test leads quickly to the origin of the fault

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.

Please see comments.

@sebsura sebsura requested a review from pstorz April 12, 2024 07:05
sebsura and others added 8 commits April 15, 2024 12:19
The filedaemon requires that each file starts with an attribute
record, since this is the only way to know the files name.  To make
sure nothing bad happened we need to actively check that this
precondition holds.
double quotes stop globbing and as such we tried to delete a
file/directory called '*', which did not exist.

Also adds tracing to the fd since this tests an fd plugin.
@BareosBot BareosBot force-pushed the dev/ssura/master/fix-sd-restore-error-messages branch from 904f0a3 to 1cf8e01 Compare April 15, 2024 12:19
@BareosBot BareosBot merged commit 2e923b4 into bareos:master Apr 15, 2024
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.

3 participants