805 Commits

Author SHA1 Message Date
Christopher L. Shannon (cshannon)
86fbf957e9 Revert "AMQ-6947 - Update Queue metrics on expiration"
This reverts commit bca0af4133a6e226783f8e953f1abe7d4e165743.
2018-04-18 12:35:01 -04:00
Christopher L. Shannon (cshannon)
bca0af4133 AMQ-6947 - Update Queue metrics on expiration
The updated dropMessage method only decrements the destination metrics
if a message is removed from the pagedInMessages list to prevent
duplicate updates.  There is also a case where we still need to update
metrics if the message never makes it into the pagedInMessages list in
the first place and that is on expiration so this patch fixes that. A
couple existing tests found this issue.

(cherry picked from commit 6e468b4540754cad5cd30de373cadc026c998669)
2018-04-18 09:06:31 -04:00
Christopher L. Shannon (cshannon)
1fe096cb2a AMQ-6947 - Make sure counters are updated correct on message drop
Only update metrics counters when message is removed from the
pagedInMessages list which is important to check in case of duplicates

(cherry picked from commit 021c82859cf4361eb31b21fdbac17655ae9e368d)
2018-04-17 08:25:56 -04:00
Christopher L. Shannon (cshannon)
a0a240372f AMQ-6940 - fix compilation attempt 2 2018-03-30 06:31:04 -04:00
Christopher L. Shannon (cshannon)
9346fb3638 AMQ-6940 - Fix compilation 2018-03-30 06:29:25 -04:00
Christopher L. Shannon (cshannon)
21a594c8e8 AMQ-6940 - Add flag to disable TopicSubscription in flight stats
To save memory usage in some use cases add a new flag to PolicyEntry
called useTopicSubscriptionInflightStats to allow disabling the
inflight stats

(cherry picked from commit 65b0f2ad0d48845ad54681ac0eff832de122e2a9)
2018-03-29 13:26:13 -04:00
Christopher L. Shannon (cshannon)
cae382063e AMQ-6940 - Reduce memory footprint for inflight statistics
For the TopicSubscription case we can reduce the inflight statistics
memory footprint by not storing the entire message reference for in
flight messages and instead just a subset of the information needed.

(cherry picked from commit f69fd6f0020290752a7424479821c22d94f9b8b7)
2018-03-29 09:02:20 -04:00
Christopher L. Shannon (cshannon)
2ca46c561b AMQ-6924 - Fix StoreDurableSubscriberCursor non-persistent message add
StoreDurableSubscriberCursor now properly uses a timeout value when
attempting to add to the temporary store for non-persistent messages to
prevent an indefinite wait on free space

(cherry picked from commit 5e2adc0ed7dfe2e827bdef878f1c8cde12ff5773)
2018-03-09 07:41:38 -05:00
Christopher L. Shannon (cshannon)
bb2db5741b [maven-release-plugin] prepare for next development iteration 2018-01-29 08:46:14 -05:00
Christopher L. Shannon (cshannon)
bd4285d3aa [maven-release-plugin] prepare release activemq-5.15.3 2018-01-29 08:42:12 -05:00
Christopher L. Shannon (cshannon)
164312f888 NO-JIRA: Add missing license headers
(cherry picked from commit e5de25f4fc7401c4b5888bb9836eb5a6886bada2)
2018-01-29 08:12:16 -05:00
Łukasz Dywicki
3e9ee71062 AMQ-6861 Allow customisation of network bridge creation logic. 2017-12-20 22:17:17 -05:00
gtully
0464d53233 [AMQ-6847] limit the retry loop to one iteration overa all pending messages such that new additions are not replayed to avoid duplicates
(cherry picked from commit 03b19b9da4d50c3bb8985f930e93596c7d994d26)
2017-12-19 07:18:12 -05:00
gtully
eb9e50f3c9 [AMQ-6847] pause dispatch for message move to avoid redelivery with pending ack/remove/audit rollback
(cherry picked from commit 2ea5d1420bbbf90bd151e19a75e6ca33c773f1f4)
2017-12-19 07:18:01 -05:00
Christopher L. Shannon (cshannon)
94aea677ac AMQ-6875 - Use the correct destination for Virtual destination consumers
when using Virtual Topics

(cherry picked from commit 56baba96c657d4e44b88955a964d6c92ff39b822)
2017-12-14 16:02:06 -05:00
Christopher L. Shannon (cshannon)
1cfc9ff9a6 (AMQ-6858) - add extra precautionary check for demand subs
also remove test that intermittently fails with timing issues

