Commit Graph

640 Commits

Author SHA1 Message Date
Clebert Suconic cbe3621431 ARTEMIS-1096 Changing Global Max Size's default 2017-04-06 19:55:09 -05:00
Justin Bertram 4a57aecbbf ARTEMIS-1094 replica + group-name fix
When a replica attempts to connect to a live server using a group-name
and there are > 1 servers on the network using that group there is a
chance it will fail because it doesn't keep track of all of the
topology data it receives. This fix ensures that all the topology data
from the cluster tracked until it is used and fails at which point it
is discarded.
2017-04-06 13:22:30 -04:00
Francesco Nigro f53449b945 ARTEMIS-1095 Netty's WriteBufferWaterMark configuration via TransportConstants 2017-04-06 15:26:13 +02:00
Andy Taylor bffbca8f64 no jira - possible null pointer 2017-04-05 11:56:32 +01:00
Justin Bertram 073a280629 ARTEMIS-1092 Validated user + AMQP fix
When populate-validated-user = true AMQP messages can cause exceptions.
This feature isn't particularly applicable to AMQP so this commit
eliminates the exception and leaves the AMQP messages untouched
even if populate-validated-user = true. In other words,
populate-validated-user + AMQP is not supported.
2017-04-04 14:46:22 -05:00
Clebert Suconic 0b62f698c3 ARTEMIS-1089 Fixing Replication catchup slow 2017-04-02 20:20:45 -04:00
Clebert Suconic 5b4247479c NO-JIRA: Adding Acceptor and Connector utility 2017-04-02 19:21:14 -04:00
Clebert Suconic 5f939cf61f ARTEMIS-992 Reverting 'ERROR' message
Commit 81b5563a52 introduced an error message
even if you start a regular non clustered server.
2017-04-01 15:57:41 -04:00
Martyn Taylor 8760b3ddfd ARTEMIS-1087 Make InVM buffer pooling configurable 2017-03-31 18:56:07 +01:00
Justin Bertram 81b5563a52 ARTEMIS-992 NPE on startup 2017-03-30 21:20:14 -04:00
Justin Bertram 5a93aa9b76 ARTEMIS-1083 fix errant WARN message 2017-03-30 18:34:21 -05:00
Martyn Taylor 42bf845edb ARTEMIS-1084 Throw RunTime on bad Oracle table size 2017-03-29 14:59:12 +01:00
Howard Gao 82c720bdfb ARTEMIS-1071 Invalid Type exception handling improvements
If broker fails to decode any packets from buffer, it should
treat it as a critical bug and disconnect immediately.
Currently broker only logs an error message.
2017-03-29 09:19:52 -04:00
Justin Bertram ce3adf6fa8 ARTEMIS-1065 get queue names by routing type 2017-03-29 09:18:16 -04:00
Clebert Suconic 1f4473e8d7 ARTEMIS-1081 Implementing AMQP UndeliverableHere 2017-03-28 20:32:28 -05:00
Clebert Suconic 746220e11e ARTEMIS-1080 Implementing AMQP::reject 2017-03-28 20:32:28 -05:00
Justin Bertram b7e11f92b6 ARTEMIS-1064 AddressControl routingType fix 2017-03-28 15:30:52 -05:00
Armand Roelens 3ceb332866 ARTEMIS-1074 Acceptors/Connectors now start up when configured to use SSL and a password codec 2017-03-28 15:10:33 -05:00
Clebert Suconic b395504e15 ARTEMIS-1077 Fixing Pool usage on InVM and RemotingConnection 2017-03-28 09:19:57 -05:00
Andy Taylor ec7e6d7ea7 ARTEMIS-1075 - Add Routing Type to QueueControl management API
https://issues.apache.org/jira/browse/ARTEMIS-1075
2017-03-28 10:40:52 +01:00
Justin Bertram 427039ef38 ARTEMIS-1068 routingType + AMQP fixes 2017-03-24 15:15:10 -05:00
Clebert Suconic 096556f346 ARTEMIS-994 Tidy up on epoll
- improved logging
- renamed properties and tidy up on configurations
2017-03-23 18:16:48 -05:00
Michael André Pearce a610748c09 ARTEMIS-994 Support Netty Native Epoll on Linux
The following changes are made to support Epoll.

