]> git.sur5r.net Git - bacula/bacula/blob - bacula/ReleaseNotes
Create 2.2.10 by backporting trunk SD reservation changes
[bacula/bacula] / bacula / ReleaseNotes
1
2           Release Notes for Bacula 2.2.9 
3
4   Bacula code: Total files = 498 Total lines = 167,596 (*.h *.c *.in)
5   82 new files, 41,221 new lines of code, 208,380 lines of change from 2.0.3
6
7 This Director and Storage daemon must be upgraded at the same time,
8 but they should be compatible with all 2.0.x File daemons, unless you
9 use some of the new features that affect the FD.  In other words, you should
10 not have to upgrade all your File daemons when you upgrade. There is
11 no database upgrade needed from version 2.0.x to 2.2.0.
12
13 Version 2.2.10 is primarily a Storage daemon reservations system
14   enhancement to 2.2.9-beta
15 16Apr08
16 kes  Permit multiple simultaneous restores -- experiment.
17 15Apr08
18 kes  Backport development stream SD reservation system changes.
19      See below:
20 ===
21 16Apr08
22 kes  Move final volume swapping code to DCR method and
23      call it from acquire_for_read().
24 kes  When wrong volume is mounted during read, unload_autochanger.
25 14Apr08
26 kes  Stop searching for Volumes in SD askdir if DIR returns the
27      same volume name twice in a row.
28 13Apr08
29 kes  Tweak the swap Volume from one drive to another code so that
30      it now seems to work.
31 kes  Resolve several problems with recycling that broke the new
32      code (these problems are in 2.2.9 as well).
33 kes  Remove the volume lock when calling the sysop code.   
34 kes  Don't mark a reserved volume with no writers as unused otherwise
35      jobs fail.
36 12Apr08
37 kes  Rework class structures for VOLRES, DCR, and DEVICE to make
38      the method names a bit more logical, and for more logically
39      handling the responsibilities.
40 11Apr08
41 kes  Remove redundant code in terminating the scheduler that just
42      causes a seg fault in many cases.
43 kes  Cleanup releasing a volume and make it a DCR method.
44 kes  Improve algorithm for detecting pre-reserved volume and
45      swapping volumes.
46 10Apr08
47 kes  Tweak volume swapping code so it works.
48 kes  Correct name overloading in mount.c
49 kes  Replace released flag in VOLRES with reserved and add access
50      methods for the VOLRES class.
51 kes  Prevent volume from being released while being swapped.
52 kes  Refactor parts of stored/mount.c
53 09Apr08
54 ebl  Add sanity checks for VolWriteTime and VolReadTime
55 ebl  Take care of bad clock changes while computing VolWriteTime
56      and VolReadTime. This should fix or limit #1066
57 kes  Correct error string numbers in dird/catreq.c
58 kes  Restructure reserving, acquiring, and mounting volumes. Calls to
59      autochanger are deferred for mount.c -- simplifes the code.
60 08Apr08
61 kes  Do not prune any running job. It just fails the job.
62 kes  Lock the volumes when changing dev->reserved_device and marking
63      the volume unused otherwise the device can get reserved by
64      another job before the volume is released, thus blocking it.
65 ===                                        
66
67 Version 2.2.9 is a bug fix to version 2.2.8:
68 - Close bat console windows first to eliminate error message
69   from the notifier.
70 - Remove useless code in Scheduler that causes seg fault on
71   termination.
72 - Correct some SD catalog request error messages.
73 - Don't allow pruning of any running job.
74 - Turn off code in read_record that causes a seg fault in the SD
75   when reading past an EOS_LABEL.
76 - Turn off unloading the autochanger in reserve.c as it just
77    causes problems.
78 - Lock volumes when unreserving a device.
79 - Do not mark volume unused when recycling.
80 - Fix bug #1068 fixes a SD crash when using Virtual autochanger.
81 - Generate correct JobMedia records during spooling/despooling when
82   running concurrent jobs.  Thanks to Tom Ivar Helbekkmo
83   <tih@hamartun.priv.no> for excellent analysis and testing.
84 - *Massive* commit of all fixes and back ports to create 2.2.9
85   Mostly SD reservations enhancements.
86 - Fix Win32 FD backup/restore memory leak due to improper termination
87   of BackupRead/Write. This fixes bug# 1038.
88 - Fixes a StorageId problem with volumes after migration.
89 - Implements autostart scripts for Debian 
90 - Fix mtx-changer.in for broken Debian mt program.
91 - Apply doc fix from bug #1062.
92 - Resolve crash and improper restore wx-console Win32 restore
93   GUI. Fixes bug #1065.
94 - Update Win32 wxWidgets to latest version.
95 - Attempt to do correct handling of Win32 mount points. Should
96   fix bug #1046.
97 - Add const to AIX prototype for initgroups()
98 - Undo bug #1047 heap overrun fix as it is not correct.
99 - Fix to the JobMedia patch, which introduced a new problem.
100 - Fix creating first JobMedia record during Migration to include
101   proper index. This caused slow restores of migrated jobs.
102 - Fix bug #1047, do not strip paths on symbolic links.
103 - Set catalog backup database and user name from values specified on 
104   the ./configure line.
105 - Apply patch to correct bug #1031, about wrong pool source information
106   in job report.
107
108 Version 2.2.8 is a bug fix to version 2.2.7:
109 - It fixes bugs: 1036, 1033(doc), 1028, 1040, 1045(doc), 1030,
110   1042(partially), and possibly bugs 1018 and 1032.
111   Bugs 1018 and 1032 involve problems with multiple-drive autochangers,
112   and are difficult to reproduce.         
113   See the ChangeLog for more details.
114
115 Version 2.2.7 has several new features and several important bug fixes
116   since version 2.2.6:
117 - It fixes bugs: 1009, 1022, 1024, 1019, 1012, 1021, 1020
118   1007, 1008.  For more details, please see the technotes-2.1 file.
119 - Fixed a seg fault reported by Frank Sweetser that depended on
120   exact path lengths, but the problem was in bsnprintf.c
121 - Double quoting include filenames (@xxx) in Bacula conf files is now
122   possible, thanks to a patch by Michael Stapelberg.
123 - You can pipe input to include filenames (@|prog) by using a vertical
124   bar, thanks to the above patch.
125 - A daylight savings time bug in the Win32 bsmpt was fixed by a patch from 
126   Nerijus Baliunas.
127 - Marc Cousins submitted a patch that permits building the PostgreSQL
128   driver with version 8.3.
129 - The configure option --archivedir has been changed to --with-archivedir
130
131 Version 2.2.6 is a minor bug fix release to version 2.2.5
132 - It fixes bugs: #1003, 942, 982, 990(response only), 991,   
133   993, 986, 976.
134 - Fix bat crash wen it cannot connect to Director.
135 - Fix joblist failure bug in bat.
136
137 Version 2.2.5 is a major bug fix release to version 2.2.4 
138 - It fixes the following bugs: #961, 962, 963, 969, 968, 960,
139   964, (possibly 935 and 903), 953, 953, 967, 966, 965, 954, 
140   957, 908, 958, and 955.
141 - It also improves listing performance problems in bat pointed
142   out by Chris Howells.
143
144 Version 2.2.4 is a minor bug fix release to version 2.2.3
145 - Possible fix for authorization problems bug #953.
146 - Possible fix for bug #908.
147 - Add waits to multiple exit detection code to try to force pid
148   file to always be deleted.
149 - Restore good dev.tar.gz to rescue set appropriate binary property.
150   This fixes bug #950.
151 - Fix seg fault in error exit of acquire_for_read after unsuccessfully
152   trying to switch drives by checking for blocking before unblocking.
153   Fixes bug #906.
154 - Cancel storage daemon in all cases where FD reports error. This
155   should fix virtually all cases of bug #920 and will ensure that Devices
156   are released as soon as possible.
157 - Fix error message that was clobbered when Dir tells SD it does not
158   have write permission on Volume.  This should fix a minor point
159   in bug #942, but not the main problem.
160 - Fix migration code to get correct Volume name with multiple volumes 
161   by skipping |.  Fixes bug #936.
162 - Implement patch supplied by Landon to fix bug #944 where using
163   TLS with bconsole uses 99+% of the CPU.
164 - Fix bug #946 about "bacula-dir -t" which doesn't works
165   as expected.
166 - Using "m" in bconsole will show messages as in prior versions
167   and not memory usage.
168
169 - Note, you need GTK >= 2.10 to be able to link the Tray Monitor
170   program.
171
172 Version 2.2.3 is a critical bug fix release to version 2.2.2
173 - Fix bug #935, and possibly also bug #903 where files were not
174   restored. MediaId was not properly set in JobMedia record after 
175   a Volume change. This bug is known to affect all versions from 
176   2.0.0 on, and probably versions prior to that.  A detailed analysis
177   of the bug can be found at:
178     
179       http://www.bacula.org/downloads/bug-395.txt
180       
181 - Add ./configure search in qwt-qt4 for qwt package
182 - Apply Martin Simmons patch that should turn off the new API usage
183   when batch insert is turned off allowing building on older
184   PostgreSQLs.
185 - Note, you need GTK >= 2.10 to be able to link the Tray Monitor 
186   program.
187
188 Version 2.2.2 is a minor bug fix release to 2.2.1
189 - Detect if new PosgreSQL batch insert API is present.
190 - Correct incorrect mempool call causing Director crash on older
191   systems that do not have va_copy().
192 - Update spec files for 2.2.1 release
193
194 Version 2.2.1 is mainly a minor bug fix release to version 2.2.0,
195   the main changes since 2.2.0 are:
196 - Fixed bugs #921, 930, and 923.
197 - More portable timezone offset in bsmtp thaks to Attila Fülöp.
198 - Fix several bat issues.                           
199 - Use GTK+ calls instead of egg files in tray-monitor.
200 - Win32 service routines rewritten
201 - Updated projects file
202 Please see the ChangeLog for details.
203
204 Notes on 2.2.0 release follow:
205
206 Areas requiring caution or testing:
207 - You must have the thread safe version of MySQL client libraries loaded
208   to build with MySQL enabled.
209 - Volumes are pruned only when absolutely necessary -- this may cause
210   your database to grow compared to prior Bacula versions.
211 - Solaris door and even port files are no longer restored (equivalent
212     to what we do with sockets).
213 - SQLite is no longer supported for Solaris -- it fails too often with
214   bus errors.  SQLite3 should work on Solaris.
215 - The default setting for SQLite3 is now 'PRAGMA synchronous=OFF'.
216   This makes it run 30 times faster, but increases the possiblity
217   of a corrupted database if your server shuts down unexpectedly.
218   The default behavior can be changed in src/version.h
219 - Restore on Win32, and in particular on Vista is untested. Please
220   test before relying on it.  It should backup and restore reparse
221   points.
222 - Win32 servers are untested, and very likely not to work.
223
224 The major new features are:
225 - Much faster insertion of attributes (somewhere around 10 times),
226   many thanks to Eric Bollengier and Marc Cousin. 
227 - First release of bat (Bacula Administration Tool).  Note to build
228   bat you must explicitly enable it on the ./configure line, you
229   must have the Qt4 version 4.2 or later libraries loaded, the qwt
230   (Qt Graphics) package loaded, and qmake and the other Qt4 tools 
231   must be available. Most of the implementation was done by Dirk Bartley.
232 - Red/Black restore in memory tree (500 times faster loading).
233 - The Regex Where code to allow easier relocation of restored files 
234   thanks to Eric.
235 - Socket level heartbeat for all connections (untested).
236 - posix_fadvise() use in the FD to improve performance reduces
237   swapping due to opening/reading lots of files. Win32 equivalent
238   implemented.
239 - Much improved Volume reservation code that should eliminate most
240   conflicts experienced in multiple drive autochangers.
241 - Simpler locking in the SD in the reservation system.
242 - Detection of file size/date change during backup if enabled.
243 - New Recycle Pool feature -- thanks to Eric.
244 - Efficient implementation of very large include/exclude lists.
245 - Volumes are no longer pruned during 'status dir'
246 - Pruning is now more efficient, and if a Volume is purged,
247   during pruning, it is immediately discovered.
248 - License is now GPL v2 without modifications, fix a few copyright
249   mistakes made when adding FSFE copyright notice.
250
251 New ./configure options:
252 - --enable-bwx-console    
253 - --enable-bat
254 - --with-qwt=
255 - --with-db-name=
256 - --with-db-user=
257 - --enable-batch-insert
258
259 New bconsole commands:
260 - exec
261 - memory
262 - update recyclepool
263 - .sql
264 - .api
265 - .pwd (in restore tree)
266 - restoreclient (keyword)
267 - backupclient  (keyword)
268 - regexwhere    (keyword)
269 - update jobid  (new command)
270 - recyclepool   (keyword) 
271
272 New directives:
273 - Heartbeat Interval (bconsole.conf)
274 - Heartbeat Interval (bacula-dir.conf in Director, Client, Storage)
275 - TLS Allowed CN     (bacula-dir.conf in Client)
276 - Regex Where        (bacula-dir.conf in Job)
277 - Strip Prefix       (bacula-dir.conf in Job)
278 - Add Prefix         (bacula-dir.conf in Job)
279 - Add Suffex         (bacula-dir.conf in Job)
280 - Recycle Pool       (bacula-dir.conf in Pool)
281 - FailJobOnError     (bacula-dir.conf in RunScript)
282 - CheckFileChanges   (bacula-dir.conf in FileSet)
283 - StripPath          (bacula-dir.conf in FileSet)
284
285 Other features or bug fixes:
286 - Fixed bugs: 916, 910, 917, 914, 906, 907, 
287   842, 830, 893, 861, 888, 886, 807, 877, 872
288   885, 887, 864, 874, 882, 881, 863, 859, 
289   856, 854, 845, 847, 846, 809, 772, 
290   822, 825, 824, 808, 802, 797, 798, 795, 789, 791, 
291   788, 780, 763, 782, 612, 767, 775, 621, 772, 764, 
292   766, 621, 761, 755, 750, 741, 747, 742, 744, and 743.
293 - Configure bat with --enable-bat. Define qwt libraries with
294   --with-qwt=<dir>. See Installation chapter of manual for details.
295 - Create a depkgs-qt package that has both Qt4 and qwt, which are
296   needed to build bat. Most modern Linux systems will have both
297   these packages in the distro.
298 - Storage overrides delete all previous storage definitions instead
299   of prepending.
300 - One should be able to mount and unmount removable devices if the
301   Device resource has Removeable Media set and the mount and unmount
302   directives are defined.
303 - ./configure will do a better job of searching for qwt libraries.
304 - The Win32 version can no longer be shutdown from the tray monitor.
305   Use the command line or the Services panne.
306 - Keep prune_volumes() from pruning the whole Scratch pool.
307 - More debug output in status storage.
308 - Correct moving a Scratch volume from pool to pool (some
309   critical columns were lost).
310 - Different locking in reservations and despooling systems,
311   which means more micro-locking and less macro-locking, which
312   should give a lot more concurrency at the expense of slightly
313   (<0.1%) more overhead due to more locking/unlocking, but     
314   concurrent jobs should run much faster.
315 - Additional drive reservation algorithm that should solve a lot of
316   the problems experienced with multiple drive autochangers.
317 - Storage daemon status command enhanced to more clearly show Volume,
318   pool and media type when a job is waiting.
319 - Made bsmtp work with more strict SMTP servers.
320 - Detect doubly freed buffers in smartall.c
321 - wx-console renamed to bwx-console (Fedora request)
322 - gnome-console renamed to bgnome-console (Fedora request)
323 - Migration preserves original job's FileSetId
324 - Spooling implemented for migration jobs.
325 - Config files can be read through a pipe, by specifying a leading |
326   in front of the configuration path/filename.
327 - New memory command (bconsole) that will print the current Director's
328   memory usage, and an in use buffer dump.
329 - Console name changed from *Console* to -Console- to accomodate Win32
330   filename restrictions.  
331 - Corrected the Win32 ftruncate bug.
332 - Additional version information added to Job reports.
333 - New -8 option for bsmtp to specify UTF-8 encoding type.
334 - bsmtp will no longer add < > to target (from, to, cc) if there
335   is already a < in the target.
336 - Prefer Mounted Volumes extended to mean a volume that is being
337   mounted by another job.
338 - Runscript timing set to same as version 1.38.11
339 - New TLS Allowed CN directive(s) permitted.
340 - New bconsole 'exec' command to run external script/command.
341 - Turn on FreeBSD/OpenBSD code to set EOT model on tape.
342 - Drop from root done before database is opened.
343 - Database user and name can be configured with:
344   --with-db-name=name --with-db-user=user
345 - Turn on wait_for_drive in mtx-changer script.
346 - Rework how bar codes are handled in mtx-changer script.
347   This appears to have been an unreported bug.
348 - Updated nagios plugin supplied by Christian Masopust
349 - Better restricted console ACL checking.
350 - New Client Connect Wait directive in Storage daemon so that
351   users can configure how long SD waits for FD connection.
352 - Bacula will no longer permit pruning of the currently running
353   job (note, if other jobs are running, they may be pruned).
354 - Sockets are no longer restored.
355 - dbcheck works in 300K chunks so will typically run faster.
356 - Include/Exclude lists can now be efficiently handled for quite
357   large sizes -- tens of thousands of entries.
358 - Several memory leaks in migration and database usage were fixed.
359 - New console keyword restoreclient, which specifies the client to
360   which the restore will be sent. The client keyword specifies 
361   the backup client. The restoreclient keyword is optional if it is
362   not specified, the backup client will also be the restore client.
363 - The disk file size is now checked to ensure that it agrees with the
364   catalog value before Bacula will append to the disk (same as tape
365   and DVD).