question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No messages delivered on brokered addresses anymore

See original GitHub issue

We have done some performance tests, first by sending messages on an anycast address and then on a brokered address.

During the test with the brokered address, we got some errors in the broker that the corresponding queue is full:

2018-05-22 14:37:57,324 WARN [org.apache.activemq.artemis.protocol.amqp.proton.ProtonServerReceiverContext] AMQ119102: Address “event/LOAD_TEST_TENANT” is full.: ActiveMQAddressFullException[errorType=ADDRESS_FULL message=AMQ119102: Address “event/LOAD_TEST_TENANT” is full.]

In the router stats, these errors correspond to rejected messages.

Now the issue: Later messages on the brokered address don’t get delivered anymore - even when the size of the Artemis address is zero again. On the sender side in Hono we get a timeout. Looking at the router stats, these new messages increment the “undelivered” counter. Stats before:

Router Links
  type      dir  conn id  id     peer  class   addr                           phs  cap  undel  unsett  del    presett  psdrop  acc    rej  rel  mod  admin    oper
  ==================================================================================================================================================================
  endpoint  in   1        6                                                        250  0      0       26     0        0       26     0    0    0    enabled  up
  endpoint  out  1        7            local   temp.Zc9fZGY5eu8QBMf                250  0      0       26     26       0       0      0    0    0    enabled  up
  endpoint  out  15       30           mobile  event/LOAD_TEST_TENANT         0    250  0      0       2623   0        0       2623   0    0    0    enabled  up
  endpoint  out  5        31           mobile  telemetry/HEALTH_CHECK_TENANT  0    250  0      0       0      0        0       0      0    0    0    enabled  up
  endpoint  out  6        32           mobile  event/HEALTH_CHECK_TENANT      0    250  0      0       0      0        0       0      0    0    0    enabled  up
  endpoint  in   95       83                                                       250  0      0       34728  0        0       34728  0    0    0    enabled  up
  endpoint  out  95       84           local   temp.KsDwq5hpjW5bInE                250  0      0       34728  34728    0       0      0    0    0    enabled  up
  endpoint  in   169      128          mobile  event/HEALTH_CHECK_TENANT      1    250  0      0       0      0        0       0      0    0    0    enabled  up
  endpoint  out  169      129          mobile  event/HEALTH_CHECK_TENANT      0    250  0      0       0      0        0       0      0    0    0    enabled  up
  endpoint  in   170      130          mobile  event/HUB_TEAM_TENANT          1    250  0      0       0      0        0       0      0    0    0    enabled  up
  endpoint  out  170      131          mobile  event/HUB_TEAM_TENANT          0    250  0      0       0      0        0       0      0    0    0    enabled  up
  endpoint  in   171      132          mobile  event/LOAD_TEST_TENANT         1    250  0      0       15653  0        0       15653  0    0    0    enabled  up
  endpoint  out  171      133          mobile  event/LOAD_TEST_TENANT         0    250  200    0       15900  0        0       15653  247  0    0    enabled  up
  endpoint  in   172      134          mobile  event/SMOKE_TEST_TENANT        1    250  0      0       0      0        0       0      0    0    0    enabled  up
  endpoint  out  172      135          mobile  event/SMOKE_TEST_TENANT        0    250  0      0       0      0        0       0      0    0    0    enabled  up
  endpoint  in   173      136          mobile  event/PERF_TEST_TENANT         1    250  0      0       0      0        0       0      0    0    0    enabled  up
  endpoint  out  173      137          mobile  event/PERF_TEST_TENANT         0    250  0      0       0      0        0       0      0    0    0    enabled  up
  endpoint  in   33081    15620        mobile  $management                    0    250  0      0       1      0        0       1      0    0    0    enabled  up
  endpoint  out  33081    15621        local   temp.GeDiBp2KLr7VhZ+                250  0      0       0      0        0       0      0    0    0    enabled  up

Then, after having sent 7 messages on event/LOAD_TEST_TENANT:

