Commit Graph

49431 Commits

Author SHA1 Message Date
Hubert Plociniczak 920f6d9766 Added more test cases 2008-09-02 17:33:29 +01:00
Matthias Radestock 736e4666b6 some minor tweaks
- list comprehension instead of lists:map
- make clean_logs check the return of file:delete, and return ok itself
- rename non_writable_files to make_files_nonwritable for clarity
2008-09-02 14:47:03 +01:00
Hubert Plociniczak 9831301f8e Removed unused include 2008-09-02 14:30:05 +01:00
Hubert Plociniczak 1fc2c35b58 Better naming for types 2008-09-02 13:01:19 +01:00
Hubert Plociniczak 727f140727 Refactoring of the log tests 2008-09-02 12:14:47 +01:00
Hubert Plociniczak e0055b9479 Added test suite for log rotation.
Initialise log rotation in its own phase.
2008-09-02 11:46:52 +01:00
Matthias Radestock fb9a469f65 cosmetic 2008-09-01 09:51:56 +01:00
Matthias Radestock 6e80d80be5 cosmetic 2008-09-01 09:46:22 +01:00
Matthias Radestock d5f55cc7c7 always log an error when append fails
and don't log the error to the console
2008-09-01 09:42:45 +01:00
Hubert Plociniczak a897c30e00 Use rabbit_log instead of error_logger 2008-08-29 17:32:40 +01:00
Hubert Plociniczak dba87cf640 Typo 2008-08-29 16:56:39 +01:00
Hubert Plociniczak 39b1656ff9 More info about the behaviour of rotate_logs command 2008-08-29 16:35:08 +01:00
Matthias Radestock 5a70e0dcf1 tabs -> spaces 2008-08-29 16:11:24 +01:00
Hubert Plociniczak eca2d86ac2 When appending the old log file fails always try
to create the handler. This can happen when the
file we append to is not writable.
Fixed missing case clause.
2008-08-29 15:57:25 +01:00
Ben Hood b5f6bc33ff Took route deletion out of the amqqueue module, put it in the exchange module 2008-08-29 00:04:17 +01:00
Ben Hood 20c3155be7 Now this is deleting the reverse route as well 2008-08-28 21:47:12 +01:00
Ben Hood eeb028fb86 Adding note to myself 2008-08-28 13:48:05 +01:00
Hubert Plociniczak c183714de2 Create suffix file even when the original
one is empty or doesn't exist.
2008-08-28 11:26:42 +01:00
Tony Garnock-Jones 28f82ebe55 Merge bug17070 into default 2008-08-28 09:39:33 +01:00
Hubert Plociniczak da73cb0d04 Added few missing articles 2008-08-27 16:24:18 +01:00
Ben Hood b3319d4afe Added unique constraint to prevent double routing 2008-08-27 16:07:45 +01:00
Hubert Plociniczak 654ab15a9c Fixed spec definition. Renamed name() to
binary_name() because of the conflict with
definition in kernel/include/file.hrl
2008-08-27 14:49:16 +01:00
Hubert Plociniczak 1c2d08d656 Logrotate script calls init.d script instead
of calling rabbitmq-multi directly
2008-08-27 13:39:22 +01:00
Hubert Plociniczak 7bd0e2c18c Update man pages with rotate_logs_all command 2008-08-27 12:55:07 +01:00
Hubert Plociniczak 0174c25ea4 Added rotate_logs_all command to rabbitmq_multi.
logrotate uses this command to correctly swap
handlers on all nodes.
2008-08-27 12:51:47 +01:00
Hubert Plociniczak ba9602eff1 Merged bug19200 into bug19193 2008-08-27 11:18:53 +01:00
Hubert Plociniczak 1943485645 Reverted BACKUP_EXTENSION variable.
This change belongs to bug 19193
2008-08-27 11:11:26 +01:00
Hubert Plociniczak 3ad36e6f3f Minor style changes 2008-08-27 11:00:20 +01:00
Matthias Radestock 222c1cc208 correct a few defaults, based on Tony's comments
- there is no sensible default value for the reply-code in basic.return
- '*.reject' should default requeue to 'true' so we don't throw away
messages by default
2008-08-27 10:54:55 +01:00
Matthias Radestock c7bf3d841b fewer defaults - based on Tony's feedback
- we consider MRDQ to be a mis-feature, so we shouldn't use defaults
that bring it into play
- it is illegal to bind to the default exchange, so we shouldn't make
that the default
- routing-keys should be specified in most cases, so no point having a
default of ""
- it makes no sense to have an empty queue name in 'deliver', and
'declare-ok'.
2008-08-27 10:22:00 +01:00
Ben Hood 93ccb64881 Saw some handlers so I deleted them 2008-08-27 01:32:17 +01:00
Ben Hood 52dcde4a69 Merged default into 18776 2008-08-27 01:26:41 +01:00
Ben Hood 04cac0a920 All of Qpid's tests now pass 2008-08-27 00:52:02 +01:00
Matthias Radestock ad39f61f59 merge bug17070 into default 2008-08-26 20:50:23 +01:00
Matthias Radestock c5877ca42e merge bug17070 into default 2008-08-26 20:48:28 +01:00
Matthias Radestock 4648f344e5 squash tiny bug 2008-08-26 20:47:54 +01:00
Matthias Radestock 876bff2356 add a few empty-table defaults 2008-08-26 20:29:54 +01:00
Matthias Radestock 793bb869d2 support default empty AMQP tables 2008-08-26 20:29:02 +01:00
Matthias Radestock 952435a1ff more default values
also changed a few defaults to more sensible settings
2008-08-26 19:26:08 +01:00
Hubert Plociniczak 76a64d4afd Moved append operation inside init/1
in handlers' wrappers. Added comments,
fixed various small things.
2008-08-26 18:26:04 +01:00
Karol Skocik 7d62d02e18 fixed bug in emitting erlang binary string 2008-08-26 15:25:16 +01:00
Karol Skocik 196ae05011 added more default values 2008-08-26 15:11:18 +01:00
Hubert Plociniczak 6dc907780c Added wrappers around standard error_logger_file_h
and sasl_report_file_h modules, because they were
not expecting proper arguments in init/1 when
swapping handlers. Renamed reopen_logs to
rotate_logs.
2008-08-26 13:25:55 +01:00
Ben Hood 6c1af42f9e Savepoint 2008-08-25 18:06:35 +01:00
Ben Hood 1e2a4aa861 Cleanup rabbit_exchange a bit 2008-08-25 17:26:37 +01:00
Ben Hood d704b63cb7 Removed Tabs 2008-08-25 11:05:03 +01:00
Ben Hood 8932b72d1b Removed access request, set tickets to 1, more consistent usage of lib_amqp 2008-08-20 12:00:25 +01:00
Hubert Plociniczak f68deec163 Merge bug19200 into bug19193 2008-08-19 15:26:11 +01:00
Hubert Plociniczak d6a2ba61a8 Used swap_handler mechanism provided in
error_logger to correctly reopen_logs.
This creates another copy of the handler
which has to be manually removed. Apparently
the first one in the list is the old one.
Updated man pages.
2008-08-19 14:48:03 +01:00
Hubert Plociniczak 18c7a16507 Added optional argument that specifies the suffix
of the old log file. Using add_handler and
delete_handler because swap_handlers doesn't behave
as expected.
2008-08-18 12:11:58 +01:00