(cherry picked from commit 08aa5118ffcd8dfc4ec813d799a61ef1ee4421d1)
2017-11-16 07:50:53 -05:00
Christopher L. Shannon (cshannon)
247243c9c1 AMQ-6858 - handle resync of network proxy durables after restart
We need to properly handle the re-addition of network proxy durables
after the brokers are restarted so removal is done properly

(cherry picked from commit 6013441a9a7c4a13f7412d6d72638de0f420e6a3)
2017-11-16 07:50:40 -05:00
Christopher L. Shannon (cshannon)
39d6321a4a AMQ-6858 - Allow configuration of the client Id token in network bridge
The client id token that is used to separate parts of a generated local
client id in a network bridge should be configurable so bridge names and
broker names can contain underscores if desired

(cherry picked from commit 3ca439cadaa8c40f506aa1ef683b36624d216254)
2017-11-16 07:50:31 -05:00
Christopher L. Shannon
97fe20a572 AMQ-6858 - reworking durable subscription propagation fix
Significantly reworking previous fix so that the client id is properly
changed when tracking network proxy subscriptions. This makes it so
removal is done properly

(cherry picked from commit 41211c78d19b545a2352584d3598346aa3705be4)
2017-11-16 07:50:19 -05:00
Christopher L. Shannon (cshannon)
d5a987b6a5 AMQ-6858 - Fix several durable subscription bridge propagation issues
Durable network proxy subs will now be properly created across multiple
bridges when 3 or more brokers are used.  Demand will be properly synced
and removed.

(cherry picked from commit 96ce14b278fef9e5f428f1c3c07ce5c09fd8f9a8)
2017-11-16 07:50:12 -05:00
Christopher L. Shannon (cshannon)
c4d460bf60 [maven-release-plugin] prepare for next development iteration 2017-10-17 10:16:08 -04:00
Christopher L. Shannon (cshannon)
9e595d8674 [maven-release-plugin] prepare release activemq-5.15.2 2017-10-17 10:09:04 -04:00
Christopher L. Shannon (cshannon)
a218119e6b [maven-release-plugin] prepare for next development iteration 2017-09-28 10:45:21 -04:00
Christopher L. Shannon (cshannon)
d17a8740fc [maven-release-plugin] prepare release activemq-5.15.1 2017-09-28 10:28:20 -04:00
Christopher L. Shannon (cshannon)
1d0121ccd4 Revert "[maven-release-plugin] prepare release activemq-5.15.1"
This reverts commit 756b858fa458757a0a5824c6ffe94e684c5771c9.
2017-09-28 10:05:01 -04:00
Christopher L. Shannon (cshannon)
756b858fa4 [maven-release-plugin] prepare release activemq-5.15.1 2017-09-28 09:59:18 -04:00
Christopher L. Shannon (cshannon)
76474fbc67 Revert "[maven-release-plugin] prepare release activemq-5.15.1"
This reverts commit 37227fbf8bf2308d45dddb169483864007ef5560.
2017-09-27 08:54:44 -04:00
Christopher L. Shannon (cshannon)
ade1a87e09 Revert "[maven-release-plugin] prepare for next development iteration"
This reverts commit e2eabeb1c2a8234d2763238eae8a2a143e1860a6.
2017-09-27 08:54:36 -04:00
gtully
26788f5fd7 [AMQ-6824] - fix up prefetchExtension growth on transaction completion and delivered ack and tie in boolean usePrefetchExtension
(cherry picked from commit 41a100766c19655816d575841ba559d33c63313d)
2017-09-26 14:34:47 -04:00
Christopher L. Shannon (cshannon)
e2eabeb1c2 [maven-release-plugin] prepare for next development iteration 2017-09-25 09:23:32 -04:00
Christopher L. Shannon (cshannon)
37227fbf8b [maven-release-plugin] prepare release activemq-5.15.1 2017-09-25 09:17:38 -04:00
Erik Wramner
e1699d58c8 AMQ-6808 preserve destination for browsed scheduled messages
(cherry picked from commit c691124d3288ffc9299bedca69b952952f2cbcf6)
2017-09-15 09:03:58 -04:00
Dejan Bosanac
9387451412 https://issues.apache.org/jira/browse/AMQ-6799 - stop the jmx server connector properly
(cherry picked from commit 5e656d394ce73d6f7d9e72f46348ed7dc9b6240c)
2017-09-07 12:14:45 -04:00
Dejan Bosanac
ccf8dbe28b https://issues.apache.org/jira/browse/AMQ-6799 - IOExceptionHandler during the startup
(cherry picked from commit c7291f1ecfefec7aad6fcf168e298e2ef0af8ed7)
2017-09-07 12:14:35 -04:00
gtully
0924f983f8 [AMQ-6792] fire the failover exception handler before stop to ensure blocked write does not block stop request
(cherry picked from commit 63f0b7e20d56837b4f159e83594a4e4fb906cd4a)
2017-09-07 12:14:23 -04:00
Christian Schneider
d5dfadd8d0 [AMQ-6788] Explain how to fix the problem in the exception
(cherry picked from commit 8646bb1010d2632f5d405fe1761c2b9c99a0a139)
2017-09-07 12:13:55 -04:00
gtully
3b6ba778bd [AMQ-6643] refine fix to allow wildcard subs to non wildcard subscription queues, enable simple wildcard sub to drain all subscription queues
(cherry picked from commit a67c75a9e15c9957aedc0bc8c4aa89952a4c5ea0)
2017-09-07 12:13:40 -04:00
gtully
035baf1722 [AMQ-6787] release securty context on failure to addConnection subsequent to auth, resolve leak. fix and test
(cherry picked from commit a15626193c8d3c099b0bcf1e605b892b533a4d3e)
2017-09-07 12:13:29 -04:00
gtully
1bba73dcb6 [AMQ-6778] fix and test - no longer gate firing advisory on broker start flag b/c consumers may be present once transport connectors have started
(cherry picked from commit ddfa96028c4c803467b0c074b8c1b4d3e5f9687d)
2017-09-07 12:10:55 -04:00
gtully
7ab743a053 [AMQ-6764] add logging of exit of jmx ops such that overlaps and delays are visible in the audit. fix and test
(cherry picked from commit d7f70837b7e80d41e45362c1327f4d9af25335e1)
2017-09-07 12:09:56 -04:00
Christopher L. Shannon (cshannon)
eca72dc81a AMQ-6798 - Clean up store usage object on Queue stop
When queues are stopped the StoreUsage object needs to be stopped so it
will be removed from the parent StoreUsage.  This allows the object to
be garbage collected and prevents a memory leak.

