Commit Graph

713 Commits

Author SHA1 Message Date
Timothy Bish 3051882f92 https://issues.apache.org/jira/browse/AMQ-5606
Switch to the new QPid JMS client v0.1.0
2015-03-23 12:15:49 -04:00
Dejan Bosanac 20832f1f1b https://issues.apache.org/jira/browse/AMQ-5674 - initialRedeliveryDelay not respected 2015-03-18 17:07:59 +01:00
Dejan Bosanac 3b39d2cc2a https://issues.apache.org/jira/browse/AMQ-5644 - authorization map for wildcard subscriptions 2015-03-10 11:24:27 +01:00
artnaseef dd35e357e3 Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/activemq 2015-03-06 10:35:52 -07:00
Dejan Bosanac 24c2215f4e Revert "https://issues.apache.org/jira/browse/AMQ-5644 - authorization map for wildcard subscriptions"
This reverts commit 7777744dc2.
2015-03-06 18:06:17 +01:00
artnaseef 6efafbd7f1 Commit applied with thanks to Jeff Genender.
This closes #66
2015-03-06 10:01:33 -07:00
Jeff Genender 939c8a14df AMQ-5636 - Update old openjsb tests to more current DBCP2 XA Camel tests 2015-03-06 09:51:26 -07:00
Dejan Bosanac 7777744dc2 https://issues.apache.org/jira/browse/AMQ-5644 - authorization map for wildcard subscriptions 2015-03-06 15:35:20 +01:00
gtully ad39fc00fb make the browse more deterministic - awaiting result of acks 2015-03-06 13:13:17 +00:00
Jeff Genender 58ed95d7c8 AMQ-5636 - Update DBCP to a much more recent version 2015-03-05 08:36:26 -07:00
gtully ab28b771e3 https://issues.apache.org/jira/browse/AMQ-5640 - fix by ensuring parent stat is updated on dest init, thanks for the nice test Torsten 2015-03-05 14:46:59 +00:00
gtully 42b606da9d seems 3 or 4 journal files are needed - on occasion test fails with 4 2015-03-05 14:29:20 +00:00
gtully 113a3815b0 remove deprecated usage of junit framework 2015-03-05 13:27:40 +00:00
Timothy Bish 00e4b25357 https://issues.apache.org/jira/browse/AMQ-5621
Test cleanup
2015-03-04 18:40:31 -05:00
Timothy Bish 6380bf3762 https://issues.apache.org/jira/browse/PROTON-833
Clean up a couple more tests.
2015-03-04 18:16:59 -05:00
gtully 11afd5f0bc https://issues.apache.org/jira/browse/AMQ-5639 - implement and test - relaxing the restriction on advisories to those that are relevant to the bridge 2015-03-04 21:33:00 +00:00
Timothy Bish 7fdfdeba79 https://issues.apache.org/jira/browse/AMQ-5621
Turn off JMX, switch to JUnit 4 style test with timeout, actually
shutdown the running broker and clean up in tear down method.
2015-03-04 10:44:03 -05:00
Timothy Bish 257a4fa416 https://issues.apache.org/jira/browse/AMQ-5621
Clean up test, don't start JMX connector as it is not needed, add
timeout.
2015-03-03 19:16:28 -05:00
Timothy Bish 4b346360be https://issues.apache.org/jira/browse/AMQ-5628
Fix getDouble to use Double.valueOf instead of Float.valueOf for
conversions.
2015-03-03 16:28:28 -05:00
Timothy Bish 6e038d5ffd https://issues.apache.org/jira/browse/AMQ-5632
Return null from getBytes if no value present.
2015-03-03 16:17:40 -05:00
gtully 741e3aad3e https://issues.apache.org/jira/browse/AMQ-5630 - add rejectDurableConsumers boolen attribute - when true, requests to create durable subscriptions will fail with a JMSException - not allowed 2015-03-03 13:30:10 +00:00
Dejan Bosanac 4f57744934 https://issues.apache.org/jira/browse/AMQ-5594 - mqtt and virtual topic subs; more refined removing of destinations, as we don't want to remove all descendant destination in a wildcard case 2015-03-02 14:40:07 +01:00
Timothy Bish 709b64b3d2 https://issues.apache.org/jira/browse/AMQ-5621
Remove need for hard sleep
2015-02-27 16:22:26 -05:00
Timothy Bish 0683d8be94 https://issues.apache.org/jira/browse/AMQ-5621
This test doesn't need to bind to the RMI connector to create Queue via
the JMX MBean.
2015-02-27 15:39:03 -05:00
Timothy Bish 84c1419c3d https://issues.apache.org/jira/browse/AMQ-5621
Add the ability to toggle the default value of the ManagementContext
createConnector variable and set it to false for the surefire runs of
the unit tests, this should resolve failures of tests for no other
reason than a previous test failed to shutdown its broker.  Also speeds
up tests as they don't need to create this resource in order to use the
MBeans.
2015-02-27 14:59:31 -05:00
Timothy Bish 5667e4ddcc https://issues.apache.org/jira/browse/AMQ-5621
Disable the JMX bits on some additional tests that don't use it.
2015-02-26 19:26:41 -05:00
Timothy Bish 79568f16cc https://issues.apache.org/jira/browse/AMQ-5621
Cleanup a couple to show what can be done to reduce test time.
2015-02-26 14:27:34 -05:00
Timothy Bish f00d2fbde4 Remove the AMQ option from the PersistenceAdapterChose enum as that one
is long gone.
2015-02-26 10:40:18 -05:00
gtully 0142c4dc89 https://issues.apache.org/jira/browse/AMQ-5614 - additional expiration attribute on dead letter strategy and tests 2015-02-25 14:32:43 +00:00
gtully be919fbc94 https://issues.apache.org/jira/browse/AMQ-4483 - rework to use destination option to indicate dlq, dlq strategy is typically not in place for dlq dests, option is set when a dlq is first used via region broker sendTodlq, fix and tests 2015-02-25 14:32:43 +00:00
Timothy Bish 02dc6ce982 Clean up some tests, reduce resources used and reduce runtime, convert
to JUnit 4 when possible and add timeouts.
2015-02-23 19:53:14 -05:00
Timothy Bish 05b401993b Clean up the test, use more sensible waits and don't create JMX
connectors since not needed, reduces runtime by one third.
2015-02-23 17:18:12 -05:00
gtully 85b9c81a3f https://issues.apache.org/jira/browse/AMQ-5229 - implement ability to pause/resume dispatch of message to all consumers of a queue 2015-02-23 21:41:33 +00:00
Robert Gemmell 1406d40ac3 AMQ-5608: dont NPE during authentication attempt if no users were defined for the SimpleAuthenticationPlugin
https://issues.apache.org/jira/browse/AMQ-5608
2015-02-23 17:42:17 +00:00
Timothy Bish 8858dc294c https://issues.apache.org/jira/browse/AMQ-5596
Remove the deprecated JMS Streams code.
2015-02-18 15:47:40 -05:00
Dejan Bosanac 05c3112402 https://issues.apache.org/jira/browse/AMQ-5594 - virtual topics and wildcards 2015-02-18 18:29:20 +01:00
Timothy Bish 141ad4cb8f Reduce test time by disabling the unneeded broker features. 2015-02-17 16:41:02 -05:00
Dejan Bosanac 1cab713864 https://issues.apache.org/jira/browse/AMQ-5585 - move messages on memory limit 2015-02-13 15:16:52 +01:00
gtully b60bfbbeb4 Revert "rework https://issues.apache.org/jira/browse/AMQ-3684 and https://issues.apache.org/jira/browse/AMQ-4532 to avoid intermittent hangs, processing shutdown wile shutdown is in progress - AMQ1936Test and AMQ2021Test - using just TransportDisposedIOException to propagate exception response and start shutdown process and ignoring broker side for logging"
This reverts commit 8cf98a070f.

