query: fix error reporting for _do_fsck_reset
[MogileFS-Server.git] / CHANGES
blobbd7e38a6213b1e3ca42914ef5e381440558b12ea
1 2013-01-06: Release version 2.66
3    * add a hook to cmd_updateclass (Daniel Frett <daniel.frett@ccci.org>)
5    * support updating the class to the default class which has an id of 0 (Daniel Frett <daniel.frett@ccci.org>)
7    * reaper: validate DB connection before reaping (Eric Wong <normalperson@yhbt.net>)
8      Fixes occasional crash in reaper process.
10    * improve handling of classes which change hash algorithm (Eric Wong <normalperson@yhbt.net>)
12    * fsck: skip non-existent FIDs properly (Eric Wong <normalperson@yhbt.net>)
14    * fsck: use replicate lock when fixing FID (Eric Wong <normalperson@yhbt.net>)
16    * query: allow "0" key on all commands which take keys (Eric Wong <normalperson@yhbt.net>)
18    * prevent reqid mismatches (and queryworker death) (Eric Wong <normalperson@yhbt.net>)
19      Fixes crash case with specific error types.
21    * fix use_dest_devs for rebalance (Pyry Hakulinen <pyry@automattic.com>)
22      Fixes "use_dest_devs" argument during rebalance.
24    * Fix "skip_devcount" during rebalance (Pyry Hakulinen <pyry@automattic.com>)
25      Now actually skips updating devcount column during rebalance.
27 2012-08-13: Release version 2.65
29    * Postgres advisory lock instead of table-based lock (Robin H. Johnson <robbat2@gentoo.org>)
30      Now requires minimum Postgres version of pg8.4.
32    * reaper: switch to Danga::Socket for scheduling (Eric Wong <normalperson@yhbt.net>)
34    * reaper: add queue_size_for_reaper server setting (Eric Wong <normalperson@yhbt.net>)
36    * reaper: add "queue_rate_for_reaper" server setting (Eric Wong <normalperson@yhbt.net>)
37      defaults to 1000, same as previously.
39    * reaper: global lock around DB interaction (Eric Wong <normalperson@yhbt.net>)
40      prevents reapers clobbering each other, causing a reduction in DB writes.
42    * tests: add basic test for reaper (Eric Wong <normalperson@yhbt.net>)
44    * fix tests when /etc/mogilefs/mogstored.conf exists (Eric Wong <normalperson@yhbt.net>)
46    * iostat: increase flexibility of iostat parser (Eric Wong <normalperson@yhbt.net>)
48    * iostat: allow MOG_IOSTAT_CMD env override (Eric Wong <normalperson@yhbt.net>)
50    * When a mogstored is down, die with a more informative message. (Dave Lambley <davel@state51.co.uk>)
52 2012-06-21: Release version 2.64
54    * Delete memcache data when we replicate fids (Pyry Hakulinen <pyry@automattic.com>)
56    * implement "case_sensitive_list_keys" server setting (Eric Wong <normalperson@yhbt.net>)
58    * get_paths: deprioritize devs in "drain" state (Eric Wong <normalperson@yhbt.net>)
60    * make marking a host down cause devices to act as down (Eric Wong <normalperson@yhbt.net>)
62    * monitor skips hosts marked dead or down (Eric Wong <normalperson@yhbt.net>)
64 2012-05-29: Release version 2.63
66    * Critical bugfix for Postgres users introduced by 2.61. New file uploads
67      would fail. (noticed by robin H. Johnson, fixed by Eric Wong)
69 2012-05-19: Release version 2.62
71    * Critical bugfix for a compilation error (dormando, reported by Robin)
73    * Fix for upgrading a Postgres install for checksums (Robin * H. Johnson <robbat2@gentoo.org>)
75 2012-05-18: Release version 2.61
77    * fix issue #57 by Pyry and Eric (dormando <dormando@rydia.net>)
78      (mogadm host status sometimes allowed typos)
80    * avoid unnecessary devcount update in create_close (Eric Wong <normalperson@yhbt.net>)
82    * size arg check from tomas doran (dormando <dormando@rydia.net>)
83      (pass in a "size" argument (in bytes) to create_open and mogilefs will
84       ensure there's enough free space for it)
86    * sqlite: implement locking via tables (Eric Wong <normalperson@yhbt.net>)
88    * worker/query: Add optional callid parameter (Gernot Vormayr <notti@bgcc.at>)
89      (allows command pipelining)
91    * delete: prevent orphan files from replicator race (Eric Wong <normalperson@yhbt.net>)
93    * fsck: prevent running over 100% completion (Eric Wong <normalperson@yhbt.net>)
95    * fsck: cleanup and reduce unnecessary devcount updates (Eric Wong <normalperson@yhbt.net>)
97    * fsck: update devcount, forget devs on unfixable FIDs (Eric Wong <normalperson@yhbt.net>)
99    * fsck: log bad count correctly instead of policy violation (Eric Wong <normalperson@yhbt.net>)
101    * tests: add tests for fsck functionality (Eric Wong <normalperson@yhbt.net>)
103    * monitor: only broadcast reject_bad_md5 on change (Eric Wong <normalperson@yhbt.net>)
105    * worker: delete_domain returns has_classes error (Eric Wong <normalperson@yhbt.net>)
107    * log: enable autoflush for stdout logging (Eric Wong <normalperson@yhbt.net>)
109 2012-03-30: Release version 2.60
111    * Fix fsck status when running for the first time (dormando <dormando@rydia.net>)
113    * Checksum support (Major update!) (Eric Wong <normalperson@yhbt.net>)
114      See doc/checksums.txt for an overview of how the new checksum system
115      works. Also keep an eye on the wiki (http://www.mogilefs.org) for more
116      complete documentation in the coming weeks.
118 2012-02-29: Release version 2.59
120    * don't make SQLite error out on lock calls (dormando <dormando@rydia.net>)
122    * Postgres wasn't honoring a no-wait timeout (dormando <dormando@rydia.net>)
124 2012-02-28: Release version 2.58
126    * reduce UPDATE's to device table (dormando <dormando@rydia.net>)
128    * replicate: retry on short writes to destination (Eric Wong <normalperson@yhbt.net>)
130    * enable TCP keepalives for accepted sockets (Eric Wong <normalperson@yhbt.net>)
132    * Populate memcache even when noverify is missing (Pyry Hakulinen <pyry@automattic.com>)
134    * Remove FID from memcache when it is deleted (Pyry Hakulinen <pyry@automattic.com>)
136    * Unset memc when memcache servers have been removed (Pyry Hakulinen <pyry@automattic.com>)
138    * Filter out illegal memcache servers from memcache_servers (Pyry Hakulinen <pyry@automattic.com>)
140    * Add skip_mkcol setting for servers which do not need it (Pyry Hakulinen <pyry@automattic.com>)
142    * skip_devcount variable that disables devcount updates (Pyry Hakulinen <pyry@automattic.com>)
144    * Back off if master DB is down (dormando <dormando@rydia.net>)
146    * use cached setting for slave list (dormando <dormando@rydia.net>)
148    * fix "fsck never stops" issue (dormando <dormando@rydia.net>)
150 2012-01-31: Release version 2.57
152    * Silence a warning about undefined value introduced by the slave database ordering work (hachi@kuiki.net)
154    * Need a hook to be able to check the slave list during startup (hachi@kuiki.net)
156 2012-01-27: Release version 2.56
158    * Add database connect timeouts (dormando <dormando@rydia.net>)
160    * fix potential hang in JobMaster added in 2.55 (dormando <dormando@rydia.net>)
162    * fix "set_weight" command (Eric Wong <normalperson@yhbt.net>)
164    * sqlite: consider SQLITE_BUSY and SQLITE_LOCKED deadlocks (Eric Wong <normalperson@yhbt.net>)
166    * kill a little more dead fsck/Checker code (dormando <dormando@rydia.net>)
168    * Destroy mogdeps (dormando <dormando@rydia.net>)
170    * improve slave handling code (dormando <dormando@rydia.net>)
172    * don't spew errors if the master goes down (dormando <dormando@rydia.net>)
174    * provide an async server setting cache via monitor worker (dormando <dormando@rydia.net>)
176    * fix return value of commands that clear_cache (Eric Wong <normalperson@yhbt.net>)
178    * make reaper wait less time in test mode (dormando <dormando@rydia.net>)
180    * queryworker: reimplement "clear_caches" command (Eric Wong <normalperson@yhbt.net>)
182    * worker: use timeout with read_from_parent() instead of sleep (Eric Wong <normalperson@yhbt.net>)
184    * Fixed issue where too many devices being active could cause the monitor job
185      to be timed out by the watchdog. (Tomas Doran)
187 2011-11-14: Release version 2.55
189    * fixed sources in replication are now a suggestion (dormando <dormando@rydia.net>)
191    * More stats to help troubleshoot rebalance (dormando <dormando@rydia.net>)
193    * return 1 from condthrow if all is well (dormando <dormando@rydia.net>)
195    * schedule fsck replications for the future. (dormando <dormando@rydia.net>)
197    * stop enforcing a source id on new file upload (dormando <dormando@rydia.net>)
199    * restore new file upload replication priority (dormando <dormando@rydia.net>)
201    * Prevent queue related MySQL query hangs (dormando <dormando@rydia.net>)
203 2011-10-29: Release version 2.54
205    * Issue 36: Further insulate from mysql restarts resetting the fid counter (dormando <dormando@rydia.net>)
207    * Allow default class to be overridden again. (dormando <dormando@rydia.net>)
209    * Fix crash in old delete worker code (Daniel Frett <daniel.frett@ccci.org>)
211    * Fix mb_free() counting empty device as missing (git.user <git.user@gmail.com>)
213    * sqlite: fix mogdbsetup failure on new setups (Eric Wong <normalperson@yhbt.net>)
215    * fid size workaround for lighttpd 1.4.x (dormando <dormando@rydia.net>)
217    * Fix various issues in the new mogilefs server query worker. (Tomas Doran <bobtfish@bobtfish.net>)
219    * Allow chunked PUT's of unlimited size (dormando <dormando@rydia.net>)
221    * Fix listing FIDs.
222    * Fix fsck fixing a file from logging a message which appears to be
223      two commands (due to spurious \n). Also fix debug function to
224      not be able to log messages like this.
226 2011-08-12: Release version 2.53
228    * Fix host status not updating for trackers (important)
230 2011-07-30: Release version 2.52
232    * Plugins (such as FilePaths) might want to be run in info/debug commands (Michael Baehr <mbaehr@plos.org>)
234    * schema version 14; support devices > 16TB (dormando <dormando@rydia.net>)
236    * Make FSCK worker handle dead devices (dormando <dormando@rydia.net>)
238    * Throw out old HTTPFile->size code and use LWP (dormando <dormando@rydia.net>)
240    * Remove forced loading of DBD::mysql (dormando <dormando@rydia.net>)
242    * Don't test write on readonly devices (Akzhan Abdulin <akzhan.abdulin@gmail.com>)
244 2011-06-27: Release version 2.51
246    * Add minor backcompat for ZoneLocal and friends (dormando <dormando@rydia.net>)
248    * Only monitor a device if we should monitor it. (dormando <dormando@rydia.net>)
250 2011-06-15: Release version 2.50
252    * Completely rewire meta object caches. Device/Host/Class/Domain caches are
253      now asynchronously loaded via the Monitor worker. This should drastically
254      reduce the number of small queries issued against the master database.
255      (dormando <dormando@rydia.net>)
257    * Don't run workers until Monitor runs once (dormando <dormando@rydia.net>)
259    * s/TYPE/ENGINE/ for innodb initialization (dormando <dormando@rydia.net>)
261    * Create mogile database explicitly with UTF-8 encoding. (Robin H. Johnson <robbat2@gentoo.org>)
263    * Actually use the MOGTEST_* variables for Postgres testing... (Robin H. Johnson <robbat2@gentoo.org>)
265    * Add support for config file includes for Mogstored under lighttpd (Jason Mills <jmmills@cpan.org>)
267    * Make postgres use new delete worker code (Robin H. Johnson <robbat2@gentoo.org>)
269    * New test env variables: MOGTEST_DBROOT{USER,PASS} for easier test usage. (Robin H. Johnson <robbat2@gentoo.org>)
271    * Document test variables. (Robin H. Johnson <robbat2@gentoo.org>)
272    
273    * Support inclusion of custom lighttpd config. (Jason Mills <jmmills@cpan.org>)
275 2011-01-13: Release version 2.46
277    * Fix job_master crash under postgres (Robin H. Johnson <robbat2@gentoo.org>)
279    * Revert "only dbh->ping if not used in over a minute" (dormando <dormando@rydia.net>)
280       *IMPORTANT FIX* if you're using 2.45, you should upgrade to this.
282    * Example application. (dormando <dormando@rydia.net>)
284    * missing $fidid for source_down error message (dormando <dormando@rydia.net>)
286 2011-01-08: Release version 2.45
288    * file_debug command (dormando <dormando@rydia.net>)
290    * add "file_info" command for fetching metadata. (dormando <dormando@rydia.net>)
292    * don't allow clients to upload to the wrong dev (dormando <dormando@rydia.net>)
294    * validate database handles in the right places (dormando <dormando@rydia.net>)
296    * only dbh->ping if not used in over a minute (dormando <dormando@rydia.net>)
298    * make list_fids work with gaps (dormando <dormando@rydia.net>)
300    * Postgres enqueue_fids_* cleanup (Robin H. Johnson <robbat2@gentoo.org>)
302    * Fixes MogileFS::Store::retry_on_deadlock to honor non-deadlock exceptions (Jason Mills <jmmills@cpan.org>)
304    * Implements tests for MogileFS::Store::retry_on_deadlock (Jason Mills <jmmills@cpan.org>)
306    * Implements tests for MogileFS::Store::ignore_replace (Jason Mills <jmmills@cpan.org>)
308    * job_master was never revalidating its dbh handle. (dormando <dormando@rydia.net>)
310    * add a couple useful stats (dormando <dormando@rydia.net>)
312    * Correct iostat command on darwin (Tomas Doran <bobtfish@bobtfish.net>)
314    * Fix test db creation with SQLite (Tomas Doran <bobtfish@bobtfish.net>)
316    * Fix SQLite so tracker at least starts (Tomas Doran <bobtfish@bobtfish.net>)
318    * additional debian packaging fixes (kad <kad@blegh.net>)
320    * debian packaging updates. (Andre Bohr <andrepascha@googlemail.com>)
322    * Documentation updates. (Pyry Hakulinen <pyh@iki.fi>)
324    * HTTPFile returns -1 if the file is missing from the device. Content-Length: 0 is valid and it should return BLEN not MISS. (Pyry Hakulinen <pyh@iki.fi>)
326    * some further editing of the info file. (dormando <dormando@rydia.net>)
328    * Changed repository metadata (Tomas Doran <bobtfish@bobtfish.net>)
330 2010-11-25: Release version 2.44
332         * Fix issue with rebalance not filtering source devs from the
333           destination list.
335         * Make global rebalance limits work (Martijn Lina)
337 2010-10-10: Release version 2.43
339         * Make over-replication fixable again. (sigh)
341         * Fix old bug in MultipleHosts() which would not let you drop from
342           mindev > 1 down to 1.
344 2010-10-08: Release version 2.42
346         * Make FSCK run again (Andre Pascha)
348         * Fix Postgres schema upgrade issue (hopefully)
350 2010-10-06: Release version 2.41
352         * One line change that to fix uprading to 2.40
354 2010-09-28: Release version 2.40
356         * Optimize worker sleep patterns and worker/parent communications.
358         * New rebalance/drain code. See the docs/wiki for how to use.
359           ***NOTE*** Old drain/rebalance code is disabled. Setting a device
360           into drain mode no longer does what you think it would.
361           http://code.google.com/p/mogilefs/wiki/Rebalance
363 2010-08-13: Release version 2.37
365         * Make HTTP DELETE's work reliably
367         * Fix obscure crashes related to "unknown devices"
369         * make it slightly harder to crash trackers with bad slave DB settings
370           (Tomas Doran)
372         * make tracker -> storage node connection timeout configurable.
373           was hardcoded to 2 seconds. (Tomas Doran)
375         * update_class command (Tomas Doran)
377 2010-04-16: Release version 2.36
379         * Bump required version of perlbal for mogstored.
381         * Critical bug fix for creating files.
382           If you have many dead devices, poor filter ordering could cause
383           MogileFS to not consider any alive devices for new files.
385         * Actually default to BIGINT under MySQL...
386           Bug would always initialize new setups to INT.
388 2010-04-02: Release version 2.35
390         * Nuke ancient mogilefs 1.1 replication code.
391           no_unreachable_tracking and old_repl_compat variables are gone.
392           (dormando)
394         * Support modifying class replpolicy strings (requires new
395           mogadm/MogileFS::Client) (dormando)
397         * Print fidid and devid on errors when fsck fails to fix something
398           (t0m)
400         * Allow list_keys to work with a prefix of '0' (dormando)
402         * Print timestamp when logging to STDOUT (t0m)
404         * Sort by free space and weight fewer devices to avoid CPU churn
405           (dormando)
407         * Fix deadlock-related crash bugs in db queue fetch routines.
409         * Fix dependencies in MogileFS::Server (t0m)
411         * Fix bug in list_keys command that prevented searches with a
412           '0' prefix. (Ask Bjørn Hansen)
414 2009-12-05: Release version 2.34
416         * Fix bug in new copycount reduction code. If it was more than off by
417           one it wouldn't reduce the count properly.
419         * Improve accept loop. A reasonably busy tracker could start dropping
420           new client connections too easily.
422 2009-11-24: Release version 2.33
424         * 'mogadm fsck status' will now be more accurate.
426         * Support non-GNU df (paul armstrong)
428         * Remove old !replication command. It's in `mogadm stats` and tends
429           to kill the parent process.
431         * Force refreshing internal monitoring status every 5 minutes. Help
432           work around a potential bug where state changes are missed.
434         * Use new delete queue for tempfile culling
436         * Calculate free space from available space, not total space
437           (todd lipcon)
439         * FSCK code has new tunables to control how aggressive it runs:
440           queue_size_for_fsck (how many fids to keep in file_to_queue table)
441           queue_rate_for_fsck (how many fids to put into the table per second)
442           the generic internal queue is now tunable:
443           internal_queue_limit (how many fids to pull out of a queue table at
444               once. old default was 500).
445           All are tunable by 'mogadm settings set'
446           (dormando)
448         * Replication will now attempt to handle over replication situations.
449           FSCK will catch over replication as a policy violation, and
450           replicate will attempt to fix it. (dormando)
451           (rarely it might need multiple fscks)
453         * Since FIDSizes is no longer used, remove it and remove gearman
454           dependency. (dormando)
456         * FSCK no longer rabidly fills the queue table. (dormando)
458         * Make storage code resilient to rare deadlocks (dormando)
460         * Add 'max_handles' config option to restart a DB connection if there
461           are too many handles to it (victori).
463 2009-10-18: Release version 2.32
465         * No changes... MFS is hard to release due to mogdeps :/
467 2009-10-18: Release version 2.31
469         * Fix create_close race condition. (pipegeek)
471         * Fix bug in reporting of available disk space.
473         * Many minor bug/documentation fixes.
475         * MySQL and Postgres installs now use BIGINT's for fid/length by
476           default. (dormando, robbat2)
478         * Accept 405 responses to MKCOL from the WebDAV server since it often
479           just means that the directory already exists. (Ask Bjørn Hansen)
481         * Fix showing domain and class in mogadm output when there's only the
482           default class in the domain (Mark Imbriaco)
484         * mogstored: pidfile support
486         * New FSCK work and error for BCNT for bad devcount values (they would
487           not otherwise be caught unless the triggered another fix).
489 2009-01-12: Release version 2.30
491         * fsck will now fix broken 'devcount' cols.
493         * schema version bump to 12, and new delete worker code to use the new
494           queue system. delete should be faster and more scalable.
496         * add server setting queue_rate_for_fsck to allow rate limiting how
497           fast the new distributed fsck creates jobs. the original default of
498           10k could utterly defeat wimpy databases.
500         * Support 0 byte files.
502         * Fix a bug where rebalance would accidentally delete copies of a fid.
504         * Create new internal queue management system, with new job
505           'JobMaster'. This greatly reduces database load and increases
506           throughput for workers using the new system.
508         * Add 'no_unreachable_tracking' config. Disables more of the old
509           replication code. Use this if you have no 1.x trackers.
511         * Add hook for alternate replication sources. Obscure, but can be
512           nice.
514         * Add replicate_order_final_choices hook, so multidc replication may
515           pull from the local network if one copy already exists.
517         * Fix subtle bugs in process management.
519         * Allow overriding of default classes.
521 2008-08-18: Release version 2.20
523         * One more time, and hopefully never again. No changes. META.yml
524           fixes.
526 2008-08-18: Release version 2.19
528         * No changes except for META.yml fixes.
529           _should_ be able to upload releases without owning half of CPAN.
531 2008-08-16: Release version 2.18
533         * Add repl_use_get_port option (Brian Lynch)
535         * Remove tempfile data and rows on create_close (Chaos Wang)
537         * Don't delete files accidentally during tempfile table cleanup
539         * Specify username to run the mogstored daemon (Jonathan Share)
541         * Many spelling errors corrected.
543         * PostGres locking routines did not include the hostname for the lock
544           release.
546         * RFC 2518 says we "should" use a trailing slash when calling
547           MKCOL. Some servers (nginx) appears to require it. (Spotted by
548           Timu Eren).
550         * Add server option 'rebalance_ignore_missing' in mogilefsd config
551           that allows the rebalance to ignore files that are already missing
552           when it tries to delete them.
554         * Fix MultipleHosts replication policy to no longer return desperate
555           devices after no longer being desperate, instead returning a state
556           which will queue for retries in the future till it can be truly
557           happy. This prevents files from being replicated to all writable
558           devs when there are two few writable hosts to satisfy the policy.
560         * Add --chmod-mountpoints option to mogautomount, in an attempt to
561           prevent mogstored machines from accidentally writing to their under-
562           lying filesystem.
564         * New optional argument 'startpos' to fsck_reset.
566         * Use correct per-Store port, defaulting to UNIX sockets on localhost.
568         * add --dbport option to mogdbsetup (Ask Bjoern Hansen)
570         * Fix state_change() bug that could make file_to_delete_later
571           grow unnecessarily (Radu Greab)
573         * Add Mogstored::HTTPServer::None to allow using mogstored
574           with unmanaged backend DAV servers.
576         * Add experimental cmd_edit_file. Client requires DAV MOVE and
577           partial PUT on the store to use it.
579         * make mogstored and mogilefsd use the now-bundled dependency
580           Perl modules as a last resort, unless MOGILE_NO_BUILTIN_DEPS
581           environment variable is true.  this makes it easier for people
582           to use mogilefs, without dependency hell.  distros/packagers
583           are expected to ignore (or scoff at) this "feature".  but
584           easier for people working from tarball/svn releases.  bundled
585           dependencies will be updated over time, as needed.
587         * Bring the SQLite store up to date
589         * Increase the timeouts in the test suite
591         * In the test suite, also search for mogadm in /usr/local/bin/ and
592           /usr/local/sbin (spotted by Dean Wilson)
594         * SCHEMA VERSION 10:  'replpolicy' column on 'class' table.
595           it's safe to --ignore-schema-version and run this mogilefsd
596           against an older schema.  new column enables per-class
597           pluggable replication policies.  it was always
598           abstract, but not easy to plugin your own alternatives.
599           see doc/pluggable-replication-policies.txt
601         * add start of a MogileFS::ReplicationPolicy::Union implementation
603         * fix crash in queryworker's create_open command, when a device
604           has its directory made on a mogile storage node (the host of
605           which is being monitored by the 'monitor' process), but the
606           device isn't registered in the devices table yet.
608 2007-07-03: Release version 2.17
610         * get_paths command now takes a pathcount option, defaulting to
611           2, instead of having a hardcoded constant of 2. This allows
612           requesting more than 2 paths to a file.
614         * make fsck log over-replicated files as policy violations.  it
615           won't delete over-replicated files, though, just log
617         * Document how to test MogileFS under doc/testing.txt. You really
618           should read this if you want to use MogileFS to store your data.
620         * Add a safety check to ensure that Postgresql-8.2 or newer is used.
622         * Update mogdbsetup usage, and ensure it chooses the correct admin
623           username automatically.
625         * Document the --type option to mogdbsetup.
627         * Introduce the PostGres Store implementation. The locking system might
628           still have issues, beware of stale locks! Initial prototype by Radu
629           Greab <rg@yx.ro>, and developed heavily by Robin H. Johnson
630           <robbat2@gentoo.org>.
632         * start of support to make mogstored wrap Apache + web_dav
634         * Remove duplicated [fsck] in log output of Fsck worker.
636         * Handle HiRes gettimeofday correctly to get useful results. Arrays are
637           important. This gives us correct timing output.
639         * Handle input to log() correctly. Based on the implementation of
640           Sys::Syslog::syslog(), produces no ugly warnings, and makes sure that
641           printf stuff works nicely.
643         * The unix_timestamp function belongs to the Store, not other classes.
644           Need to add test cases for process_deletes and stats.
646         * Using NULL during an INSERT for the AUTO_INCREMENT column does not
647           work very well outside of MySQL. Pass the correct number of arguments
648           to the INSERT instead.
650         * Clean up all raw usages of UNIX_TIMESTAMP() function, in preparation
651           for database independence. If you need the unix timestamp, include the output
652           of $self->unix_timestamp directly into your query.
654         * Alter $0 so that the scripts show up as '$SCRIPTNAME' in the process
655           listing instead of '/usr/bin/perl $SCRIPTNAME'. This makes init.d
656           scripts easier to manage.
658         * make mogstored's lighttpd config use mod_status for "/", so
659           mogadm doesn't think it's dead when it previously saw a 404
660           (Justin Huff <jjhuff@mspin.net>)
662         * remove Linux::AIO support, now that Perlbal has removed it as well,
663           and because Linux::AIO support (when Perlbal then chooses
664           IO::AIO) was hanging mogstored on shutdown.  so also add a
665           mogstored shutdown test (after a full daemonization of it)
667         * make Mgd::validate_dbh() re-check/ping slave dbhs as well.
668           (problem mentioned by Steven Shou <steven.shou@verizon.net>)
670         * support drive identifiers above sdz (Arjan <info@bouncetek.com>)
672         * make mogstored's iostat child process properly shutdown,
673           even when iostat binary isn't installed.  (previously
674           it was stuck in a loop every 10 seconds, hoping for
675           iostat to be installed, but never respecting parent
676           process' death)
678         * Change delete worker to use new DeviceStates interface.
680         * Fix get_paths to honor new device state of 'drain' via new
681           DeviceStates interface.
683         * use significantly less CPU when re-broadcasting around
684           iostat device utilization% to child processes.  (future:
685           don't rebroadcast at all and use shared memory)
687         * slightly faster fsck (do less syscalls)
689         * efficiency: don't broadcast dup state information to children
690           (track in parent what children know already)
692         * if using Gearman::Server >= 1.09, respawn the fidsizes
693           worker if it dies.
695 2007-05-09: Release version 2.16
697         * BUG FIX from 2.15:  partially written but never closed
698           tempfiles weren't being cleaned up properly.
700         * start to work better when compiled as a stand-alone
701           PAR all-in-one script/archive
703 2007-05-07: Release version 2.15 ("fsck/drain/rebalance")
705         * minor bug fixes and enhancements for MultipleHosts replication
706           policy.  bunch of corner cases now checked with new tests.
707           now easy to write more replication policy tests in future.
709         * replication policies can now return "desperate" requests,
710           signalling that a replication reassessment should be
711           enqueued for the future, to see if things could be improved.
712           (that part's not currently implemented, but the real feature
713            and motivation is that the rebalancer now won't delete a
714            DevFID if it results in a desperate move, only an ideal move. )
716         * replication policies now can optionally return a new return
717           value of the (new) type MogileFS::ReplicationRequest, which
718           has pretty accessor names, can suggest multiple places,
719           can indicate non-ideal emergency replication decisions.
720           old plugins' return values will be transparently upgraded
721           to the equivalent new return value objects.
723         * adding new device state: "drain".  it's a hybrid of "dead"
724           (in that files are migrated off it) and "readonly", it that
725           it still serves traffic... it just doesn't get new files.
726           this also introduces the new object-oriented DeviceState class,
727           and device_state($name) utility function to get the DeviceState
728           singleton by name
730         * internal code cleanup.  notably, kill the old & nasty legacy
731           'find_deviceid' function which was ridiculously long and hairy.
732           the two callers are now more readable with sorts/greps/etc.
734         * make mogstored's devN/usage writing process (DiskUsage) be less
735           racy with the mogilefsd monitoring code... don't open file for
736           write... open read/write, then in one write system call, write
737           the entire file, with newline padding at end to cover old data,
738           then truncate it if necessary.  should remove harmless (but scary)
739           error messages previously reported by the mogilefsd monitor
740           about zero-length usage files.
742         * new protocol commands to list/set (certain) server settings,
743           with value sanity checking (see MogileFS::Config for which
744           are settable, and with what values).  needed for "enable_rebalance".
745           was partially enabled before for slave settings.  also needed
746           for memcached support before, which was never possible to
747           set with mogadm, only with db tweaking.
749         * make mogilefsd fsck use new mogstored fid_sizes command, to
750           do bulk stats.  speeds up fscks a ton.
752         * be robust against system clocks that go backwards between
753           gettimeofday calls:
754           http://lists.danga.com/pipermail/mogilefs/2007-April/000897.html
756         * Put gearman server in mogstored process, add worker
757           'mogstored-fidsizes' which runs as subprocess of mogstored. Add
758           side-channel command 'fid_sizes' which allows us to quickly enumerate
759           and get sizes for files across entire devices on a storage node.
761         * remove all code like $state eq "readonly", $state=~ /^dead|down$/
762           and instead convert it into specific questions on policy/traits
763           of given state, like $dev->should_put_new_files_on, or
764           $dev->should_drain_files_off.  see MogileFS::DeviceState,
765           objects of which are accessed via $dev->dstate, or new
766           MogileFS::Util device_state($name) wrapper.
768         * start of rebalance support.  (where replication workers, in their
769           idle time, can rearrange files to even out disk space and/or IO
770           activity on storage nodes... policy isn't hard-coded, and is
771           in fact currently random)
773         * lighttpd support in both mogilefsd and mogstored.  passes test
774           suite with environment MOGSTORED_SERVER_TYPE=lighttpd set now.
776         * abstract out the HTTP server support in mogstored, so
777           mogstored isn't just a perlbal wrapper, but an anything
778           wrapper. (in particular, lighttpd and apache)  mogstored still
779           exists for all its other misc admin/monitoring functions,
780           but can then manage/configure apache/lighttpd child process(es).
781           so far they're just stubbed out.
783         * split mogstored into separate files per class, rather than one
784           large script.
786 2007-04-24: Release version 2.10
788         * bug from earlier refactoring:  changing some 'next' to 'return'
789           in MogileFS::Device's create_directory method.  (thanks to
790           Justin Huff <jjhuff@mspin.net>)
792         * make sure mogdbsetup doesn't upgrade an existing table (with
793           potentially lot of data) from MyISAM to InnoDB.  just warn.
794           only new tables should become InnoDB on creation.  also,
795           detect InnoDB even on old MySQL 4.0.x, not just 4.1/5.0.
797         * make fsck faster by reducing number of db queries (both
798           reads and writes), though more unrelated fastness remains to
799           be done.
801         * make fsck_status faster (keep summary stats of evcode counts,
802           rather than doing a full GROUP BY query all the time)
804 2007-04-20: Release version 2.09
806         * filesystem checker (Fsck worker).  off by default, unless
807           it's enabled via protocol.  Control/monitor it with mogadm
808           in MogileFS-Utils 2.08, which needs MogileFS::Client 1.06.
810         * replication speed-up on configurations with only 1 host.
811           (replication would randomly have no suggestions before, when
812            there was only 1 target host, so replication would be rescheduled
813            until the future, when random returned a different device on
814            that host)
816 2007-04-17: Release version 2.08
818         * (no runtime-visible changes from 2.07)
820         * mogilefsd: remove incomplete "Checker" worker, replace with
821           incomplete "Fsck" worker.
823         * test cleanup/robustness improvements.  properly skips testing when
824           testing deps not found.  but searches harder for them now, too.
825           tests run under "make disttest".
827         * packaging cleanups, released using ShipIt.
830 2007-03/04:
832         * mogilefsd: Split Plugin::MetaData and Plugin::FilePaths into their own distributions.
834         * mogilefsd: Fix mogdbsetup to not ask empty questions.
836         * mogilefsd: command line/config file support for listening on specific IPs, also
837            support for listening on multiple IPs/ports
839 2007-03-19:
840         * mogstored: use XS HTTPHeaders by default, unless disabled with environment variable
842         * mogilefsd: memcache support for get_paths (see doc/memcache-support.txt)
844 2007-03-16:
845         * mogstored: make child processes be exec'ed (as as their own scripts, not inheriting
846           Perlbal, Linux::AIO/IO::AIO, etc baggage).  so they don't own listening
847           sockets, pipes to child workers, signal handlers, etc.  just a lot
848           cleaner now, and SIGTERM, SIGINT properly shut everything down now,
849           both in foreground and as daemon
851 2007-03-15:
852         * mogstored: this changelog is totally neglected.  :/  see svn log.
854         * mogstored: make perlbal's "shutdown graceful" work, by not doing
855           sidechannel accepting ourselves (which never hung up),
856           but subclass Perlbal's TCPListener class, which does it
857           all correctly.
859 2006-12/2007-01:  (2.00_05)
860         * mogilefsd: everything converted to OO API internally.  old internal APIs removed.
862         * mogilefsd: be database-agnostic.  Currently only works with MySQL (and
863            SQLite as a joke/demo), but Pg/Oracle coming in the future.
865         * mogilefsd: built-in I/O activity monitoring between mogstored/mogilefsd Monitor
866            now.
868         * mogilefsd: much improved internal communication between worker processes
870         * mogilefsd: start of better docs
872 2006-12-28
873         * mogilefsd: pidfile support (Radu Greab <radu@yx.ro>)
875 2006-12-28
876 2006-12-27
877         * mogilefsd: remove all old internal APIs, update everything to use new OO APIs,
878            expanding OO APIs where necessary (lots of places).  so much more
879            beautifully hackable now.
881         * mogstored: kill child processes (diskusage and iostat) when being killed.
883 2006-11-05:
884         * mogstored: set aio threads after daemonizing.  needed by Linux::AIO/IO::AIO, it seems?
886 2006-09-29
887         * mogilefsd: remove non-HTTP mode ("NFS mode") from the server
889 2006-09-23:
890         * mogstored: refuse to start up with missing Linux::AIO/IO::AIO or broken Linux::AIO
892 2006-09-04:
893         * mogstored: set aio_threads as a function of number of disks
895 2006-07 -> 2006-09
896         * mogilefsd: major refactoring/cleanup/new features ("MogileFS 2.0")
898 2006-03-01 (Brad)
899         * mogilefsd: fix dataloss bug when the 'tempfile' table is InnoDB and the
900            server is restarted while the tempfile table is empty.
902 2006-02-28 (Jr)
903         * mogilefsd: allow create_open to take optional fid parameter which enables you to
904         dictate which fid to use internally and to not rely on MySQL's auto_increment
906 2006-01-10 (Brad)
907         * mogilefsd: make Mgd::get_device_summary() always return all devices, regardless
908         of status.
910         * mogilefsd: update all callers of get_device_summary to filter on the device
911         status, if they need to. (provided more clarity into what
912         callers' intentions were...)
914         * mogilefsd: add a new device state 'readonly' which means: it can be read from
915         from clients, it can be replicated from, but no new files can go
916         on it or be replicated onto it. and it also reaps, meaning the
917         device is fucked. the filesystem probably ate itself.
919 2005-08-10:
920         * mogstored: write out usage files for devices, even if they're not on their own mount point.
921           also explicitly include the '-k' flag to df, so we know they're KiB.
923 2005-08-07:
924         * mogstored: new config syntax and command line options