9596 Commits

Author SHA1 Message Date
Timothy Bish
c4f8361d52 https://issues.apache.org/jira/browse/AMQ-6629
Allow for broker stats to be viewed in tests by enabling JMX but
disabling the creation of a management connector.
2017-03-15 10:09:05 -04:00
Christian Schneider
dea1accb98 [AMQ-6620] Workaround until the actual issue is fixed in karaf 2017-03-10 16:19:43 +01:00
Timothy Bish
1b73fd6b5f https://issues.apache.org/jira/browse/AMQ-6621
Fix year values and remove an outdated attribution.
(cherry picked from commit ef064953b471164a92c0808781244e9b98920b3b)
2017-03-08 14:12:45 -05:00
Christopher L. Shannon (cshannon)
e124f1db69 AMQ-6377: Storing JournalSyncStrategy as an enum
Switching MessageDatabase to store JournalSyncStrategy as its enum value
instead of String to avoid the performance penalty of comparing Strings
everytime isEnableJournalDiskSyncs() is called which currently happens
on every write.

(cherry picked from commit 0d824a8e6832419cb952ef503504c5296b069ad9)
2017-03-07 08:11:36 -05:00
gtully
7e3f344ea7 [AMQ-6606] - reset next batch so it does not get reused after error and refine fix to sync write batches b/c async locations will already be in the index
(cherry picked from commit 21ae1ef2e658a14f89bde79a83a32af340fb351a)
2017-03-07 08:07:33 -05:00
Dejan Bosanac
b8fc78ec6c https://issues.apache.org/jira/browse/AMQ-6470 - Remove unused ControlCommand handling in client
(cherry picked from commit 338a74dfa42a7b19d39adecacfa5f626a050e807)
2017-03-06 14:54:55 +01:00
gtully
2dfe0c7c29 [AMQ-6603] pull unnecessary guava dep from the new test
(cherry picked from commit eab9a0d05758fd0e8e83e7e482f4f0406cd9af5e)
2017-03-01 11:45:10 -05:00
Timothy Bish
4c5a70421c AMQ-6603 Stop tracking producer if creation failed
Track the message producer create and ensure it is not recreated on
failover if the creation resulted in an error response.  Add failover
level tests to cover consumer and producer failed create tracking.
(cherry picked from commit 90b808ab98b760f06885a5f45628353c9d2224f2)
2017-02-28 16:20:19 -05:00
gtully
5a52bf2a51 [AMQ-6603] ensure failover does not track consumer creation that fails with an exception, fix and test. Thanks for the test Tadayoshi Sato
(cherry picked from commit 8641928553e0f1d97416fd010c2f7d6f165b3660)
2017-02-28 16:20:08 -05:00
Christopher L. Shannon (cshannon)
6d848c440c [maven-release-plugin] prepare for next development iteration 2017-02-27 08:46:14 -05:00
Christopher L. Shannon (cshannon)
308eab0bb6 [maven-release-plugin] prepare release activemq-5.14.4 activemq-5.14.4 2017-02-27 08:45:01 -05:00
Christopher L. Shannon (cshannon)
2c737a32a1 NO-JIRA: Adding 5.14.4 schemas
(cherry picked from commit 67ad35d34289aa16c7fcc8f3ed94bb37882a8529)
2017-02-27 07:56:47 -05:00
Christopher L. Shannon (cshannon)
16de69502f AMQ-6610: Fixing JDBC test
Durable destinations need to always be loaded on connector start

(cherry picked from commit ef84db5e64b7a96a0c5c7271bd88642d940ba7a4)
2017-02-27 07:38:03 -05:00
gtully
22d5b51a0c [AMQ-6606] avoid partial writes to the end of the journal - revert offset increment on ioexception, fix and test
(cherry picked from commit d53b8f8d424e3cf51646b215007fc017717edf44)
2017-02-24 14:20:54 -05:00
gtully
1a67318fe9 [AMQ-6567] ensure gc file removal/move is completed after index updates to avoid dangling index referenced on partial failure. Fix and test
(cherry picked from commit 20522394cc747e64bd9f87e2e0b64d886c4dec62)
2017-02-24 14:17:34 -05:00
Christopher L. Shannon (cshannon)
0ee9420587 AMQ-6610 - Network connector mbean not registered on reload
On network connector add or update after broker start (such as the
runtime plugins) the mbean was not created.  There was also a couple of
other properties not set. Fixed the network connector start to be the
same for normal broker start and runtime reload.