seems there are a bunch of network tests that don't conform with the new approach - back to the drawing board
2015-02-12 18:00:58 +00:00
gtully 25376afac1 reduce test duration, relax derbydb durability - AMQ5266SingleDestTest 2015-02-11 15:27:45 +00:00
gtully 95f7262cb1 https://issues.apache.org/jira/browse/AMQ-5578 - implement for kahadb 2015-02-11 13:37:32 +00:00
gtully 8cf98a070f rework https://issues.apache.org/jira/browse/AMQ-3684 and https://issues.apache.org/jira/browse/AMQ-4532 to avoid intermittent hangs, processing shutdown wile shutdown is in progress - AMQ1936Test and AMQ2021Test - using just TransportDisposedIOException to propagate exception response and start shutdown process and ignoring broker side for logging 2015-02-11 13:37:32 +00:00
gtully c6837acefe tidy up some jdbc directory usage - move into target 2015-02-11 13:37:32 +00:00
gtully 3155c625c6 https://issues.apache.org/jira/browse/AMQ-5567 - fix and test - issue was eager dispatch with concurrent sends, recovery and outcome delivery now assign a new sequence id to message additions which sorts sequence order in the xa case 2015-02-06 12:56:29 +00:00
Dejan Bosanac 9f0ab46e29 https://issues.apache.org/jira/browse/AMQ-5558 - add producer/consumer commands 2015-02-05 13:58:31 +01:00
gtully b0a1bd833c https://issues.apache.org/jira/browse/AMQ-5542 fix (via revert below) and test case applied with thanks.
Revert "resolve https://issues.apache.org/activemq/browse/AMQ-2736, logic issue in code that keeps data files with acks around pending message file gc. thanks jgenender - test case to follow"

This reverts commit dd68c61e65.

