511 Commits

Author SHA1 Message Date
jbertram
853d3665df ARTEMIS-206 HTTP Upgrade does not work over HTTPS 2015-08-31 14:30:25 -05:00
Howard Gao
1642a856c3 Fix thread leak in test TransactionContextTest
This leak happens with amq5.12.0. It didn't happen
  with amq5.11.1. Adding connection.start() can work
  around this seemingly 5.12.0 issue.
2015-09-01 00:17:36 +08:00
Howard Gao
be9959e0bc ARTEMIS-191 Refactor RemoveDestinationTest
-Using core api to inspect queue status
  -Catch command visit() exceptions in order to
   pass it back to client.
  -Correct destination add/remove handlings
2015-08-28 20:33:38 +08:00
Andy Taylor
2f18b4cbfc ARTEMIS-193 - OpenWire protocol only works with messages received over openwire
Fix the address conversion between protocols so its consistent

https://issues.apache.org/jira/browse/ARTEMIS-193
2015-08-27 10:23:38 +01:00
Howard Gao
99db9f1cbd Exclude 2 activemq5 openwire tests that purely test on client side 2015-08-26 19:54:19 +08:00
Clebert Suconic
2b45d6eb9e Adding simple test sending core & consuming OpenWire 2015-08-25 08:31:24 -04:00
Howard Gao
34e127cc0c ARTEMIS-208 BrokerInfo issue, also:
enlarged the default max size for tests to avoid send blocking.
2015-08-24 22:54:12 -04:00
jbertram
7a1199c475 ARTEMIS-210 outbound RA connection load-balancing
Inbound sessions are always created from the same ActiveMQConnectionFactory
which means the load-balancing policy is applied to them in the expected
manner. However, outbound sessions are created from independent, unique
ActiveMQConnectionFactory instances which means that the load-balancing
doesn't follow the expected pattern.

This commit changes this behavior by caching each unique
ActiveMQConnectionFactory instance and using it for both inbound and outbound
sessions potentially. This ensures the sessions are load-balanced as
expected.
2015-08-24 18:24:04 -05:00
Ville Skyttä
eb407389a6 Update maven-checkstyle-plugin to version 2.16 2015-08-16 15:26:15 +03:00
jbertram
976174305e ARTEMIS-209 fix keepAlive 2015-08-14 16:20:10 -05:00
jbertram
cbebbc43fd Fix ReplicatedLargeMessageWithDelayFailoverTest 2015-08-14 16:20:06 -05:00
Clebert Suconic
030f2fc59a Revert "ARTEMIS-187 hold lock between live server and tools"
This reverts commit f0f4f1684d083170764f7bd3a273c60f44aaa464.

Sorry about this.. I will rework this and send a commit again
2015-08-14 01:02:39 -04:00
Clebert Suconic
f0f4f1684d ARTEMIS-187 hold lock between live server and tools
This should avoid users damaging data while the server is running (by for instance running compact while the server is running)

https://issues.apache.org/jira/browse/ARTEMIS-187
2015-08-13 23:57:49 -04:00
Clebert Suconic
1dae99746b ARTEMIS-204 Improvements on OpenWire
https://issues.apache.org/jira/browse/ARTEMIS-204

by consequence this will also fix any possible issues with AMQP
2015-08-13 20:39:01 -04:00
Howard Gao
53d5f93e4a Openwire test fix:
Added missing resource file
  Added accessor methods to let the test pass
2015-08-12 21:22:57 +08:00
Martyn Taylor
90940091d3 Downgrade Paho SNAPSHOT dep to latest release 2015-08-12 11:59:12 +01:00
jbertram
4fa701eaff Fix HAClientTopologyWithDiscoveryTest 2015-08-11 15:23:06 -05:00
jbertram
f6061d0d53 Fix ReplicatedMultipleServerFailoverExtraBackupsTest 2015-08-11 14:06:58 -05:00
Howard Gao
bb1e03c079 Openwire test fix:
Fixed issues with TcpTransportBrokerTest
  removed one irrelevant test
  Not all tests in it are passing however that'll
  fix 125 of total 128 tests.
2015-08-11 11:23:08 -04:00
jbertram
38188cdf2e ARTEMIS-179 fix BindingsClusterTest 2015-08-10 16:19:01 -05:00
jbertram
f3be78a096 ARTEMIS-179 Expose disconnect/reconnect problem
Currently a cluster bridge will continue to attempt to reconnect to
a node that sends it a DISCONNECT until its reconnect-attempts is
exhausted. A DISCONNECT message indicates that the node is not coming
back so no reconnect attempt should be made and the bridge should be
stopped, the bindings should be cleaned up, etc.

