433 Commits

Author SHA1 Message Date
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 2016-12-19 10:32:45 -05:00
Timothy Bish
31a79ea584 https://issues.apache.org/jira/browse/AMQ-6536
Add support for the receiver side of a sender link which carries a
desired capabilities array which can request to know if we support
delayed delivery, answer with an offered capability in that case.
(cherry picked from commit 4a1c05b628fbb3c97c394eebc6810a9786daca4e)
2016-12-13 12:37:50 -05:00
Christopher L. Shannon (cshannon)
8d1136e699 [maven-release-plugin] prepare for next development iteration 2016-12-05 09:35:12 -05:00
Christopher L. Shannon (cshannon)
2462711684 [maven-release-plugin] prepare release activemq-5.14.2 2016-12-05 09:33:48 -05:00
Timothy Bish
65d789b4e1 https://issues.apache.org/jira/browse/AMQ-6500
Better handle prefetch extension and pull consumers over Topics to avoid
the remote not receiving all the messages available based on the credit
it has issued.
(cherry picked from commit e050519ff6ae8079c5183f6e6372ddb3d03e91c7)
2016-11-18 12:18:53 -05:00
Timothy Bish
41ce86bd95 https://issues.apache.org/jira/browse/AMQ-6504
Round the start time value not truncate to ensure delay falls on the
correct side of the scheduling block.
(cherry picked from commit 980162233fd3693d1f83d3f95985ac33affa7a8f)
2016-11-11 14:53:35 -05:00
Timothy Bish
35bdd13724 NO-JIRA Add some additional validation.
(cherry picked from commit 097c0e7eae360f376b525448863e86452ebc06cc)
2016-11-11 14:53:31 -05:00
Timothy Bish
fd3853c24d https://issues.apache.org/jira/browse/AMQ-6498
Include the already received backlog when deciding to grant additional
credit to avoid excessive backlogs of messages during producer flow
control.
(cherry picked from commit 7cf7fba7aab05ea9c41bf009325c63a6798f6cc8)
2016-11-04 11:56:00 -04:00
Timothy Bish
a2c7433e7d https://issues.apache.org/jira/browse/AMQ-6486
Ensure that message with no header is marked as non-persistent.
(cherry picked from commit a2d92ef786ad6fd542afb82543784794321fd13d)
2016-10-26 19:05:11 -04:00
Timothy Bish
d005e1a856 https://issues.apache.org/jira/browse/AMQ-6485
Allow for inspection of Deliveries on Receivers and Delivery updates on
Senders.
(cherry picked from commit cec3245a9fd50ad1850bdf57d3935d42886cefe2)
2016-10-26 15:30:28 -04:00
Timothy Bish
80f877a734 https://issues.apache.org/jira/browse/AMQ-6484
make the validators thread safe
(cherry picked from commit b34336cc0adeb8908580631f979715852458a69b)
2016-10-26 14:49:15 -04:00
Timothy Bish
72b642c2d3 https://issues.apache.org/jira/browse/AMQ-6479
Allow a unit test to inspect AMQP frames as part of the test.
(cherry picked from commit 24a79413c66013818795360cf3ecc4489d1e4d5f)
2016-10-24 15:39:48 -04:00
Timothy Bish
b0ee133eaf NO-JIRA Add new test to receiver tests
test showing that remote close and not detach is triggered on close of
the receiver.
(cherry picked from commit 1a811b72ddfae5874016de71300e73d8a286a8c6)
2016-10-21 19:40:50 -04:00
Timothy Bish
8f301ed571 NO-JIRA Add new test for session close
Add a test that checks that closing a session does not provoke the
remote to close the session resources explicitly.
(cherry picked from commit bd8f17700c32652883c0372c85f5296276cd1128)
2016-10-21 12:58:06 -04:00
Timothy Bish
9363af6f37 NO-JIRA Add a close method to the session
(cherry picked from commit 4c838c5fa3c83782b1bfaa069f2beb7a87a7beaa)
2016-10-20 17:50:25 -04:00
Timothy Bish
335a490eac https://issues.apache.org/jira/browse/AMQ-6467
Fill in the source / target created for the requested dynamic node with
the actual attributes we are going to support.
(cherry picked from commit 10fc397ab72bcd3c111b517af687ccf4c9372ced)
2016-10-14 15:01:25 -04:00
Timothy Bish
d126afc8fe https://issues.apache.org/jira/browse/AMQ-6464
Correct handling of rejected outcome to archive the message in the DLQ
(cherry picked from commit a9f9d4a4d2ede752afa74b22394b80822052543d)
2016-10-14 09:36:03 -04:00
Timothy Bish
70728e97da NO-JIRA: Add some additional test variations and add some more checks
(cherry picked from commit 3e237ca73a9c9af18191ff4a23c456c1d427511e)
2016-10-13 14:29:55 -04:00
Timothy Bish
330deb2c89 NO-JIRA Add some additional testing around outcomes
(cherry picked from commit f71e0ee15b2c456dac28cf456deafb764221afa6)
2016-10-11 18:59:41 -04:00
Timothy Bish
c42f81514b https://issues.apache.org/jira/browse/AMQ-6460
Add better cleanup of connections on test failure.
(cherry picked from commit 1ac89543a8d7f969f84fa51d92c4e1e0d65f1161)
2016-10-07 18:49:46 -04:00
Timothy Bish
37c20ed19f NO-JIRA Add ability to set message reply-to for in tests
(cherry picked from commit 1316b57edba75336e02645abc3a7e8369526b2e8)
2016-10-06 15:52:04 -04:00
Timothy Bish
70432bf31c https://issues.apache.org/jira/browse/AMQ-6444
Fix failing tests
(cherry picked from commit a2995b7614a6e15af7958f78bd412ccab00589bb)
2016-10-06 15:04:04 -04:00
Timothy Bish
e2b1675a29 https://issues.apache.org/jira/browse/AMQ-6444
Remove some unneeded instance of checks and used cached values where
possible.
(cherry picked from commit baef8f8ec20ed3057895f6ec1e02ca6ea75a33a1)
2016-10-06 14:20:56 -04:00
Timothy Bish
a6d2a16b4c https://issues.apache.org/jira/browse/AMQ-6438
Better interop for MapMessage with Binary value in the entries of the
payload, should convert back and forth the byte to allow Message to be
treated as a MapMessage and not fall back to a BytesMessage encoding.
(cherry picked from commit d88c4e46ecffdba0040299df6efbcdc4171d1c3d)
2016-09-29 11:12:34 -04:00
Timothy Bish
aa32a0f792 https://issues.apache.org/jira/browse/AMQ-6444
Ensure that unsettled TX messages remain acquired and not redelivered to
the receiver.   Add several tests that demonstrate that a received
message can be released, rejected, accepted or modified after a TX
rollback if it was not settled.
(cherry picked from commit 0dd806f43f3bee9372ee9b9481089d417c265dfe)
2016-09-28 15:08:49 -04:00
Timothy Bish
aebb365ad4 https://issues.apache.org/jira/browse/AMQ-6438
Remove redundant tests and clean up a few small nits.
(cherry picked from commit 45f60e4133f64603d5f1a5161c363eb185d2804d)
2016-09-28 15:08:39 -04:00
Timothy Bish
4575bee670 https://issues.apache.org/jira/browse/AMQ-6438
Add a new test for encode / decode validation.  Fix issue where the
internal scheduled message properties were escaping into the outbound
message.
(cherry picked from commit b1a9a9382b837fb8cff7f9586c7f9516675bf78a)
2016-09-28 15:08:29 -04:00
Timothy Bish
9cb92a225f https://issues.apache.org/jira/browse/AMQ-6438
JMS Transformer performance improvements and bug fixes