Refactored SharedNioEventLoopGroup into renamed SharedEventLoopGroup to be generic (as so we can re-use for both Nio and Epoll)

Add support and toggles for Epoll in NettyAcceptor and NettyConnector (with fall back to NIO if cannot load Epoll)

Removal from code of PartialPooledByteBufAllocator, caused bad address when doing native, and no longer needed - see jira discussion

New Connector Properties:

useEpoll - toggles to use epoll or not, default true (but we failback to nio gracefully)
remotingThreads = same behaviour as nioRemotingThreads. Previous property is depreated.
useGlobalWorkerPool = same behaviour as useNioGlobalWorkerPool. Old property is deprecated.

New Acceptor Properties:

useEpoll - toggles to use epoll or not, default true (but we failback to nio gracefully)
useGlobalWorkerPool = same behaviour as useNioGlobalWorkerPool but for Epoll.

This closes #1093
2017-03-23 18:16:48 -05:00
Clebert Suconic 2c9b02806d ARTEMIS-1056 Removing PartialPooledByteBufAllocator 2017-03-23 18:16:48 -05:00
Clebert Suconic 1c88c06abb ARTEMIS-1059 option to monitor Paging counters
Adding System.property artemis.debug.paging.interval (in seconds)
to debug paging counters.
2017-03-23 09:35:40 -05:00
Clebert Suconic 633b9c75dd ARTEMIS-1056 Fixing AutomaticColocatedQuorumVoteTest 2017-03-23 14:04:26 +00:00
Justin Bertram bc43bfbcce NO-JIRA don't log stack for cluster auth failure 2017-03-22 23:32:37 -04:00
Benjamin Graf 1ae3276ce9 NO JIRA Small lexical typo 2017-03-22 23:31:06 -04:00
Clebert Suconic 0bfb39bfb5 ARTEMIS-1056 Performance improvements on AMQP 2017-03-22 09:55:02 -05:00
Clebert Suconic ac7cafb210 ARTEMIS-1051 Adding synchronized calls on ACKs 2017-03-22 09:55:02 -05:00
Martyn Taylor 10c9d797d1 NO-JIRA Bump extra tests version 2017-03-22 11:45:47 +00:00
Justin Bertram a9360f5599 ARTEMIS-1053 use creds for active server check 2017-03-21 17:21:56 +00:00
Clebert Suconic e2b2e247d9 ARTEMIS-1051 using ServerSession's own lock 2017-03-21 09:14:24 -04:00
Martyn Taylor 8394fec104 ARTEMIS-1051 Make ServerSession send thread safe 2017-03-21 09:14:24 -04:00
Clebert Suconic 65ac7f700b ARTEMIS-1052 Proper Expiry over AMQP 2017-03-20 18:33:31 -04:00
Andy Taylor 8ab7588910 ARTEMIS-1023 - fixx Openwire auto creation of queues
https://issues.apache.org/jira/browse/ARTEMIS-1023
2017-03-17 12:28:10 +00:00
Clebert Suconic afe97cdb0f ARTEMIS-1033 Fixing NPE on PageTX and reload 2017-03-13 09:07:26 -04:00
Clebert Suconic 1ce5d1f758 NO-JIRA Removing System.out left by mistake 2017-03-13 08:58:46 -04:00
Martyn Taylor 6b2363e02e ARTEMIS-1031 Fix prefix support 2017-03-10 15:38:02 -05:00
Martyn Taylor c40823e5ec [maven-release-plugin] prepare for next development iteration 2017-03-10 14:54:33 +00:00
Martyn Taylor 70e319d6e3 [maven-release-plugin] prepare release 2.0.0 2017-03-10 14:52:26 +00:00
Martyn Taylor f1a5f1caf9 Revert "[maven-release-plugin] prepare release 2.0.0"
This reverts commit 057047499b.
2017-03-10 14:45:29 +00:00
Martyn Taylor 1964abe567 Revert "[maven-release-plugin] prepare for next development iteration"
This reverts commit 9a52f51c9f.
2017-03-10 14:44:58 +00:00
Justin Bertram e9ad1c81a5 Revert "ARTEMIS-1011 Small adjustment on test"
Revert "ARTEMIS-1011 adjust slow-consumer detection logic"

