activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clebertsuconic <...@git.apache.org>
Subject [GitHub] activemq-artemis pull request #1081: ARTEMIS-1011 adjust slow-consumer detec...
Date Thu, 09 Mar 2017 21:30:05 GMT
Github user clebertsuconic commented on a diff in the pull request:

    https://github.com/apache/activemq-artemis/pull/1081#discussion_r105275625
  
    --- Diff: tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/SlowConsumerTest.java
---
    @@ -244,6 +245,49 @@ public void testSlowConsumerSpared() throws Exception {
        }
     
        @Test
    +   public void testSlowConsumerWithBurst() throws Exception {
    +      ClientSessionFactory sf = createSessionFactory(locator);
    +
    +      ClientSession session = addClientSession(sf.createSession(true, true));
    +
    +      ClientProducer producer = addClientProducer(session.createProducer(QUEUE));
    +
    +      final int numMessages = 20;
    +
    +      for (int i = 0; i < numMessages; i++) {
    +         producer.send(createTextMessage(session, "m" + i));
    +      }
    +
    +      assertPaging();
    +
    +      final Queue queue = server.locateQueue(QUEUE);
    +
    +      queue.getRate();
    +
    +      logger.info("Creating consumer...");
    +
    +      ClientConsumer consumer = addClientConsumer(session.createConsumer(QUEUE));
    +      session.start();
    +
    +      Wait.waitFor(new Wait.Condition() {
    +         @Override
    +         public boolean isSatisfied() throws Exception {
    +            forceGC();
    --- End diff --
    
    was this needed? forceGC is heavy


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message