Commit Graph

5168 Commits

Author SHA1 Message Date
Christopher L. Shannon (cshannon) bddfa4892b ARTEMIS-1803 - Pass ServerConsumer to messageExpired and
messageAcknowledged plugin callback methods

Knowing the consumer that expired or acked a message (if available) is
useful and right now a message reference only contains a consumer id
which by itself is not unique so the actual consumer needs to be passed
2018-04-14 10:34:09 -04:00
Clebert Suconic 5535af1a85 This closes #2011 2018-04-12 12:55:49 -04:00
Lionel Cons 1e81361a88 ARTEMIS-1740: Add support for regex based certificate authentication 2018-04-12 12:55:20 -04:00
Clebert Suconic 64f07518a7 This closes #1999 2018-04-11 14:37:44 -04:00
Howard Gao 6818762da8 ARTEMIS-1790 Improve Topology Member Finding
When finding out if a connector belong to a target node it compares
the whole parameter map which is not necessary. Also in understanding
the connector the best place is to delegate it to the corresponding
remoting connection who understands it. (e.g. INVMConnection knows
whether the connector belongs to a target node by checking it's
serverID only. The netty ones only need to match host and port, and
understanding that localhost and 127.0.0.1 are same thing).
2018-04-11 14:37:44 -04:00
Clebert Suconic 3384d6790e This closes #2009 2018-04-11 10:37:47 -04:00
Christopher L. Shannon (cshannon) 70f0908b4e ARTEMIS-1800 - Fix metrics decrement on scheduled message cancel
The queue metrics were being decremented improperly because on iteration
over the cancelled scheduled messages because the flag for fromMessageReferences was not
set to false. Setting the flag to false skips over the metrics update
which is what we want as the scheduled messages were never added to the
message references in the first place so the metrics don't need updating
2018-04-10 15:54:29 -04:00
Clebert Suconic fa3e37fdb9 This closes #2005 2018-04-10 13:38:43 -04:00
Howard Gao 1175d777b3 ARTEMIS-1797 Auto-create-address flag shouldn't avoid temp destination creation
When creating a temp destination and auto-create-address set to false, the
broker throws an error and refuse to create it. This doesn't conform to
normal use-case (like amqp dynamic flag) where the temp destination should
be allowed even if the auto-create-address is false.
2018-04-10 13:38:27 -04:00
Clebert Suconic 8d4bf953fb This closes #2006 2018-04-10 13:23:30 -04:00
Stanislav Knot 5063488b21 ARTEMIS-1798 DEBUG message bad write method arg count - fix 2018-04-10 13:23:30 -04:00
Clebert Suconic 171591d23d This closes #2007 2018-04-10 11:59:37 -04:00
Christopher L. Shannon (cshannon) 4795f7c6d0 ARTEMIS-1799 - Add a NotificationActiveMQServerPlugin
Adds a new plugin that will support sending new types of notifications
for broker events which will allow enhanced broker monitoring
2018-04-10 09:43:02 -04:00
Clebert Suconic e0334dff0e This closes #2002 2018-04-09 13:11:41 -04:00
Clebert Suconic 396056ce04 ARTEMIS-1796 AMQP flush during handshake can break SASL 2018-04-09 13:11:41 -04:00
Clebert Suconic 6ca5f9eda2 ARTEMIS-1791 fixing checkstyle on test 2018-04-09 12:13:31 -04:00
Clebert Suconic ce4670f294 This closes #2000 2018-04-09 11:11:45 -04:00
Howard Gao de5c0d51b9 ARTEMIS-1791 Large message files are not removed after redistribution across a cluster 2018-04-09 11:06:27 -04:00
Ingo Weiss c69d6b0476 [ARTEMIS-1791] Large message files are not removed after redistribution across a cluster
Issue: https://issues.apache.org/jira/browse/ARTEMIS-1791