This reverts commit 9818206bd3.
This reverts commit 19ebbfb5f0.
2017-03-10 09:26:41 -05:00
Martyn Taylor 9a52f51c9f [maven-release-plugin] prepare for next development iteration 2017-03-10 11:36:36 +00:00
Martyn Taylor 057047499b [maven-release-plugin] prepare release 2.0.0 2017-03-10 11:25:47 +00:00
Clebert Suconic f1249e39a9 ARTEMIS-1029 Cleaning up small possible Exception
treating an exception after the PagingIterator in case of duplicates cleanups
2017-03-10 11:09:29 +00:00
Clebert Suconic b73828a0f4 ARTEMIS-1029 Fixing Paging issues
- Browser out of order
- PageStore not being cleared
2017-03-09 22:12:58 -05:00
Clebert Suconic 761f42277d ARTEMIS-1029 Fixing Scaledown tests 2017-03-09 22:12:58 -05:00
Clebert Suconic ed1d4c0948 ARTEMIS-1009 Fixing Management test 2017-03-09 19:14:59 -05:00
Justin Bertram 19ebbfb5f0 ARTEMIS-1011 adjust slow-consumer detection logic
Adjust slow-consumer detection logic to use the number of messages in
the queue and not just the number of messages added since the last
check. This means the getRate() method now returns the rate of messages
which it *could* have dispatched since the last check rather than the
rate at which it received messages. This is a more reliable metric to
ensure the slow-consumer detection logic doesn't flag a consumer as
slow unfairly. Although the reliability will come at a performance cost
since getMessageCount() must lock the queue.
2017-03-09 16:59:22 -05:00
Justin Bertram a052e2ca9a ARTEMIS-1026 don't route when purgeOnNoConsumers and consumers=0 2017-03-09 14:39:33 -05:00
Clebert Suconic a41a1930ef ARTEMIS-1009 AMQP shouldn't use application properties
As part of my refactoring on AMQP, the broker shouldn't rely on Application properties
for any broker semantic changes on delivery.

I am removing any access to those now, so we can properly deal with this post 2.0.0.
2017-03-09 12:27:39 -05:00
Clebert Suconic c369084381 ARTEMIS-1009 Tight up on AMQP
avoiding application properties even further
fixing nolocal
2017-03-09 08:12:42 -06:00
Howard Gao 6e02caa53e ARTEMIS-1024 Management operation causes ClassNotFoundException
Artemis expose createQueue() method to management console like Jon.
If the queue to be created already exists it throws an ActiveMQException
back to the console, which will get a ClassNotFoundException when
deserializing the exception.
The same issue goes also with AddressControl.sendMessage() method.

To fix that it should throw a common java exception like IllegalStateException.
2017-03-09 21:22:18 +08:00
Clebert Suconic 3882b00735 ARTEMIS-1009 Fixing exporter/importer 2017-03-06 14:20:54 -06:00
Martyn Taylor 456e2a65e2 ARTEMIS-1012 Fix AMQP Transaction Retirement 2017-03-06 11:55:29 -05:00
Clebert Suconic fe0ca4d84f ARTEMIS-1009 Pure Message Encoding.
with this we could send and receive message in their raw format,
without requiring conversions to Core.

