From dd90469ad37435164edfaabe4efda4337b489ec7 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Fri, 10 Oct 2008 11:51:37 +0000 Subject: [PATCH] Update release notes, etc git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/branches/Branch-2.4@7745 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/ChangeLog | 45 ++++++++++++++++++ bacula/ReleaseNotes | 47 ++++++++++++++++++- bacula/patches/2.4.2-migration-deadlock.patch | 47 +++++++++++++++++++ bacula/src/version.h | 4 +- bacula/technotes-2.4 | 3 +- 5 files changed, 141 insertions(+), 5 deletions(-) create mode 100644 bacula/patches/2.4.2-migration-deadlock.patch diff --git a/bacula/ChangeLog b/bacula/ChangeLog index e65d42a68d..894b49408f 100644 --- a/bacula/ChangeLog +++ b/bacula/ChangeLog @@ -1,6 +1,51 @@ Technical notes on version 2.4.x General: +Release Version 2.4.3 +10Oct08 +ebl Apply 2.4.2-cancel-non-running-jobs.patch to be able to cancel + a non created job faster. +08Oct08 +kes This should correct bug #1159 where Migration does not properly + respect the Migration Low Bytes directive. +02Oct08 +ebl Fix typo in configure.in that breaks --with-db-password option +24Sep08 +kes This code should fix the race condition that leads to a Director + crash at job end time when the job list is updated. This was reported + in bug #1162. +20Sep08 +kes Remove all double quotes from SQLite creating script and + replace by single quotes as suggested by John Huttley. +08Sep08 +kes Fix SQL case problem that may cause the failure of DiskToCatalog + in bug #1149. +kes Copy missing storage name into edit buffer. As far as I can tell + this never caused a bug. +28Aug08 +ebl Remove catalog dependency for bcopy +ebl Modify catalog scripts to have an easier packaging integration, + using default variables. + Make difference between SQLite3 and SQLite in db_get_type() +26Aug08 +kes Attempt to fix bug #1128 InChanger flag cleared during Migration + job when reading from one autochanger and writing to another. +24Aug08 +kes Add more information to SD acquire.c INFO messages. +kes Fix NULL Volume name error when reading and the drive must + be switched. +14Aug08 +kes Fix a Verify InitCatalog problem where in certain cases + a garbage filename may be entered in the verification database. This + fixes bug #1143. +kes Add space after version before date in bat about dialog. +12Aug08 +kes Fix seg fault in Dir during estimate command with no level value + given. This fixes bug #1140. +08Aug08 +kes Add message to migration job when the target job is already migrated. + This closes bug #1129. + Release Version 2.4.2 26Jul08 kes When a migration job actually runs, re-check the Job record diff --git a/bacula/ReleaseNotes b/bacula/ReleaseNotes index 5d3411935e..d14f8b992f 100644 --- a/bacula/ReleaseNotes +++ b/bacula/ReleaseNotes @@ -1,7 +1,7 @@ - Release Notes for Bacula 2.4.2 + Release Notes for Bacula 2.4.3 - Bacula code: Total files = 500 Total lines = 188,832 (*.h *.c *.in) + Bacula code: Total files = 500 Total lines = 188,945 (*.h *.c *.in) ================== Warning !!!!!! ========================== @@ -14,6 +14,49 @@ reparse directories backed up, you must explicitly include them in your FileSet. ============================================================== +Release 2.4.3 + This is a bug fix to version 2.4.2. All daemons are compatible + with other 2.4.x versions. + +Bugs Fixed: + 1159, 1162. 1149, 1128, 1143, 1140, 1129 + +Change Summary: +- Apply 2.4.2-cancel-non-running-jobs.patch to be able to cancel + a non created job faster. +- This should correct bug #1159 where Migration does not properly + respect the Migration Low Bytes directive. +- Fix typo in configure.in that breaks --with-db-password option +- This code should fix the race condition that leads to a Director + crash at job end time when the job list is updated. This was reported + in bug #1162. +- Remove all double quotes from SQLite creating script and + replace by single quotes as suggested by John Huttley. +- Fix SQL case problem that may cause the failure of DiskToCatalog + in bug #1149. +- Copy missing storage name into edit buffer. As far as I can tell + this never caused a bug. +- Remove catalog dependency for bcopy +- Modify catalog scripts to have an easier packaging integration, + using default variables. + Make difference between SQLite3 and SQLite in db_get_type() +- Attempt to fix bug #1128 InChanger flag cleared during Migration + job when reading from one autochanger and writing to another. +- Add more information to SD acquire.c INFO messages. +- Fix NULL Volume name error when reading and the drive must + be switched. +- Fix a Verify InitCatalog problem where in certain cases + a garbage filename may be entered in the verification database. This + fixes bug #1143. +- Add space after version before date in bat about dialog. +- Fix seg fault in Dir during estimate command with no level value + given. This fixes bug #1140. +- Add message to migration job when the target job is already migrated. + This closes bug #1129. + + +============================================================== + Release 2.4.2 This is an important bug fix release since version 2.4.1. diff --git a/bacula/patches/2.4.2-migration-deadlock.patch b/bacula/patches/2.4.2-migration-deadlock.patch new file mode 100644 index 0000000000..ba43d2fee5 --- /dev/null +++ b/bacula/patches/2.4.2-migration-deadlock.patch @@ -0,0 +1,47 @@ + + This patch fixes migration SQL not to migrate a job that has not + terminated, or in otherwords do not migrate a running job. + This is a partial fix to bug #1164. + + Any prior patches to src/dird/migration must already be applied. + Apply it to 2.4.2 with: + + cd + patch -p0 <2.4.2-migration-deadlock.patch + ./configure + make + ... + make install + + +Index: src/dird/migrate.c +=================================================================== +--- src/dird/migrate.c (revision 7729) ++++ src/dird/migrate.c (working copy) +@@ -554,7 +554,7 @@ + const char *sql_jobids_from_mediaid = + "SELECT DISTINCT Job.JobId,Job.StartTime FROM JobMedia,Job" + " WHERE JobMedia.JobId=Job.JobId AND JobMedia.MediaId IN (%s)" +- " AND Job.Type='B'" ++ " AND Job.Type='B' AND Job.JobStatus = 'T'" + " ORDER by Job.StartTime"; + + /* Get the number of bytes in the pool */ +@@ -563,7 +563,7 @@ + " (SELECT DISTINCT Job.JobId from Pool,Job,Media,JobMedia WHERE" + " Pool.Name='%s' AND Media.PoolId=Pool.PoolId AND" + " VolStatus in ('Full','Used','Error','Append') AND Media.Enabled=1 AND" +- " Job.Type='B' AND" ++ " Job.Type='B' AND Job.JobStatus = 'T' AND" + " JobMedia.JobId=Job.JobId AND Job.PoolId=Media.PoolId)"; + + /* Get the number of bytes in the Jobs */ +@@ -582,7 +582,7 @@ + "SELECT DISTINCT Job.JobId from Pool,Job,Media,JobMedia WHERE" + " Pool.Name='%s' AND Media.PoolId=Pool.PoolId AND" + " VolStatus in ('Full','Used','Error') AND Media.Enabled=1 AND" +- " Job.Type='B' AND" ++ " Job.Type='B' AND Job.JobStatus = 'T' AND" + " JobMedia.JobId=Job.JobId AND Job.PoolId=Media.PoolId" + " AND Job.RealEndTime<='%s'"; + diff --git a/bacula/src/version.h b/bacula/src/version.h index efd5a98f21..2343e93ec0 100644 --- a/bacula/src/version.h +++ b/bacula/src/version.h @@ -4,8 +4,8 @@ #undef VERSION #define VERSION "2.4.3" -#define BDATE "08 October 2008" -#define LSMDATE "08Oct08" +#define BDATE "10 October 2008" +#define LSMDATE "10Oct08" #define PROG_COPYRIGHT "Copyright (C) %d-2008 Free Software Foundation Europe e.V.\n" #define BYEAR "2008" /* year for copyright messages in progs */ diff --git a/bacula/technotes-2.4 b/bacula/technotes-2.4 index 3cc2d5a794..82f3f532f6 100644 --- a/bacula/technotes-2.4 +++ b/bacula/technotes-2.4 @@ -1,7 +1,8 @@ Technical notes on version 2.4 General: -08Oct08 +Release Version 2.4.3 +10Oct08 ebl Apply 2.4.2-cancel-non-running-jobs.patch to be able to cancel a non created job faster. 08Oct08 -- 2.39.5