resolves: https://issues.apache.org/jira/browse/AMQ-5542 and applies test case that nicely demonstrates the defect, thanks
2015-02-02 11:34:06 +00:00
gtully ae595c95b1 [maven-release-plugin] prepare for next development iteration 2015-01-30 12:46:19 +00:00
gtully 4ba1a1689f [maven-release-plugin] prepare release activemq-5.11.0 2015-01-30 12:46:08 +00:00
gtully dc25f2a8f9 https://issues.apache.org/jira/browse/AMQ-5541 - support preemptive redelivery for non persistent case, fix and test 2015-01-27 16:43:35 +00:00
gtully bf5a2997c7 [maven-release-plugin] prepare for next development iteration 2015-01-26 16:48:46 +00:00
gtully eec2955bde [maven-release-plugin] prepare release activemq-5.11.0 2015-01-26 16:48:37 +00:00
gtully 64fa706d54 Revert "[maven-release-plugin] prepare release activemq-5.11.0"
This reverts commit f47fbe4b89.
2015-01-26 16:39:35 +00:00
gtully f47fbe4b89 [maven-release-plugin] prepare release activemq-5.11.0 2015-01-26 16:17:43 +00:00
gtully a620b403f4 fix regression - warn level on reset to available limits 2015-01-26 12:19:48 +00:00
gtully 6cebd2c79e https://issues.apache.org/jira/browse/AMQ-5513 - interaction with - https://issues.apache.org/jira/browse/AMQ-5068 - need to ensure broker cached messages state reflects delivery attempt - RedeliveryRestartWithExceptionTest regression 2015-01-26 12:13:55 +00:00
gtully a2c5c22ec5 https://issues.apache.org/jira/browse/AMQ-5513 - additional test for reconnect/rebalance case - indicate the absense of delivery information to the destination 2015-01-23 15:23:35 +00:00
gtully f38cb588d3 allow multicast to work via perfer ip4 and more sensible delays 2015-01-23 13:08:03 +00:00
gtully c9c1f587ad prevent hang if os muiticast is disabled 2015-01-23 12:02:34 +00:00
gtully 35115fece7 use a bytes message, I think default encoding may the the root cause of variation of message size and limit checks on ci boxes 2015-01-22 14:13:32 +00:00
gtully 216626569a this test can take more than 2mins in ci env, adding some more diagnostics and giving it more time 2015-01-22 14:13:32 +00:00
gtully c28d520727 resolve intermittent failure verifying connector restart 2015-01-22 14:13:32 +00:00
gtully 2a62b74232 resolve intermiittent failures related to broker start and async mbean registration 2015-01-22 14:13:32 +00:00
gtully 4648dbee41 resolve intermittent faiure - make deterministic intervetion and assertions 2015-01-22 14:13:32 +00:00
gtully bedb207883 reduce test duration, mem limits still reached as before and temp store utilised 2015-01-21 22:35:49 +00:00
gtully 5b7213eb82 add jira ref - commit message had incorrect url 2015-01-14 12:25:40 +00:00
gtully cf62d58ae7 https://issues.apache.org/jira/browse/AMQ-5515 - tidy up jetty deps - fix jetty maven coords 2015-01-12 22:58:07 +00:00
gtully 8dbb48a23f https://issues.apache.org/jira/browse/AMQ-4107 - apply patch - resolved intermittent failure of TwoMulticastDiscoveryBrokerTopicSendReceiveTest 2015-01-12 12:00:42 +00:00
gtully dbb1d8b83d https://issues.apache.org/jira/browse/AMQ-5513 - have lastDeliveredSequence -1 indicate nothing was received, respect this value in queue sub remove and durable sub deactivate. 0 still constitutes no info - so old clients see same behaviour as before 2015-01-09 13:30:59 +00:00
gtully 383c27e245 add some more diagnostic logging to test 2015-01-09 13:30:59 +00:00
Hadrian Zbarcea aedcae139b Revert "[maven-release-plugin] prepare release activemq-5.11.0"
This reverts commit 48b0cf396c.
2015-01-05 12:25:58 -05:00
Hadrian Zbarcea 89995f4723 Revert "[maven-release-plugin] prepare for next development iteration"
This reverts commit 7b285c6f52.
2015-01-05 12:25:47 -05:00
Dejan Bosanac 7b285c6f52 [maven-release-plugin] prepare for next development iteration 2014-12-29 12:44:32 +01:00
Dejan Bosanac 48b0cf396c [maven-release-plugin] prepare release activemq-5.11.0 2014-12-29 12:44:20 +01:00
Dejan Bosanac 9f53e2bcae adding missing licences 2014-12-29 12:25:04 +01:00
Dejan Bosanac 5c199c3d9f improve test behaviour on slow ci boxes 2014-12-29 11:12:52 +01:00
Dejan Bosanac c646fac75a increase test timeouts 2014-12-26 11:50:16 +01:00
gtully e16815ad3b https://issues.apache.org/jira/browse/AMQ-5174 - apply patch from paulGale with thanks replace jdbc specific lease io handler with generic lease io handler - closesThis closes #53 2014-12-22 12:37:43 +00:00
Dejan Bosanac d91bdc4cff fix test failure on slow ci boxes 2014-12-22 12:03:53 +01:00
Dejan Bosanac 9927824c27 give test some more time 2014-12-19 16:13:01 +01:00
Dejan Bosanac b969358445 add test more time to clean up on slow machines 2014-12-18 16:24:51 +01:00
gtully f57fd7daad fix intermittent failure of LeaseDatabaseLockerTest and fix log messge with lease expiry time 2014-12-16 13:38:05 +00:00
gtully 30d3fae323 reduce test duration to match existing fork timeouts 2014-12-16 11:41:37 +00:00
gtully 2d9959a6f6 https://issues.apache.org/jira/browse/AMQ-5476 - ZeroPrefetchConsumerTest regression - fix default in connection factory and refactor prefetchExtension support - https://issues.apache.org/activemq/browse/AMQ-2560 2014-12-15 14:21:47 +00:00
gtully d25c52ccb2 https://issues.apache.org/jira/browse/AMQ-5483 - fix and test - assigned group counts are updated when lru map evicts a group assignment 2014-12-11 14:42:00 +00:00
gtully bc3587cfc9 fix failing RecoverExpiredMessagesTest - remove duplicate ref to secedualler task in jdbc pa inheritance and fix persistence adapter ref in test 2014-12-08 14:00:43 +00:00
gtully 919099b419 more realistic test with short lived groups rather than single entry 2014-12-08 14:00:42 +00:00
gtully bbb2acca2f https://issues.apache.org/jira/browse/AMQ-5476 - fix and test - https://issues.apache.org/jira/browse/AMQ-2790 - default messagePrioritySupported=false 2014-12-05 14:49:48 +00:00
gtully a876a34141 tidy up test code layout 2014-12-05 14:02:27 +00:00
gtully 60ad053486 https://issues.apache.org/jira/browse/AMQ-2719 - resolve possible skipped dispatch - https://issues.apache.org/jira/browse/AMQ-2106 - remove overload so that distribution order is not compromised when consumers are removed with a valid last delivered sequence. Additional test that uses consumer recreation to redistribute groups 2014-12-05 13:59:04 +00:00
Dejan Bosanac 802e527ea4 https://issues.apache.org/jira/browse/AMQ-5438 - improve kahadb archive logs. This closes #50 2014-12-04 14:04:23 +01:00
gtully 23052aa986 remove angles that won't compile on 1.6 2014-12-03 13:13:40 +00:00
gtully a58b00872c https://issues.apache.org/jira/browse/AMQ-5472 - deterministiclally propagate root cause exception to listeners on force close due to security excepition on connect, fix and test 2014-12-03 12:16:59 +00:00
gtully 74f530a641 https://issues.apache.org/jira/browse/AMQ-5457 - fix and test - we now peek first in redeliveredWaitingDispatch 2014-11-25 14:23:33 +00:00
gtully 8533a9242b https://issues.apache.org/jira/browse/AMQ-5450 - ensure default any destination is not chosen in favour of wildcard matches for mKahadb 2014-11-24 17:43:41 +00:00
Timothy Bish 7d136de422 https://issues.apache.org/jira/browse/AMQ-5421
Ensure concurrent access to the destinations state data does not cause
errors.
2014-11-04 16:04:29 -05:00
gtully 52e1a05aaa https://issues.apache.org/jira/browse/AMQ-5347 - variant of patch and additional tests applied, prefetch=0 test without restart exposed ordering bug with fix for https://issues.apache.org/jira/browse/AMQ-2719 2014-10-31 16:40:41 +00:00
Timothy Bish 1948fe41a3 https://issues.apache.org/jira/browse/AMQ-5407
Allow config of enabled protocols for nio+ssl and stomp+nio+ssl etc to
match the capability of the non-nio transports.
2014-10-23 15:03:35 -04:00
gtully 3042797b41 https://issues.apache.org/jira/browse/AMQ-5266 tidy up leveldb impl with additional scenario tests 2014-10-23 16:29:57 +01:00
Timothy Bish 642cc43216 https://issues.apache.org/jira/browse/AMQ-5406
Add support for disable of consumer expiration checks.
2014-10-22 14:42:45 -04:00
Timothy Bish 6c4f15e220 https://issues.apache.org/jira/browse/AMQ-5381
Apply fix and test for error when restoring old content and treating it
as compressed when it was not.
2014-10-21 17:14:47 -04:00
gtully 67ead201e1 https://issues.apache.org/jira/browse/AMQ-5266 https://issues.apache.org/jira/browse/AMQ-4485 - single dest test with low limit exposed ignored setbatch in kahadb when sequence was not found in the index due to acking - resolved and validated with test that verifies dlq is empty 2014-10-21 16:05:46 +01:00
Timothy Bish 6885ff0a62 https://issues.apache.org/jira/browse/AMQ-5365
Trap VirtualTopic names that leak from messages sent across a broker
network.
2014-10-20 15:05:08 -04:00
gtully 1d39f08c12 https://issues.apache.org/jira/browse/AMQ-5266 https://issues.apache.org/jira/browse/AMQ-4485 - fix warn logging from kahadb on set batch when message already consumed using seq from messageId, additional single dest test that hammers this case 2014-10-17 16:55:23 +01:00
gtully 1a0bd45a4e https://issues.apache.org/jira/browse/AMQ-4485 - leveldb version - shows the need to flag async adds so they can get suppressed as duplicates \(and not go to the dlq\) when the cursor order is out of sync on cache full 2014-10-17 13:35:31 +01:00
gtully 9c2b1d2572 https://issues.apache.org/jira/browse/AMQ-5266 https://issues.apache.org/jira/browse/AMQ-4485 - store has messages must be aware of pending also kahadb setBatch for async sends. additional tests and tidy up of cusror sync with store to reflect async/sync additions 2014-10-16 23:35:18 +01:00
gtully 243db1c289 rework npe avoidance in vmtransport stop to resolve thread leakage test failure 2014-10-16 23:35:18 +01:00
gtully 2050498c67 ensure vm transport is started in this test so that stop does some work 2014-10-16 23:35:18 +01:00
gtully 5f865f0f80 fix off by one in this unit test 2014-10-16 23:35:17 +01:00
gtully 97c127d2d4 https://issues.apache.org/jira/browse/AMQ-4485 - fix test regression with browse test - AMQ4595Test - reduce replay window when sync and asnyc cursor updates flip message order - concurrentStoreAndDispatch=true - https://issues.apache.org/jira/browse/AMQ-5266 - increse default audit depth to match async jobs for concurrent store 2014-10-09 13:47:31 +01:00
gtully 140ce1bc8f https://issues.apache.org/jira/browse/AMQ-4485 - reenable test. concurrentStoreandDispatch case cannot be reconciled via setBatch, best we can do is trap duplicates from inflight messages as they occur. tagged async stores to support this. the revert of serialization with tx and non aysnc send brings perf back to where it was. https://issues.apache.org/jira/browse/AMQ-5266 2014-10-07 14:50:41 +01:00
gtully c1c82beb2d fix deadlock that blocks remote broker start in duplex case with durable sub recreation on restart - dynamicOnly=true works around 2014-10-07 14:50:41 +01:00
Kevin Earls 8f138473de Updated to no longer use deprecated junit.framework.Assert 2014-09-29 10:54:18 +02:00
Kevin Earls 8163b0b95e Handle exceptions described in AMQ-5372 to avoid cascading test failures 2014-09-29 10:47:09 +02:00
gtully 023b0f1987 https://issues.apache.org/jira/browse/AMQ-4485 - test case hangs on 1.7, subsequent tests fail with port in use - disabling pending some investigation 2014-09-23 16:17:31 +01:00
gtully f19add11de add info log message for a queue purge event 2014-09-17 15:57:55 +01:00
gtully 8ab9a56d35 https://issues.apache.org/jira/browse/AMQ-5146 - fix test regression - with 20 rollback consumers the messages can exceed default redelivery policy 2014-09-12 14:45:03 +01:00
gtully 5861d86ad3 https://issues.apache.org/jira/browse/AMQ-5266 - fix edge case with optimizedDispatch=true where a single message could be pending till the next page in event 2014-09-11 16:59:50 +01:00
gtully 26807cd452 https://issues.apache.org/jira/browse/AMQ-5274 - we now only check expiry on non inflight messages so there is on contention on ack with the periodic expriy check thread - related https://issues.apache.org/jira/browse/AMQ-2876 2014-09-11 16:13:43 +01:00
Dejan Bosanac 0b5231ada5 https://issues.apache.org/jira/browse/AMQ-5345 - improve ldap communication 2014-09-08 13:51:25 +02:00
gtully 862f50355f give test more gc wiggle room - AMQ-4930 2014-08-30 01:06:21 +01:00
gtully 54e2e3bef2 rework cursor store sync w.r.t to index order. resolve issues with skipped dispatch and duplicate dispatch. https://issues.apache.org/jira/browse/AMQ-4485 https://issues.apache.org/jira/browse/AMQ-5266 2014-08-30 00:51:21 +01:00
Timothy Bish 4fa10356f0 Fix test, remote broker only dequeues the message if it is ack'd
otherwise it remains in-flight.
2014-08-19 14:37:30 -04:00
Timothy Bish 858ab40203 Make the test more tolerant of slow machines by replacing fixed length
sleep with a Wait condition.
2014-08-18 19:44:50 -04:00
Timothy Bish aae7aeaf39 This test does not need a management context, disable JMX 2014-08-18 18:06:42 -04:00
Timothy Bish 6e9ecdfe21 https://issues.apache.org/jira/browse/AMQ-5281
Apply patch correctly honor JMS selector behavior for unknown values.
2014-08-18 13:23:56 -04:00
Hadrian Zbarcea bf5305e2ee Add ldap auth unit test 2014-08-17 11:15:56 -04:00
Timothy Bish b1bc593931 https://issues.apache.org/jira/browse/AMQ-5323 2014-08-15 14:23:14 -04:00
Timothy Bish 582fc08019 https://issues.apache.org/jira/browse/AMQ-5072
Add accessors to the persitence adapter class and a test to validate.
2014-08-14 11:14:59 -04:00
Timothy Bish 59f8cfc604 https://issues.apache.org/jira/browse/AMQ-5290
Minor cleanup, change transport option from subscriptionStrategyName to
just subscriptionStrategy.
2014-08-12 14:59:51 -04:00
Timothy Bish 8b64e139f8 https://issues.apache.org/jira/browse/AMQ-5318
Check for auto-commit and don't call commit if enabled.  

 This closes #43