- MessageImpl and ServerMessage are removed as part of this
- AMQPMessage and CoreMessage will have the specialized message format for each protocol
- The protocol manager is now responsible to send the message
- The message will provide an encoder for journal and paging
2017-03-05 23:08:53 -05:00
Martyn Taylor a3c852eb04 NO-JIRA Database Page Store Improvements 2017-02-26 20:42:04 +00:00
Justin Bertram c7e0a92181 ARTEMIS-992 deal w/bad connector-ref in cluster-cxn 2017-02-23 16:52:31 -05:00
Howard Gao e09be4864a ARTEMIS-988 Regression: web tmp dir not cleaned up
Due to recent changes, the web component is shutdown by the
server, but the shutdown flag is lost so the web component's
cleanup check method is not get called and the web's tmp
dir is left there after user stopped the broker (control-c).

The fix is add a suitable API to allow passing of the
flag so the web component can make sure its tmp dir gets
cleaned up properly before exiting the VM.
2017-02-23 12:39:50 +08:00
Jiri Danek a7a0535afa NO-JIRA Fixing typos in log messages, test names and comments
Related to ARTEMIS-387 (fowardingAddress)
2017-02-20 20:54:45 -05:00
Andy Taylor a243e0559f ARTEMIS-977 - record id of address not set on journal reload
https://issues.apache.org/jira/browse/ARTEMIS-977
2017-02-20 09:17:45 -05:00
Justin Bertram 5bd1980438 ARTEMIS-978 replicating live restarts as backup
In a cluster of replicated live/backup pairs if a backup crashes and
then its live crashes the cluster will retain the topology information
of the live such that when the live server restarts it will check the
cluster to see if its nodeID is present (which it will be) and then it
will activate as a backup rather than a live. To prevent this situation
an additional check is necessary to see if the server with the matching
nodeID is actually active or not which is done by attempting to make a
connection to it.
2017-02-17 12:55:11 -06:00
Dejan Bosanac 21b64b3e4f https://issues.apache.org/jira/browse/ARTEMIS-815 - support wildcard address configuration in mqtt layer
https://issues.apache.org/jira/browse/ARTEMIS-815 - support wildcard address configuration in mqtt layer - remove old swap method

https://issues.apache.org/jira/browse/ARTEMIS-815 - added tests for mqtt-openwire integration and fixed openwire layer

https://issues.apache.org/jira/browse/ARTEMIS-815 - remove unused imports
2017-02-16 17:37:50 +00:00
Clebert Suconic f660783df5 NO-JIRA: Removing spurious debug message 2017-02-16 12:05:44 -05:00
Ulf Lilleengen 4622066323 ARTEMIS-908: Replace lock by CAS to avoid deadlock 2017-02-15 10:26:02 -05:00
Andy Taylor d4790f00ba ARTEMIS-962 - improve the OpenMBean support for browsing
https://issues.apache.org/jira/browse/ARTEMIS-962
2017-02-14 11:27:51 -06:00
Jiří Daněk 27d739b47e ARTEMIS-504 update slow-consumer-check-period documentation 2017-02-14 11:24:26 -06:00
Justin Bertram ff3e75d148 NO-JIRA move RoutingType to different package 2017-02-13 09:50:41 -06:00
Justin Bertram f5599c6630 ARTEMIS-947 reload <addresses> on broker.xml change 2017-02-07 13:45:24 -06:00
Andy Taylor d937e8a8e1 ARTEMIS-945 - fix test and queue delete
https://issues.apache.org/jira/browse/ARTEMIS-945
2017-02-07 14:01:15 +00:00
Andy Taylor 43a9276484 ARTEMIS-866 - replication improvements
add functionality to allow live to vote for quorum on failure

Also allow the quorum size to be configurable.