Adding test
2018-04-09 11:06:09 -04:00
Clebert Suconic b05306dc0e This closes #1998 2018-04-06 14:00:03 -04:00
Justin Bertram a294dc9493 ARTEMIS-1701 strip zone id from IPv6 host 2018-04-06 14:00:02 -04:00
Clebert Suconic 619b2cb2a4 This closes #1996 2018-04-06 13:58:27 -04:00
Clebert Suconic e5bce13316 ARTEMIS-1776 Blocked Bridge is not resuming after reconnect
This is still part of ARTEMIS-1776 fix, which still part of the same release as we are on now.
Hence I'm not opening a new JIRA for this one.
2018-04-06 13:17:13 -04:00
Justin Bertram 57b9d979f5 This closes #1993 2018-04-05 10:49:57 -05:00
Clebert Suconic 4dd594f38b ARTEMIS-618 Using proper block size on Native One Mega Buffer
This buffer is used on fill
2018-04-05 10:49:57 -05:00
Clebert Suconic 97ccf96bb4 This closes #1990 2018-04-05 09:25:42 -04:00
Radovan Stancel 10849eb8ab [ARTEMIS-1770] Log warning when connection is closed 2018-04-05 08:26:26 +02:00
Clebert Suconic eec1099472 This closes #1992 2018-04-04 19:55:14 -04:00
Clebert Suconic dae1b7de1c ARTEMIS-1785 Producer CLI would throw NPEs if using Text Messages 2018-04-04 17:55:27 -04:00
Clebert Suconic 0bd99dfff7 ARTEMIS-1779 Fixing CoverityScan finding
There was a logic to validate if member is null.
Which seemed a bit weird considering the else would throw a NPE.
Fixing it proactively based on Coverity-scan findings.
2018-04-04 17:55:26 -04:00
Clebert Suconic 2feacd5d5d This closes #1991 2018-04-04 17:07:17 -04:00
Clebert Suconic 65db317176 NO-JIRA Providing information about failure on test
Travis CI has been reporting test failures.
Looking on logs I could see a critical failure happening but not much information on why.
This will help identify further issues.
2018-04-04 16:05:48 -04:00
Clebert Suconic 6ec375bdbe This closes #1985 2018-04-04 09:18:42 -04:00
Timothy Bish fc32bc0b07 ARTEMIS-1780 Handle conversion of large ObjectMessage types
Make sure the correct buffer is used when decoding the stored Core
message that originated from the conversion of an AMQP message sent and
annotated as a JMS ObjectMessage which trips the large message boundary.
2018-04-03 22:27:43 -04:00
Clebert Suconic 32090121d2 Revert "NO-JIRA fixing variable on a few examples"
This reverts commit eb3cc5cb67.

Reverting PR #1983
2018-04-03 20:33:12 -04:00
Clebert Suconic a8e81f2267 This closes #1984 2018-04-03 16:22:13 -04:00
Clebert Suconic f3e1ab337c ARTEMIS-1779 Small refactoring to logic on BridgeImpl::nodeUp logic 2018-04-03 16:22:13 -04:00
Howard Gao 262990fa67 ARTEMIS-1779 ClusterConnectionBridge may connect to other nodes than its target
The cluster connection bridge has a TopologyListener and connects to a new node
each time it receives a nodeUp() event. It needs to put a check here to make
sure that the cluster bridge only connects to its target node and it's backups.

This issue shows up when you run LiveToLiveFailoverTest.testConsumerTransacted
test.

Also in this commit improvement of BackupSyncJournalTest so that it runs more
stable.
2018-04-03 16:22:13 -04:00
Clebert Suconic 650c79ee0f This closes #1989 2018-04-03 11:01:39 -04:00
Francesco Nigro f6e8345dbe ARTEMIS-1772 Reduce memory footprint and allocations of QueueImpl
It includes:
- Message References: no longer uses boxed primitives and AtomicInteger
- Node: intrusive nodes no longer need a reference field holding itself
- RefCountMessage: no longer uses AtomicInteger, but AtomicIntegerFieldUpdater
2018-04-03 11:01:38 -04:00
Clebert Suconic c17f05de26 This closes #1983 2018-04-02 18:51:04 -04:00
Ingemar Allqvist eb3cc5cb67 NO-JIRA fixing variable on a few examples 2018-04-02 18:49:55 -04:00
Clebert Suconic 309729bbdb This closes #1980 2018-03-29 16:38:12 -04:00
Clebert Suconic c2955af164 ARTEMIS-1777 Adding Protocol specific into producer / consumer 2018-03-29 15:21:38 -04:00
Clebert Suconic b6a29a5b5f This closes #1981 2018-03-29 15:19:12 -04:00
Ingemar Allqvist 7fc895d270 NO-JIRA Added missing variable on artemis.profiler.cmd
An obvious fix is the missing definition of ARTEMIS_ETC_INSTANCE, in the Windows "artemis.profile.cmd"
2018-03-29 15:18:34 -04:00
Clebert Suconic 85c6e9b19c This closes #1974 2018-03-29 11:22:37 -04:00
Stanislav Knot d6ff3e55d3 NO-JIRA browsing messages do not change items per page 2018-03-29 11:22:37 -04:00
Clebert Suconic ef74221684 NO-JIRA Fixing FailoverTest
There's some debugging code I left on this test
causing cascade failures after a change made on JDBC.
2018-03-29 10:28:31 -04:00
Francesco Nigro 4dbd03e53b This closes #1979 2018-03-29 14:55:25 +02:00