Router Links
  type      dir  conn id  id     peer  class   addr                       phs  cap  undel  unsett  del    presett  psdrop  acc    rej  rel  mod  admin    oper
  ==============================================================================================================================================================
  endpoint  in   1        6                                                    250  0      0       26     0        0       26     0    0    0    enabled  up
  endpoint  out  1        7            local   temp.Zc9fZGY5eu8QBMf            250  0      0       26     26       0       0      0    0    0    enabled  up
  endpoint  in   95       83                                                   250  0      0       36648  0        0       36648  0    0    0    enabled  up
  endpoint  out  95       84           local   temp.KsDwq5hpjW5bInE            250  0      0       36648  36648    0       0      0    0    0    enabled  up
  endpoint  in   169      128          mobile  event/HEALTH_CHECK_TENANT  1    250  0      0       0      0        0       0      0    0    0    enabled  up
  endpoint  out  169      129          mobile  event/HEALTH_CHECK_TENANT  0    250  0      0       0      0        0       0      0    0    0    enabled  up
  endpoint  in   170      130          mobile  event/HUB_TEAM_TENANT      1    250  0      0       0      0        0       0      0    0    0    enabled  up
  endpoint  out  170      131          mobile  event/HUB_TEAM_TENANT      0    250  0      0       0      0        0       0      0    0    0    enabled  up
  endpoint  in   171      132          mobile  event/LOAD_TEST_TENANT     1    250  0      0       15653  0        0       15653  0    0    0    enabled  up
  endpoint  out  171      133          mobile  event/LOAD_TEST_TENANT     0    250  207    0       15900  0        0       15653  247  0    0    enabled  up
  endpoint  in   172      134          mobile  event/SMOKE_TEST_TENANT    1    250  0      0       0      0        0       0      0    0    0    enabled  up
  endpoint  out  172      135          mobile  event/SMOKE_TEST_TENANT    0    250  0      0       0      0        0       0      0    0    0    enabled  up
  endpoint  in   173      136          mobile  event/PERF_TEST_TENANT     1    250  0      0       0      0        0       0      0    0    0    enabled  up
  endpoint  out  173      137          mobile  event/PERF_TEST_TENANT     0    250  0      0       5      0        0       5      0    0    0    enabled  up
  endpoint  in   11       16383        mobile  event/PERF_TEST_TENANT     0    50   0      0       1      0        0       1      0    0    0    enabled  up
  endpoint  in   35814    16488        mobile  $management                0    250  0      0       1      0        0       1      0    0    0    enabled  up
  endpoint  out  35814    16489        local   temp.YPqAZFlsiDm7UT_            250  0      0       0      0        0       0      0    0    0    enabled  up

Restarting either router or broker resolves the issue.

The test is reproducible in our environment. Router and broker are from EnMasse 0.19.

We have assembled some log output with PN_TRACE_FRM=1:

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:20 (20 by maintainers)

github_iconTop GitHub Comments

1reaction
grscommented, May 31, 2018

Thanks, these show the problem clearly. It appears to be a bug in the broker, whereby it is not issuing credit once space opens up on the queue: https://issues.apache.org/jira/browse/ARTEMIS-1898

0reactions
kornyscommented, Dec 10, 2018

@grs artemis issue is resolved, so can we close this issue as well?

Read more comments on GitHub >

github_iconTop Results From Across the Web

11 Reasons Why Your Text Message Didn't Get Delivered
1. Your message was flagged as Spam by the recipient's carrier · You're sending suspicious links, especially if you're using a URL shortener...
Read more >
Producer flush never completes leading to non delivery of ...
Producer is producing messages to its own separate topic with single partition. There is only 1 Apache kafka broker is running. Complete setups ......
Read more >
Why aren't my messages delivering? - Text-Em-All
There are multiple reasons why a text message may fail to deliver. This guide explores some of the most common issues.
Read more >
6 ways to fix iMessage if your messages aren't being delivered
If your iMessage isn't delivered properly, make sure you have a reliable network connection. You should also try restarting your iPhone.
Read more >
Address Model · ActiveMQ Artemis Documentation
The queue is purged (it's messages are removed) and will not receive any more messages until a new consumer is attached. Open the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found