2014-08-11 11:15:17 -04:00
Timothy Bish e5ab933d2d Fixup the code around building the test combinations to better account
for a combo option that has no actual values, in this case we just throw
that combo out and let the class default be the value used in the test.
Before the order of iteration drove the combo build which caused early
exit from the loop if the last enties in the list were empty combo
options.
2014-08-08 10:21:19 -04:00
gtully 7c2735d0f4 https://issues.apache.org/jira/browse/AMQ-5317 fix and test 2014-08-08 14:09:46 +01:00
Timothy Bish 1f9a2d6f68 Fix test failure under Java 8. Root cause is in CombinationTestSupport
and only shows up in Java 8 because iteration order of the options map
changes such that the expandCombination method gets an empty value for
an option and returns immediately without evalutating all the added
options.
2014-08-07 16:58:49 -04:00
gtully ab1e9c78ef https://issues.apache.org/jira/browse/AMQ-5311 - encode xaErrorCode in xaexception message 2014-08-07 13:42:10 +01:00
Christian Posta 0d9eedc658 Updated test for https://issues.apache.org/jira/browse/AMQ-5290 after tbish commit for enhancement. 2014-08-06 17:02:17 -07:00
Christian Posta c42b874972 Test for https://issues.apache.org/jira/browse/AMQ-5290 2014-08-06 15:53:39 -07:00
gtully 41659725f4 https://issues.apache.org/jira/browse/AMQ-4930 - ensure we page in messages for browse/expire when destination stats are disabled via config 2014-08-06 15:21:19 +01:00
gtully b550fb7742 fix up line sep, use generic unix 2014-07-30 15:32:40 +01:00
gtully 60bc089531 use plugin version to avoid mvn warn 2014-07-25 11:48:20 +01:00
gtully 25e3c1b3c6 https://issues.apache.org/jira/browse/AMQ-5289 - add forwardCount to destinationStatistics - allow local consumption to be accounted with dequeueCount - forwardCount so forwarded messages are not accounted for num hops times 2014-07-25 11:48:20 +01:00
Timothy Bish d223ea979f https://issues.apache.org/jira/browse/AMQ-4818
added patch with addition of getter for link stealing enabled and a unit
test.
2014-07-22 17:53:39 -04:00
gtully 0ebbd5d974 https://issues.apache.org/jira/browse/AMQ-4000 - fix is good enable test so we can close the issue 2014-07-21 13:43:08 +01:00
gtully c34851fd57 https://issues.apache.org/jira/browse/AMQ-5279 - ensure poison on failover redelivery only when delivery is not pending else where 2014-07-17 17:08:13 +01:00
Timothy Bish 6ac3138daf https://issues.apache.org/jira/browse/AMQ-5222
Add test to show this is working as it should.
2014-07-15 14:33:23 -04:00
gtully a9b8d98ed7 https://issues.apache.org/jira/browse/AMQ-5086 - init of broker got dropped after mutex wait - testWaitFor was failing 2014-07-14 17:02:18 +01:00
gtully ee08fc1e24 fix up to respect normalisation of mbean attribute/property names from http://git-wip-us.apache.org/repos/asf/activemq/commit/0709c2cc 2014-07-14 17:02:18 +01:00
Timothy Bish 433912f79a https://issues.apache.org/jira/browse/AMQ-5271
Add an in-memory variant of the disk based JobScheduler store to allow
for an embedded broker to have scheduler support without needing to use
the disk based version.
2014-07-10 12:16:34 -04:00
gtully 0709c2cc1d https://issues.apache.org/jira/browse/AMQ-5213 - fix failing jmock test - resolve inconsistency in camel case attribute naming in a few mbeans 2014-07-10 13:51:08 +01:00
gtully 6348d11976 https://issues.apache.org/jira/browse/AMQ-5266 - fix ordering of concurrent transaction completion in jdbc store, avoid skipped message dispatch. additional test 2014-07-10 12:33:29 +01:00
Kevin Earls 13581c9aac Exclude leveldb tests on AIX, Solaris, HP-UX, and Windows as they cause problems with CI 2014-07-10 11:10:11 +02:00
Timothy Bish 74846bb2b4 https://issues.apache.org/jira/browse/AMQ-3758
Refactor the scheduler store into a more KahaDB style store that can
recover from various problems like missing journal files or corruption
as well as rebuild its index when needed.  Move the scheduler store into
a more configurable style that allows for users to plug in their own
implementations.  Store update from legacy versions is automatic.
2014-07-07 12:28:11 -04:00
Timothy Bish 8824ac9fcb https://issues.apache.org/jira/browse/AMQ-5231
Only apply timeout to the Message sends, other commands are handled
separately as needed.
2014-06-18 12:58:50 -04:00
Timothy Bish 5016c4d4f2 https://issues.apache.org/jira/browse/AMQ-5086
Ensure that wait for started on vm transport factory actually waits for
start, currently it doesn't really check started or wait porperly.
2014-06-09 15:40:03 -04:00
gtully 27b3a7c344 https://issues.apache.org/jira/browse/AMQ-5212 - ensure uncontented access to concurrent destination map avoides deadlock, rerework https://issues.apache.org/jira/browse/AMQ-4952 to differenciate duplicates from send and recovered messages from the store. https://issues.apache.org/jira/browse/AMQ-3454 benefits from getDestinationMap(destination) to get direct access to the map to determine existance. Additional test 2014-06-09 12:32:33 +01:00
gtully 785faa06be disable autofail system.exit - it kills a surefire forked test run 2014-06-09 12:32:32 +01:00
Dejan Bosanac 845e62af76 https://issues.apache.org/jira/browse/AMQ-5218 - DestinationsPlugin 2014-06-09 12:48:02 +02:00
Timothy Bish b1d46e45c6 https://issues.apache.org/jira/browse/AMQ-5211
Throw an exception if the destination name is empty.
2014-06-06 12:05:17 -04:00
Timothy Bish b8830ddab1 Convert to JUnit 4 test and add a timeout, also remove the tcp transport
connector on a fixed port as its not needed.
2014-06-05 17:52:01 -04:00
Timothy Bish 25f1fe8460 https://issues.apache.org/jira/browse/AMQ-5213
Adds a Log4JConfigViewMBean for use in configuring runtime logger
levels.
2014-06-05 14:39:56 -04:00
Dejan Bosanac fa086396a7 [maven-release-plugin] prepare for next development iteration 2014-06-05 11:59:29 +02:00
Dejan Bosanac 58dd93e42e [maven-release-plugin] prepare release activemq-5.10.0 2014-06-05 11:59:17 +02:00
Timothy Bish 6c703ac6ee https://issues.apache.org/jira/browse/AMQ-5209
Add MessageId and original destination info to the advisory message
properties.
2014-06-04 13:30:42 -04:00
Dejan Bosanac c2cf78542f [maven-release-plugin] prepare for next development iteration 2014-06-04 11:33:17 +02:00
Dejan Bosanac 5bc741f227 [maven-release-plugin] prepare release activemq-5.10.0 2014-06-04 11:33:03 +02:00
Dejan Bosanac aa2dfb60aa https://issues.apache.org/jira/browse/AMQ-5160 - fix XBeanConfigTest test 2014-06-02 17:50:28 +02:00
Dejan Bosanac b5c6c1eaeb https://issues.apache.org/jira/browse/AMQ-5162 - introduce handleStartException configuration parameter, to make stopping of the slave broker optional 2014-05-27 15:20:27 +02:00
Dejan Bosanac 9d656731ab https://issues.apache.org/jira/browse/AMQ-4555 - fix regression that groupClass cannot be set on <cachedLDAPAuthorizationMap/> 2014-05-26 16:42:38 +02:00
Claus Ibsen 7af9bce8a7 Added close destroy-method to Postgres data source. Thanks to Jakub Korab for reporting in https://github.com/apache/activemq/pull/19 2014-05-11 10:54:27 +02:00
Hiram Chirino bdb24ee7c7 Fixes AMQ-5176: Support building ActiveMQ using Java 8 JDK 2014-05-07 10:53:51 -04:00
Timothy Bish a20c3a07a2 https://issues.apache.org/jira/browse/AMQ-5175
Substitute a working bouncy castle lib for needed by some of the ldap
tests.  This one works on newer JDK 1.7 releases
2014-05-06 16:58:31 -04:00
Timothy Bish 810ce35f55 https://issues.apache.org/jira/browse/AMQ-5175
Exclude the BouncyCastle jar from the tests.
2014-05-06 13:38:53 -04:00
Timothy Bish 541ed8cf0c https://issues.apache.org/jira/browse/AMQ-5140
Add some checks to prevent any chance of an ArithmaticException because
of divide by zero.
2014-05-05 16:12:50 -04:00
Dhiraj Bokde 94b404d0ab Fixed AMQ-5160, allowed wildcard subscriptions for future destinations, added tests for wildcard authorization, fixed consumer and producer AdvisoryTopic names for composite destinations by replacing ',' with '&sbquo;' 2014-05-05 10:06:06 +02:00
gtully 89e8767973 fix shutdown order on close - broker may be gone before client 2014-05-02 18:17:04 +01:00
gtully c5c1495330 https://issues.apache.org/jira/browse/AMQ-5136 - fix and test (thanks barlabanov) 2014-04-30 17:08:20 +01:00
gtully ad1f751a41 https://issues.apache.org/jira/browse/AMQ-5077 - reduce reader thread work when client uses async send; async store updates can now queue up to the destination memory limit b/c they don't block the send thread. Pending store writes are now tracked in memory usage. This allows a client to quickly provide a burst of messages to fill the destination cache bounded only by network bandwidth 2014-04-30 16:13:18 +01:00
Dejan Bosanac 4eb5097f22 https://issues.apache.org/jira/browse/AMQ-5165 - fix for destination stats name 2014-04-30 10:44:47 +02:00
Hadrian Zbarcea 3f32507f78 Use autocrlf consistently for line endings 2014-04-29 14:18:37 -04:00
Kevin Earls b0bf144e7a Ignoring testAdvisory test for now, see https://issues.apache.org/jira/browse/AMQ-5164 2014-04-29 12:11:54 +02:00
Timothy Bish a88e19e7cd https://issues.apache.org/jira/browse/AMQ-5163
Allow for durable topic consumers to use individual ack mode.
2014-04-28 14:03:43 -04:00
Dejan Bosanac d60022ec65 https://issues.apache.org/jira/browse/AMQ-5162 - handle io exception in lease database locker start 2014-04-25 15:08:05 +02:00
gtully 08bb172f3c https://issues.apache.org/jira/browse/AMQ-5077 - provide concurrentSend option to composite destinations such that fanout can occur in parallel, resulting in write batching. little perf test that shows a large improvement in send rate w/o concurrentStoreAndDispatch 2014-04-23 15:02:24 +01:00
gtully fad1dd0f17 https://issues.apache.org/jira/browse/AMQ-5146 - validate redeliveryPolicy excess pre dispatch, fix and test 2014-04-16 15:49:34 +01:00
Dejan Bosanac e947927511 https://issues.apache.org/jira/browse/AMQ-5149 - potential deadlock 2014-04-16 15:44:02 +02:00
Dejan Bosanac 7646526c0a https://issues.apache.org/jira/browse/AMQ-5141 - send messages to dlq using broker security context 2014-04-14 17:05:53 +02:00
Hadrian Zbarcea ed11b067c5 Add missing license headers in preparation of releases 2014-03-31 18:43:54 -04:00
Kevin Earls 4faf11d821 Added @Ignore because of https://issues.apache.org/jira/browse/AMQ-5126 2014-03-28 17:33:41 +01:00
gtully c07514f570 https://issues.apache.org/jira/browse/AMQ-5119 - fix (pfox thanks for the test) the marshalled properties were being retained so a property removal was being ignored before the schedualed resend 2014-03-27 15:12:12 +00:00
artnaseef 29f34f4dab AMQ-5107: Do not resend messages while the broker is shutting down. Includes junit. 2014-03-27 08:07:59 -07:00
gtully 7a0168a4f5 https://issues.apache.org/jira/browse/AMQ-4636 - tidy up commit failure case to redirect via IOExceptionHandler - failover still suppressed the commit on recovery - resulting in rollback exception the client due to indoubt commit 2014-03-26 16:19:46 +00:00
gtully 75eb814ca7 https://issues.apache.org/jira/browse/AMQ-5068 - don't rewrite durable subs as the message instance is shared 2014-03-26 11:50:13 +00:00
gtully 266d23ef79 revisit https://issues.apache.org/jira/browse/AMQ-3519 with more durable solution https://issues.apache.org/jira/browse/AMQ-5068 - JMSRedelivered header now persisted before dispatch so that it is a reliable indication of a possible duplicate delivery. The option is enabled via destination policy persistJMSRedelivered 2014-03-26 11:16:42 +00:00
gtully f594cdab10 tidy up test completion, allowing consumers to exit gracefully from blocking receive 2014-03-21 13:14:40 +00:00
gtully 9bf9e1c052 https://issues.apache.org/jira/browse/AMQ-5114 - force local removeInfo after connection controll consumer remove command so consumer is always removed from the broker, independent of the consumer state 2014-03-21 12:22:38 +00:00
gtully af9134a4fa sanity check test of local host/port syntax with failover 2014-03-20 14:32:31 +00:00
gtully cb6941ee0b https://issues.apache.org/jira/browse/AMQ-4886 - think the sync on shutdown issue is resolved and the test will no longer hang 2014-03-20 14:14:31 +00:00
Kevin Earls cbb46ea7d3 Fix for AMQ-5113. Fixed race condition in onMessage for testSimulatenousCron which caused intermittent failures 2014-03-20 13:33:03 +01:00
gtully b136df177f https://issues.apache.org/jira/browse/AMQ-5089 - fix and test, respect client ack for topics and only decrement counters when ack is received 2014-03-19 15:33:44 +00:00
gtully 2efb6df619 speed up this test and improve logging in the event of failure 2014-03-19 15:32:10 +00:00
gtully 89446c7af0 fix intermittent failure - exceptions that result from broker stop need to be ignored as this test forces a restart 2014-03-19 15:30:34 +00:00
gtully 47d72dd32a resolve intermittent failure in this test - do a valid wait check once 2014-03-18 15:45:26 +00:00
gtully caae68a1ba compaction or gc can effect this test - make it more tolerant and dumpthreads on error so we can validate 2014-03-14 13:42:59 +00:00
gtully 128921e687 some more info to this test to help diagnose intermittent ci failure, works fine locally 2014-03-12 14:01:08 +00:00
gtully 6aaf859d22 https://issues.apache.org/jira/browse/AMQ-4656 - fix regression for FilePendingDurableSubscriberMessageStoragePolicy 2014-03-11 15:18:46 +00:00
gtully a3a41dae37 https://issues.apache.org/jira/browse/AMQ-5087 - fix up test use of initial delay 2014-03-11 12:37:31 +00:00
Hadrian Zbarcea 570dbb4372 [minor] Use MemoryPersistenceAdapter for testing when choice of persistence adapter is indifferent 2014-03-10 11:00:27 -04:00
gtully 33b88d34a9 https://issues.apache.org/jira/browse/AMQ-5087 fix and test 2014-03-06 22:40:01 +00:00
Hadrian Zbarcea c34f8426ab Exclude failing activemq-unit-tests to re-enable CI 2014-03-05 11:21:51 -05:00
gtully cfe099d1cc rework https://issues.apache.org/jira/browse/AMQ-3305 in the context of https://issues.apache.org/jira/browse/AMQ-4952 dlq processing of duplicates, also possible missed dispatch with interleaved xa completion and new messages - recovered transactions are now individually tracked by the store and replayed in the next batch, which negates the need to flush the cursor and avoids duplicates 2014-03-05 14:51:05 +00:00
Hadrian Zbarcea a7ff5975ee move derby test db to target/ so that mvn clean doesn't leave it behind 2014-03-04 18:17:28 -05:00
gtully 9d76668f7b use sensible param name for paramaterized tests 2014-03-03 13:57:24 +00:00
gtully 69c0d399fb make perpared xa transactions visible in kahadb persistenceadapter view mbean 2014-03-03 13:55:27 +00:00
Hiram Chirino e7e317dc7e Applying patch AMQ-5074: MQTT paths with empty levels are not handled correctly.
Thanks Dhiraj!
2014-02-24 09:05:23 -05:00
Dejan Bosanac c6fe94ec03 https://issues.apache.org/jira/browse/AMQ-5070 - broker blocked on shutdown 2014-02-21 11:22:11 +01:00
Hiram Chirino 93ca04468b Implements AMQ-5054: Display the number of active transactions and age of oldest transaction on a Connection's JMX info 2014-02-14 16:22:50 -05:00
Kevin Earls ef82a4b8b4 Added short sleep to tearDown, see https://issues.apache.org/jira/browse/AMQ-4854 2014-02-14 17:36:47 +01:00
Kevin Earls 4350ded2c5 Fix for intermittent failures, see https://issues.apache.org/jira/browse/AMQ-5053 2014-02-14 16:08:51 +01:00
Timothy Bish fbd72d6d70 Place data dir in target 2014-02-10 18:25:32 -05:00
Timothy Bish 314b6e1fd7 Use better test KahaDB location in configuration. 2014-02-10 18:23:02 -05:00
Timothy Bish 4c38b03d14 https://issues.apache.org/jira/browse/AMQ-5035
Fix and test for variations in configuration settings that result in a
non-region broker as the AdvisoryBroker's next instance.
2014-02-10 18:14:41 -05:00
Kevin Earls 3df943ce0e Removed some old JUnit3 references 2014-02-10 14:43:17 +01:00
Kevin Earls afded924ff Fix for AMQ-4899 2014-02-07 09:41:50 +01:00
gtully 221a751d0a https://issues.apache.org/jira/browse/AMQ-5031 - add connection factory rmIdFromConnectionId attribute to allow resource manager identity to be mapped to the connection id, thus overiding the default broker identity association. usefull is a TM does not end a start with the join flags. We may want to implement join but it is not trivial to determin the existing associated state and clear it 2014-02-06 15:18:30 +00:00
Kevin Earls 4cc526112e Added timeouts because of CI hangs 2014-02-06 10:00:24 +01:00
Kevin Earls 5a80cee960 Converted to JUnit4 because of CI hangs, see AMQ-5021 2014-02-04 11:10:52 +01:00
Timothy Bish da3775302c https://issues.apache.org/jira/browse/AMQ-5011 2014-01-31 17:25:26 -05:00
Kevin Earls e0e14e087b Removed some code I had commented out but forgot to delete 2014-01-30 14:37:25 +01:00
Kevin Earls fa6aaf9360 Bumped up test timeouts because of CI failures, also cleaned up imports 2014-01-30 14:33:31 +01:00
Kevin Earls c027552035 Upgraded surefire plugin to 2.16. AMQ-5006 2014-01-30 14:22:44 +01:00
Timothy Bish cce75e0926 https://issues.apache.org/jira/browse/AMQ-5001
Fix all failing tests.
2014-01-29 11:21:54 -05:00
Timothy Bish 4273b1301d https://issues.apache.org/jira/browse/AMQ-5001
testSlowConsumerIsAbortedViaJmx failed due to issue in the test setup.
2014-01-29 10:29:12 -05:00
Kevin Earls bec711c7db Converted to JUnit4 and added @Ignore tags for failing tests. See AMQ-4286 and AMQ-5001 2014-01-29 14:57:52 +01:00
Timothy Bish fde22a8496 https://issues.apache.org/jira/browse/AMQ-4754
Add connection counts to Broker mbean
2014-01-28 14:07:39 -05:00
gtully 95d20e5b47 https://issues.apache.org/jira/browse/AMQ-4991 - fix npe and reinstate test 2014-01-24 13:31:44 +00:00
Kevin Earls a6edc416d6 Added sleep because of intermittent CI failures 2014-01-24 11:30:20 +01:00
Kevin Earls dea0588471 Added @Ignore to testSendReceive because of NPE. See AMQ-4991 2014-01-24 10:55:51 +01:00
Timothy Bish dd0c9c4144 https://issues.apache.org/jira/browse/AMQ-4988 2014-01-22 10:09:38 -05:00
Timothy Bish 90104943b2 https://issues.apache.org/jira/browse/AMQ-4839
Deprecated the streams functionality.  Remove in a later release.
2014-01-21 15:00:16 -05:00
Kevin Earls d29bab50e5 Updated to JUnit4, which seems to have fixed intermittent failures. See AMQ-4980 2014-01-21 10:58:00 +01:00
Kevin Earls 48d25adfc8 Removed. See AMQ-4972 2014-01-20 11:42:33 +01:00
Timothy Bish 9b00a0947e Add missing license header 2014-01-17 14:34:11 -05:00
Kevin Earls 0918430dc2 Removed test, it has been commented out and not run for over a year. See AMQ-4974 2014-01-17 10:19:49 +01:00
Kevin Earls e56c062f27 Added overridden no-op version of testSendReceive, see AMQ-4975 2014-01-16 16:11:24 +01:00
Kevin Earls 5e42bd64bc Added no-op version of testVirtualTopicFailover, which is covered by AMQ-4842 2014-01-16 15:45:19 +01:00
Kevin Earls 612a816d98 Changed commented out test to use @Ignore. See AMQ-4974 2014-01-16 15:40:55 +01:00
Kevin Earls 6549342061 Ignoring failing test cases, see AMQ-4973 2014-01-16 15:22:59 +01:00
gtully 08f21ed71d https://issues.apache.org/jira/browse/AMQ-4952 - remove scala ref from test 2014-01-14 22:17:19 +00:00
gtully cc47ab6d00 https://issues.apache.org/jira/browse/AMQ-4952 deal with jdbc store, cursor audit=false case, also relevant when cursor window is exceeded. Treating duplicate into pagedInMessages as an error, silently ignoring leads to trapped messages or deferred dispatch after a restart, revert change from https://issues.apache.org/jira/browse/AMQ-1957 2014-01-09 12:16:37 +00:00
Kevin Earls be8990e06d Removed @Ignore and updated timeout on testOrderOnActivateDeactivate, fixed by AMQ-4952 2014-01-08 17:40:41 +01:00
gtully f92d45bec1 https://issues.apache.org/jira/browse/AMQ-4952 - deal with duplicates by redirecting to dlq when they are detected by the cursors such that they don't linger for redispatch after a restart. Networks are the main culprit for such duplicates b/c the producer audit traps regular failover resends 2014-01-07 16:52:39 +00:00