Trim unnecessary code and improve overall performance of the JMS
Transformer codecs.  Remove legacy Qpid JMS client related code from the
transformer as these are no longer supported.  Fix outgoing message that
do not match the structure of the incoming message that created them such
as message with had only a body being sent out with Headers and message
Properties.

(cherry picked from commit 63d62a71f59ec485ac79e1ce40e98316d37ca14a)
2016-09-28 15:08:18 -04:00
Timothy Bish
95faf0d87c https://issues.apache.org/jira/browse/AMQ-6438
Add additional test for larger more complex AMQP message
(cherry picked from commit 5702ec8d7ca330c94d6e4b59cea4606285b2c196)
2016-09-28 15:08:09 -04:00
Timothy Bish
14c553a8ad https://issues.apache.org/jira/browse/AMQ-6438
Makes some improvements to the profiling test for the transformers.
(cherry picked from commit d4c7cce7d733df9fcdcd0daec4ce64fb3844ce64)
2016-09-28 15:07:56 -04:00
Christopher L. Shannon (cshannon)
9ab56d59cc [maven-release-plugin] prepare for next development iteration 2016-09-27 13:06:49 -04:00
Christopher L. Shannon (cshannon)
594c79e531 [maven-release-plugin] prepare release activemq-5.14.1 2016-09-27 13:06:12 -04:00
Clebert Suconic
195046c503 NO-JIRA: Adding an extra test on AmqpTransactionTest
The test I'm adding was back ported from Artemis.
It will validate if the ACKs are nacked in case of a connection.close();
To avoid a situation where the TX would sit on a Transaction Resource Manager somewhere like an XID.
2016-09-27 12:16:16 -04:00
gtully
8e6fe414ad https://issues.apache.org/jira/browse/AMQ-6422 - move delivery tracking to pumpoutbound and additional test that shows how the presettle case breaks. Thanks to Robbie Gemmell for the feedback 2016-09-27 12:16:05 -04:00
gtully
ebbb7ab437 https://issues.apache.org/jira/browse/AMQ-6422 - match proton sender view credit to prefetchExtension - tracking credit to dispatch delta to track additional flow requests. Proton sender layer is distinct from the transport layer - they mirror each other 2016-09-27 12:15:50 -04:00
Timothy Bish
0bb76c7fb4 NO-JIRA: Add some more variants of the .NET transaction tests
Adds ability to not settle accepted messages on the client to enable
creation of tests that are equivalent to the AmqpNetLite client's
transaction tests which hold settlement and expect the resource to
handle it on successful discharge.
2016-09-27 12:15:40 -04:00
Timothy Bish
9211661244 NO-JIRA: Small test client fix to close threads out faster. 2016-09-27 12:15:30 -04:00
Timothy Bish
12ee866a6e NO-JIRA: Add some additional tests ported from the .NET AMQP client
Adds some transaction tests ported from AMQP .NET client with some
variances based on the way the test client works and limitations in the
brokers handling of Transacted sends.
2016-09-27 12:15:18 -04:00
Timothy Bish
fa5514985d NO-JIRA AMQP Test updates
Adds support for doing sends and receives that are enrolled in a
transaction created in a session other than the session that created the
sender or receiver.  Adds some tests that show this in action.
2016-09-27 12:15:06 -04:00
Timothy Bish
14c5c5276c https://issues.apache.org/jira/browse/AMQ-6422
Adds a split consumer test that uses presettled receivers.
2016-09-27 12:14:55 -04:00
Timothy Bish
566e82614a https://issues.apache.org/jira/browse/AMQ-6422
Small fix to test and check for zero inflight on successive send to
destination that should have no credit on the registered receiver.
2016-09-27 12:14:43 -04:00
Timothy Bish
ca11674f37 https://issues.apache.org/jira/browse/AMQ-6422
Add test for credit grants but no settles for a single receiver.
2016-09-27 12:14:31 -04:00
Timothy Bish
a5a4262b54 Allow the AMQP test client to also be configure to trace frames
The test client can allow for quick tracing of the frame traffic via a
call to setTraceFrames on the client or connection instance before
connection to the remote.  This allows for tests to easily switch on /
off tracing.  The log4j.properties is also updated to output frame
tracing with the URI option is put on the AMQP transport or the client
value is enabled.  
Conflicts:
	activemq-amqp/src/test/resources/log4j.properties
2016-09-27 12:14:08 -04:00
Timothy Bish
b77b3c428b Add a test case for anonymous sender links using simple test client. 2016-09-27 12:13:04 -04:00
Timothy Bish
cc0e78790f https://issues.apache.org/jira/browse/AMQ-6422
I've made a few minor test changes and added a couple more cases.  Under
heavy CPU load I'm able to get test,
testReceiveMessageAndRefillCreditBeforeAcceptOnQueue to fail on the
second receive call where it should get the second message since it
granted credit.
2016-09-27 12:12:43 -04:00
gtully
94ffb1bf81 AMQ-6422 - include the inflight count in the prefetch for positive remote credit flows. Fix and test 2016-09-27 12:12:33 -04:00
Christopher L. Shannon (cshannon)
02d53a0d9f Revert "[maven-release-plugin] prepare release activemq-5.14.1"
This reverts commit 422b231c25bbf1af4695939468e80b9a2dbaa98b.
2016-09-27 11:57:35 -04:00
Christopher L. Shannon (cshannon)
354142adf1 Revert "[maven-release-plugin] prepare for next development iteration"
This reverts commit 47a652ef2a9bb876b324da65285a7de4fab25317.
2016-09-27 11:57:25 -04:00