Skip to content

Commit

Permalink
Merge pull request #1154
Browse files Browse the repository at this point in the history
systemtest: fix `always-incremental-consolidate` sporadic failures
  • Loading branch information
pstorz committed Apr 21, 2022
2 parents 8175491 + 9cd7f6f commit 5b7f8bc
Show file tree
Hide file tree
Showing 36 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -49,6 +49,7 @@ and since Bareos version 20 this project adheres to [Semantic Versioning](https:
- FreeBSD packages: add missing ddl/update 2171_2192 and 2192_2210 files [PR #1147]
- Fix director connects to client while `Connection From Director To Client` is disabled. [PR #1099]
- cats: make `.bvfs_update` and `.bvfs_versions` take archive jobs into consideration [PR #1152]
- Fix `always-incremental-consolidate` systemtest sporadic fails, and rename it. [PR #1154]

### Changed
- contrib: rename Python modules to satisfy PEP8 [PR #768]
Expand Down
6 changes: 3 additions & 3 deletions core/src/cats/sql_get.cc
Expand Up @@ -1398,10 +1398,10 @@ bool BareosDb::AccurateGetJobids(JobControlRecord* jcr,

// Build a jobid list ie: 1,2,3,4
if (jr->limit) {
Mmsg(query, "SELECT JobId FROM btemp3%s ORDER by JobTDate LIMIT %d", jobid,
jr->limit);
Mmsg(query, "SELECT JobId FROM btemp3%s ORDER by JobTDate ASC LIMIT %d",
jobid, jr->limit);
} else {
Mmsg(query, "SELECT JobId FROM btemp3%s ORDER by JobTDate", jobid);
Mmsg(query, "SELECT JobId FROM btemp3%s ORDER by JobTDate ASC", jobid);
}
SqlQueryWithHandler(query.c_str(), DbListHandler, jobids);
Dmsg1(1, "db_accurate_get_jobids=%s\n", jobids->GetAsString().c_str());
Expand Down
2 changes: 1 addition & 1 deletion systemtests/tests/CMakeLists.txt
Expand Up @@ -18,7 +18,7 @@
# 02110-1301, USA.

add_subdirectory(acl)
add_subdirectory(ai-consolidate-ignore-duplicate-job)
add_subdirectory(always-incremental-consolidate)
add_subdirectory(autochanger)
add_subdirectory(bareos)
add_subdirectory(bareos-acl)
Expand Down
Expand Up @@ -7,4 +7,8 @@ Job {
AlwaysIncrementalJobRetention = 1 seconds
AlwaysIncrementalKeepNumber = 1
AlwaysIncrementalMaxFullAge = 1 seconds
Run Script {
command = "sleep 2"
Runs When = Before
}
}

0 comments on commit 5b7f8bc

Please sign in to comment.