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.

Addresses fail to become ready if globalMaxSize is omitted from the infraconfig

See original GitHub issue

Describe the bug

If globalMaxSize is omitted from the standardinfraconfig or brokeredinfraconfig, addresses associated with addressspaces using that infraconfig will fail to become ready.

Internally, the agent fails like this:

2020-08-11T15:19:22.832Z agent INFO  [broker-4fdeff9-seeu-0] all connectors exist
2020-08-11T15:19:22.841Z agent INFO  [broker-4fdeff9-seeu-0] Adding/updating address settings: myqueue
2020-08-11T15:19:22.847Z agent ERROR [broker-4fdeff9-seeu-0] Failed to create new address setting myqueue: null
2020-08-11T15:19:22.847Z agent ERROR [broker-4fdeff9-seeu-0] Failed to retrieve broker address setting: myqueue null
2020-08-11T15:19:22.847Z agent ERROR [broker-4fdeff9-seeu-0] failed to retrieve addresses: null
2020-08-11T15:19:22.847Z agent WARN  Rescheduling failed serialized func (null) in 5000ms.

Tracing the Agent’s interaction with the Broker, the addAddressSetting management function fails on the Broker with java.lang.IllegalArgumentException. Examining with a debugger reveals that the maxSizeByte argument is null. The reason this is null is because the Agent’s calculation has produced a NaN value. The NaN value occurs when the globalMaxSize is not passed via the BROKER_GLOBAL_MAX_SIZE environment variable.

java.lang.IllegalArgumentException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.apache.activemq.artemis.core.server.management.impl.ManagementServiceImpl.invokeOperation(ManagementServiceImpl.java:817)
        at org.apache.activemq.artemis.core.server.management.impl.ManagementServiceImpl.handleMessage(ManagementServiceImpl.java:441)
        at org.apache.activemq.artemis.core.server.impl.ServerSessionImpl.handleManagementMessage(ServerSessionImpl.java:2034)
        at org.apache.activemq.artemis.core.server.impl.ServerSessionImpl.send(ServerSessionImpl.java:1803)

To Reproduce Steps to reproduce the behavior:

  1. Go to ‘…’
  2. Click on ‘…’
  3. Scroll down to ‘…’
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
vbuschcommented, Aug 20, 2020

@lulf yes it does. I am working on better handling for the case where the is no globalMaxSize and no broker.memory set. Then I will raise a PR against master (0.33), and afterwards I can cherry-pick it to 0.32.

0reactions
lulfcommented, Aug 20, 2020

Thats a good catch @vbusch . Does this affect existing 0.32 releases?

Read more comments on GitHub >

github_iconTop Results From Across the Web

AMQ Online 1.5.x Resolved Issues - Red Hat Customer Portal
The AMQ Online 1.5.4 release is now available for download from the ... Addresses fail to become ready if globalMaxSize is omitted from...
Read more >
Paging · ActiveMQ Artemis Documentation
It DOES NOT mean that the total overall size of all matching addresses is limited to max-size-bytes. Use global-max-size or global-max-messages for that!...
Read more >
enmasse/CHANGELOG.md at master - GitHub
... #5130: Addresses fail to become ready if globalMaxSize is omitted from the infraconfig; #5203: Remove redundant call to oapi endpoint (#5204) ...
Read more >
If global-max-size is hit address is blocked - Stack Overflow
When you hit global-max-size then the address-full-policy (i.e. BLOCK in your case) will be enforced on the address.
Read more >
OpenShift Guide (0.33.0) - EnMasse
Address space is not ready and clients are unable to connect to messaging endpoints ... If omitted, the version is assumed to be...
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