The change to this test exposes this problem.
2015-08-10 10:20:01 -05:00
Clebert Suconic
5ac2c2444b manual checkstyle changes 2015-08-10 10:08:23 -04:00
Clebert Suconic
bac96047f5 automatic checkstyle change
this is just calling Idea format on all the files using the new style
I am separating manual changes from automatic changes in case I have to repeat the manual changes again
2015-08-10 09:26:42 -04:00
Howard Gao
125bfd34e7 Fix openwire IsStillMarshallsTheSameTest
Added missing resource files.
2015-08-10 09:14:44 -04:00
Howard Gao
85989fb509 Fix openwire test: ExpiryHogTest
Removed code irrelevant to Artemis broker
2015-08-10 09:14:44 -04:00
Howard Gao
5230237a7c Fix openwire tests - ProducerFlowControlSendFailTest 2015-08-10 09:12:27 -04:00
Clebert Suconic
138bfe9682 Removing 'created by' comments 2015-08-07 15:17:24 -04:00
Clebert Suconic
2ad821a0ca small improvement on org.apache.activemq.JmsQueueCompositeSendReceiveTest 2015-08-05 09:32:09 -04:00
Howard Gao
896813fc1c Fix org.apache.activemq.JmsQueueCompositeSendReceiveTest#testDuplicate
This test uses activemq5 native API to examine queue message count
    The fix uses core's QueueQuery API to do the job instead.
2015-08-05 09:24:22 -04:00
Clebert Suconic
517e076620 fixing tests
The refactoring on native left a few name changes and a small twek that I needed to make on buffers
2015-08-03 23:39:35 -04:00
Clebert Suconic
7cfc33790d ARTEMIS-162 Fix non serializable JGroups on Configuration clone used on Colocated support
https://issues.apache.org/jira/browse/ARTEMIS-162
2015-08-03 23:39:35 -04:00
Howard Gao
65e9ec01b8 Fix openwire unit tests
Fix JmsRedeliveredTest and add processing of RemoveSubscriptionInfo command
2015-08-03 08:56:27 -04:00
jbertram
fe95e34390 Ensure MQTT tests clean up SSL properties 2015-08-03 08:24:28 -04:00
jbertram
ecc2cecf87 Fix NPE in management test 2015-08-03 08:24:28 -04:00
Andy Taylor
38147ddbe7 added check to stop broker 2015-08-03 08:53:39 +01:00
Howard Gao
447f33d19f Fix compilation error 2015-07-30 19:57:40 +08:00
Howard Gao
2866ecd4c2 Include just a few packages in activemq5-unit-tests to start with 2015-07-30 18:40:18 +08:00
Clebert Suconic
6fe9e0ebd6 ARTEMIS-163 First pass on the native AIO refactoring
https://issues.apache.org/jira/browse/ARTEMIS-163

On this pass I'm just converting the native layer to a simpler one.
It wasn't very easy to change the alignment at the current framework,
so I did some refactoring simplifying the native layer

The volume of the nubmer of changes here is because:

- The API is changed, we now don't close the libaio queue between files
- The native layer won't use malloc as much as it used to, saving some CPU and memory defragmentation
- I organized the code around nio and libaio
2015-07-29 22:12:03 -04:00
Clebert Suconic
d5dde68f0c ARTEMIS-157 fixing isHA on connectionFactory 2015-07-22 17:46:04 +01:00
Ville Skyttä
2a647c176f Declare ConcurrentMaps instead of ConcurrentHashMaps
See PR #88 for discussion.
2015-07-22 16:16:57 +03:00
Ville Skyttä
d6f8ed8d70 Deprecate PROTOCOL_PROP_NAME, avoid deprecation warning on STOMP tests 2015-07-22 11:54:18 +01:00
Howard Gao
74600b2a53 openwire tests: Fix some NPEs and Index out of boundary errors 2015-07-16 09:16:25 +08:00
Howard Gao
779092f48f fix empty keystore files
fix Collections.EMPTY_MAP doesn't support put() method issue
2015-07-14 20:07:00 +08:00
Howard Gao
fbdf9cd04c Activemq5 unit test fixes
--Fix server wrapper startup/shutdown issues that mainly causes
    a lot of "Address already in use" in tests.
2015-07-13 09:39:52 -04:00
Ville Skyttä
78cb156ef9 Spelling fixes 2015-07-13 09:38:00 -04:00
Howard Gao
19a49f5297 Fix javadoc errors in tests/activemq5-unit-tests 2015-07-10 10:02:38 +08:00
Howard Gao
8d1f4fa32a fix javadoc warnings 2015-07-09 10:41:50 -04:00
Ville Skyttä
b0a80ce1be Spelling fixes 2015-07-09 10:41:03 -04:00
Howard Gao
7cf58b1e88 ARTEMIS-149 Advisory Message Support
Adding functions to send advisory messages.
2015-07-09 10:23:24 -04:00
Martyn Taylor
0f82ca754b Added Initial MQTT Protocol Support 2015-07-09 11:08:04 +01:00