Commit Graph

467 Commits

Author SHA1 Message Date
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