(cherry picked from commit 35bd3ad938f5c378b17a34980d2f3480bf3bbfc3)
2017-08-24 09:25:13 -04:00
Christopher L. Shannon (cshannon)
e7956b527d NO-JIRA: Incrementing version to 5.15.1-SNAPSHOT 2017-06-27 13:52:45 -04:00
Christopher L. Shannon (cshannon)
5f0d6943cb [maven-release-plugin] prepare release activemq-5.15.0 2017-06-27 13:41:01 -04:00
Christopher L. Shannon (cshannon)
2311749aa2 AMQ-6706 - Protecting preShutdownHooks with an AtomicBoolean 2017-06-20 11:05:29 -04:00
Zoran Regvart
155461a0ba
AMQ-6706 Allow for hooks before broker stop occurs
When Camel is run embedded within ActiveMQ it's shutdown is called at
the point the broker is already stopped, this can lead to data loss as
there could be exchanges that have not ended.
This adds the ability to specify preStopHook(s) that can be invoked
during ActiveMQ shutdown but before the broker is shutdown.

With this Camel can gracefully shutdown while the broker is still
started.
2017-06-19 14:29:05 +02:00
gtully
b07821ab64 [AMQ-6625] remove kahadbioexceptionhandler by pushing allowIOResumption into persistence adapter. This allows the lease locker to still be used with kahadb for stopStartConnectors support 2017-06-15 17:28:31 +01:00
gtully
df3bd83c0d [AMQ-6703] check for enable audit false 2017-06-15 11:22:20 +01:00
gtully
99f3d4c505 [AMQ-6703] have jmx purge clear the audit such that messages can be copied back, fix and test 2017-06-15 10:46:23 +01:00
gtully
b6cb0eacea [AMQ-6702] add maxProducersToAudit and maxAuditDepth to dead letter strategy to cofigure the audit, fix and test 2017-06-13 14:26:15 +01:00
Christopher L. Shannon (cshannon)
2a0b785a04 AMQ-6698 - Allow timeout of SSL handshake for auto+nio+ssl
The handshake now takes place inside of the async task that timesout so
that if the SSL handshake takes too long the connection attempt will
honor protocolDetectionTimeout and actually timeout.  Also, change the
default of protocolDetectionTimeout to 30 seconds so it matches the rest
of the broker's default connection timeout settings.
2017-06-08 12:34:15 -04:00