https://issues.apache.org/jira/browse/ARTEMIS-866
2017-02-07 13:47:03 +00:00
Justin Bertram 15d693dd4e ARTEMIS-943 update/doc XML import/export 2017-02-06 15:09:55 -06:00
Francesco Nigro aacddfda61 ARTEMIS-906 Memory Mapped JournalType 2017-02-03 09:04:57 -05:00
Clebert Suconic ce035a8084 ARTEMIS-937 Implementing proper alignment and adding perf-journal tool to validate the journal syncs 2017-02-03 09:04:56 -05:00
Justin Bertram 1752814197 ARTEMIS-922 implement purge semantics 2017-01-31 08:37:05 -06:00
Howard Gao 5f3159f4c8 ARTEMIS-932 2 brokers can be started using the same store 2017-01-27 15:45:32 -05:00
Justin Bertram 113b28577c ARTEMIS-873 support byte notation in XML config 2017-01-19 10:32:38 -05:00
Will Reichert 3347a4fd27 ARTEMIS-928 Changing Netty and InVM to copy buffers, and retain them on the Netty Polls. 2017-01-18 16:59:32 -05:00
Clebert Suconic 7a7f335271 ARTEMIS-962 Adding test for CME when parsing system properties and a few tweaks 2017-01-18 16:18:05 -05:00
Jeff Mesnil 5ae47e8c3c ARTEMIS-962 Fix CME when parsing system properties
Add synchronized block against the properties before iterating on them.

JIRA: https://issues.apache.org/jira/browse/ARTEMIS-926
2017-01-18 15:56:35 +01:00
Martyn Taylor 118c272c77 ARTEMIS-560 Add Support For JDBC Paging 2017-01-17 14:58:53 -05:00
Justin Bertram 8cf94623a4 ARTEMIS-922 Rename deleteOnNoConsumers throughout
The name "deleteOnNoConsumers" isn't a good match for the semantics underneath.
The name "purgeOnNoConsumers" (and variants) is a better fit.
2017-01-17 11:40:56 -06:00
Justin Bertram 0d1fa83181 ARTEMIS-922 Addressing-related API clean-up 2017-01-16 14:40:42 -05:00
Clebert Suconic 599aaa5345 ARTEMIS-921 Fixing Slow Consumer when multiple consumers on same queue 2017-01-16 11:37:12 -05:00
Howard Gao 90cf239829 ARTEMIS-921 Consumers killed as slow even if overall consuming rate is above threshold 2017-01-16 11:37:12 -05:00
Justin Bertram 22c6a81135 ARTEMIS-914 use defaults for ReplicaPolicy 2017-01-11 14:18:16 -05:00
Clebert Suconic 9f9ffc1ff5 ARTEMIS-913 Slow consumer detection not working when paging 2017-01-09 12:34:13 -05:00
Justin Bertram f1d67df5e6 ARTEMIS-899 don't log stack trace on authn failure 2017-01-09 12:17:48 -05:00
Andy Taylor 6af85a2cc4 couple of small changes to JMX mbeans - no jira 2017-01-09 13:40:14 +00:00
Andy Taylor 83e83e7d87 ARTEMIS-911 - increase ack variable on individualAcknowledge
https://issues.apache.org/jira/browse/ARTEMIS-911
2017-01-09 13:40:14 +00:00
Dejan Bosanac 668f4721f0 https://issues.apache.org/jira/browse/ARTEMIS-815 - implement configurable wildcard addresses syntax
Rename WildCardConfigurationTest.java to WildcardConfigurationTest.java

adjust schema
2017-01-04 09:44:03 -06:00
Clebert Suconic b9a7e152f7 ARTEMIS-900 fix compatibility after address changes 2016-12-21 19:40:35 -05:00
Clebert Suconic 1bed2c9512 NO-JIRA cli improvements 2016-12-16 18:46:46 -06:00
Clebert Suconic df1ec5bc49 NO-JIRA: Fixing QueueCommandTest::autoDeleteAddress 2016-12-16 18:07:16 -05:00
Martyn Taylor e29b3913ac NO-JIRA Check Style Fix 2016-12-16 15:16:02 +00:00
Martyn Taylor 3e0ad2268b NO-JIRA Fix Issue with Auto Create Address 2016-12-16 09:06:59 -06:00
Francesco Nigro 03cc566c5d ARTEMIS-878 Fix compilation and tests 2016-12-16 09:34:02 -05:00
jbertram 31b5bdb026 NO-JIRA properly destroy JMS topic 2016-12-16 13:20:39 +00:00