(cherry picked from commit bab0887ed60907d4ccac1824d83371a592f94925)
2017-02-24 14:12:39 -05:00
Christopher L. Shannon (cshannon)
e575157093 AMQ-6602 - fix java 7 incompatibility
(cherry picked from commit 0cf64783d2cbae684f6d2d3e6c46801070f7fd77)
2017-02-24 06:37:55 -05:00
Christopher L. Shannon (cshannon)
789f82b34b AMQ-6602 - Removing lambdas for java 7 compatibility
(cherry picked from commit 1f53b124bcdc41e6241c811f6854c42855deaf6a)
2017-02-23 10:57:32 -05:00
Christopher L. Shannon (cshannon)
7ca411feee AMQ-6606 - fix typo
(cherry picked from commit 79069598b1435cadaef504d8d3de31777b869c59)
2017-02-23 10:22:26 -05:00
Christopher L. Shannon (cshannon)
b6a8c188ff AMQ-6602: Fix race condition in TaskRunnerFactory
Fixing a race condition in TaskRunnerFactory where if multiple threads
call createTaskRunner() at the same time some threads might see the
executor as null (if it hasn't finished initializing) leading to the
creation of extra DedicatedTaskRunner objects instead of sharing a
PooledTaskRunner.

(cherry picked from commit fe5164a404ebcb0879c1b769e16c00f475320419)
2017-02-23 10:20:59 -05:00
Christian Schneider
a85689d73c [AMQ-6605] Properly specify the tag libs we use 2017-02-17 18:11:58 +01:00
Christopher L. Shannon (cshannon)
7c84aca59f AMQ-6599 - Properly apply soTimeout value to TcpTransport
The soTimeout value needs to be applied to the TcpTransport as well as
the socket because the NIO transports use the value later on when
establishing a connection

(cherry picked from commit f6bf823dedba54dea40b597f1762ac6d7308ffa6)
2017-02-17 08:05:27 -05:00
Christian Schneider
2d4b13be3f [AMQ-6597] Do not add the camel component decriptors to activemq-osgi 2017-02-15 14:26:27 +01:00
gtully
727000f112 [AMQ-6587] - fix root cause of deletion candidate seeing sub. contention between adding sub to dests and adding dests to sub, also removing sub from dests twice could leave dest stat negative allowing invalid candidate for gc
(cherry picked from commit d86c98a68772aaa879e6a573fed1ab8382568c9e)
2017-02-10 08:05:35 -05:00
Christopher L. Shannon (cshannon)
3e66eccb55 https://issues.apache.org/jira/browse/AMQ-6595
Fixing tar permissions so that everything is 0755 or 0644 as it should
be

(cherry picked from commit 1d15908e71942ced7e4987273846976753a028f6)
2017-02-08 13:18:26 -05:00
gtully
2d4fb4cbab [AMQ-6587] additional contention window with new sub while gc is in progress - need to verify new sub is actually subscribed to the candidate for deletion. Fix and test
(cherry picked from commit 0ee4f5b84302daf8901363556d038e274c2defd5)
2017-02-07 10:04:44 -05:00
gtully
c5315d6d5e [AMQ-6571] use browsercompatspec cookie matcher - apply patch from Andrew Flegg with thanks
(cherry picked from commit 4f6c55ad67f8e080d5bc3adba124f5e76d9f0224)
2017-02-06 09:13:15 -05:00
gtully
8af72c2157 [AMQ-6587] - fix typo in test that needs 1.7 final
(cherry picked from commit 64b3203713161ee0dd5d8d1dbd74f4c4602f546c)
2017-02-06 09:07:04 -05:00
gtully
95dc0eba2b [AMQ-6587] ensure subs added to new destination before destination is exposed in the destination map. sort gc contention with wildcard subs and anonymous publish. fix and test
(cherry picked from commit e415d2921ec7eabeccdf7db4d1850caa68486de3)
2017-02-06 09:06:56 -05:00
gtully
93715d1bd6 [AMQ-6432] issue was journal scan on newly created ack file. I left the relevant braces from AMQ-6288 in place. Fix and test
(cherry picked from commit 9b64e188b59a395300a2f5d6022df9dbbae2f426)
2017-02-06 09:05:31 -05:00
gtully
3a848971ff [AMQ-6432] improve the logging to see the current offset
(cherry picked from commit e3b529129a490d760d21692736e7c0dda7e615e2)
2017-02-06 09:05:31 -05:00
Christian Schneider
fb2063d177 [AMQ-6591] Add missing import 2017-02-02 14:25:45 +01:00
Christopher L. Shannon (cshannon)
cc28f5dc39 https://issues.apache.org/jira/browse/AMQ-6590
Removing un-needed imports

(cherry picked from commit 83511c96e5cf91f348a81ecc3c4439aa345548dd)
2017-02-02 07:10:38 -05:00
Christopher L. Shannon (cshannon)
6a87e13eb3 https://issues.apache.org/jira/browse/AMQ-6590
Fix KahaDB index free page recovery on unclean shutdown so that existing
free pages will be tracked and not lost.

(cherry picked from commit 38d85be476a06fe9a1f60b4f38232d64a6d0398a)
2017-02-02 07:07:41 -05:00
Timothy Bish
58ab9b6c93 https://issues.apache.org/jira/browse/AMQ-6588
Add more detail to log output for easier tracking
(cherry picked from commit 9b9e3d36788d4b17d7033b9ee44c34a75ad33c17)
2017-02-01 16:16:04 -05:00
Christopher L. Shannon (cshannon)
cd82533f35 https://issues.apache.org/jira/browse/AMQ-6586
Merge branch 'AMQ-6586' into activemq-5.14.x

This closes #225
2017-01-31 15:34:54 -05:00
Krzysztof Sobkowiak
659d1f6ba5 [AMQ-6586] Compilation of activemq-unit-test fails 2017-01-31 20:36:13 +01:00
Christian Schneider
776418bae6 [AMQ-6584] Remove spring-aspects as it works with just the range fix 2017-01-30 15:31:37 +01:00
Christian Schneider
cd144e803b [AMQ-6584] Fix feature to make it work for karaf 4.1.0 2017-01-30 15:31:32 +01:00
Christopher L. Shannon (cshannon)
96f312ebe5 https://issues.apache.org/jira/browse/AMQ-6579
Remove incorrect dispatch counter increment on message expiration in
TopicSubscription when a pending limit strategy is set

(cherry picked from commit d0c95146c37f96ca69e1fe82c4b2fe9208f8184e)
2017-01-25 11:18:19 -05:00
Krzysztof Sobkowiak
a579023e78 [AMQ-6576] Problem while installing activemq-camel with Camel 2.17.x or 2.18.x
(cherry picked from commit 6534a83c40e07fc5f9edb1b6a89ae58dd6908456)
2017-01-25 07:38:36 -05:00
Christopher L. Shannon (cshannon)
1811d191af https://issues.apache.org/jira/browse/AMQ-1940
Queue purge now acquires the sendLock to prevent new messages from
coming in while purging.  The statistics are no longer zeroed out as
they should properly decrement as messages are removed.  These changes
should prevent the statistics from going negative.

(cherry picked from commit 56bb079c8227a2beee609b205c001d66597db98a)
2017-01-24 08:48:28 -05:00
Christopher L. Shannon (cshannon)
f947a74f4a https://issues.apache.org/jira/browse/AMQ-6572
On journal start use lastFileLength instead of maxFileLength when
checking for unused space in the last journal file as it is possible the
length of the last journal file is not the same length as maxFileLength

(cherry picked from commit 0ad62f722fef6c2123ef7acb116a80574a43c250)
2017-01-23 11:04:49 -05:00
Timothy Bish
cab6f73c9d https://issues.apache.org/jira/browse/AMQ-6563
ensure that the lock is always released in the load method.
(cherry picked from commit 281d600ae2f9ba6c6bc7bee0e8025698b9a76563)
2017-01-13 11:49:03 -05:00
Christopher L. Shannon (cshannon)
df7aa6e892 https://issues.apache.org/jira/browse/AMQ-6561
Stop connections on all connection attempt errors, not just security
exceptions, to prevent dangling open sockets.

(cherry picked from commit d9c74d7317677725a52466349f7ed91911664d3d)
2017-01-12 10:22:19 -05:00
Christopher L. Shannon (cshannon)
161ba22f61 https://issues.apache.org/jira/browse/AMQ-6560
Converting flags in TransportConnection to AtomicBoolean to reduce
synchronization and improve thread safety

(cherry picked from commit bdec3f6ddb7f1417690f3c89d07ea77f0d6d96e5)
2017-01-12 07:41:30 -05:00
Christopher L. Shannon (cshannon)
e4da98bd79 https://issues.apache.org/jira/browse/AMQ-6555
Fixing Scheduler so that a rescheduled task will first cancel the
existing task so it does not get orphaned from the task map.  Also
fixing Topic start so that it will only start once and not twice.

(cherry picked from commit 2769298cf64a10cd74320ad132b3677bac20a6cc)
2017-01-10 10:27:44 -05:00
Timothy Bish
71f51dc4c9 Clean up connection resources on failed connect.
(cherry picked from commit 8a34ca0ec742f9d3e71211802ac235a7ae88789b)
2016-12-21 17:19:37 -05:00
Christopher L. Shannon (cshannon)
b36262ebba [maven-release-plugin] prepare for next development iteration 2016-12-19 10:33:54 -05:00
Christopher L. Shannon (cshannon)
58dddb9181 [maven-release-plugin] prepare release activemq-5.14.3 activemq-5.14.3 2016-12-19 10:32:45 -05:00