You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ro...@apache.org on 2017/03/31 10:55:29 UTC

[1/2] qpid-jms git commit: NO-JIRA: address race in tests to prevent sporadic failure

Repository: qpid-jms
Updated Branches:
  refs/heads/master 409ea8068 -> 05bbe2d05


NO-JIRA: address race in tests to prevent sporadic failure


Project: http://git-wip-us.apache.org/repos/asf/qpid-jms/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-jms/commit/8fd4487a
Tree: http://git-wip-us.apache.org/repos/asf/qpid-jms/tree/8fd4487a
Diff: http://git-wip-us.apache.org/repos/asf/qpid-jms/diff/8fd4487a

Branch: refs/heads/master
Commit: 8fd4487a04ad48271c920359d5af5867873f2db3
Parents: 409ea80
Author: Robert Gemmell <ro...@apache.org>
Authored: Fri Mar 31 11:46:19 2017 +0100
Committer: Robert Gemmell <ro...@apache.org>
Committed: Fri Mar 31 11:46:19 2017 +0100

----------------------------------------------------------------------
 .../integration/ConsumerIntegrationTest.java    | 22 ++++++++++++++++++++
 1 file changed, 22 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/8fd4487a/qpid-jms-client/src/test/java/org/apache/qpid/jms/integration/ConsumerIntegrationTest.java
----------------------------------------------------------------------
diff --git a/qpid-jms-client/src/test/java/org/apache/qpid/jms/integration/ConsumerIntegrationTest.java b/qpid-jms-client/src/test/java/org/apache/qpid/jms/integration/ConsumerIntegrationTest.java
index 67ffab2..a748e1a 100644
--- a/qpid-jms-client/src/test/java/org/apache/qpid/jms/integration/ConsumerIntegrationTest.java
+++ b/qpid-jms-client/src/test/java/org/apache/qpid/jms/integration/ConsumerIntegrationTest.java
@@ -1390,6 +1390,14 @@ public class ConsumerIntegrationTest extends QpidJmsTestCase {
             testPeer.expectReceiverAttach();
             testPeer.expectLinkFlowRespondWithTransfer(null, null, null, null, new AmqpValueDescribedType("content"), messageCount);
 
+            final CountDownLatch expected = new CountDownLatch(messageCount);
+            ((JmsConnection) connection).addConnectionListener(new JmsDefaultConnectionListener() {
+                @Override
+                public void onInboundMessage(JmsInboundMessageDispatch envelope) {
+                    expected.countDown();
+                }
+            });
+
             MessageConsumer consumer = session.createConsumer(queue);
             Message receivedMessage = null;
 
@@ -1400,6 +1408,9 @@ public class ConsumerIntegrationTest extends QpidJmsTestCase {
                 assertTrue(receivedMessage instanceof TextMessage);
             }
 
+            // Ensure all the messages arrived so that the matching below is deterministic
+            assertTrue("Expected transfers didnt occur: " + expected.getCount(), expected.await(5, TimeUnit.SECONDS));
+
             // Expect the client to then drain off all credit from the link.
             testPeer.expectLinkFlow(true, true, equalTo(UnsignedInteger.valueOf(DEFAULT_PREFETCH - messageCount)));
 
@@ -1450,6 +1461,14 @@ public class ConsumerIntegrationTest extends QpidJmsTestCase {
             testPeer.expectReceiverAttach();
             testPeer.expectLinkFlowRespondWithTransfer(null, null, null, null, new AmqpValueDescribedType("content"), messageCount);
 
+            final CountDownLatch expected = new CountDownLatch(messageCount);
+            ((JmsConnection) connection).addConnectionListener(new JmsDefaultConnectionListener() {
+                @Override
+                public void onInboundMessage(JmsInboundMessageDispatch envelope) {
+                    expected.countDown();
+                }
+            });
+
             MessageConsumer consumer = session.createConsumer(queue);
 
             int consumeCount = 3;
@@ -1462,6 +1481,9 @@ public class ConsumerIntegrationTest extends QpidJmsTestCase {
                 assertTrue(receivedMessage instanceof TextMessage);
             }
 
+            // Ensure all the messages arrived so that the matching below is deterministic
+            assertTrue("Expected transfers didnt occur: " + expected.getCount(), expected.await(5, TimeUnit.SECONDS));
+
             // Expect the client to then drain off all credit from the link.
             testPeer.expectLinkFlow(true, true, equalTo(UnsignedInteger.valueOf(DEFAULT_PREFETCH - messageCount)));
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


[2/2] qpid-jms git commit: QPIDJMS-279: fix docs typo, tweak for consistency with surrounding entries

Posted by ro...@apache.org.
QPIDJMS-279: fix docs typo, tweak for consistency with surrounding entries


Project: http://git-wip-us.apache.org/repos/asf/qpid-jms/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-jms/commit/05bbe2d0
Tree: http://git-wip-us.apache.org/repos/asf/qpid-jms/tree/05bbe2d0
Diff: http://git-wip-us.apache.org/repos/asf/qpid-jms/diff/05bbe2d0

Branch: refs/heads/master
Commit: 05bbe2d050b33e6cf8377ea8993e8cffb746d5da
Parents: 8fd4487
Author: Robert Gemmell <ro...@apache.org>
Authored: Fri Mar 31 11:54:32 2017 +0100
Committer: Robert Gemmell <ro...@apache.org>
Committed: Fri Mar 31 11:54:32 2017 +0100

----------------------------------------------------------------------
 qpid-jms-docs/Configuration.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/05bbe2d0/qpid-jms-docs/Configuration.md
----------------------------------------------------------------------
diff --git a/qpid-jms-docs/Configuration.md b/qpid-jms-docs/Configuration.md
index e0c8d02..340af11 100644
--- a/qpid-jms-docs/Configuration.md
+++ b/qpid-jms-docs/Configuration.md
@@ -178,7 +178,7 @@ The complete set of SSL Transport options is listed below:
 + **transport.trustAll** Whether to trust the provided server certificate implicitly, regardless of any configured trust store. Defaults to false.
 + **transport.verifyHost** Whether to verify that the hostname being connected to matches with the provided server certificate. Defaults to true.
 + **transport.keyAlias** The alias to use when selecting a keypair from the keystore if required to send a client certificate to the server. No default.
-+ **transport.useEpoll** When true the transport will use the a native Epoll layer if available instead of the NIO based version which can improve performance (defaults to true).
++ **transport.useEpoll** When true the transport will use the native Epoll layer when available instead of the NIO layer, which can improve performance. Defaults to true.
 
 ### Websocket Transport Configuration options
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org