Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WFLY-17309]: Upgrade Apache Artemis to 2.31.0 #17202

Merged
merged 4 commits into from
Sep 26, 2023

Conversation

ehsavoie
Copy link
Contributor

  • Upgrading to Apache Artemis 2.31.0
  • Upgrading Artemis native to 2.0.0
  • Upgrading wildfly-artemis-integration to 2.0.2.Final
  • Fixing json response changes in Artemis 2.28
  • Defining legacy behavior on paging through AddressSettings
  • Upgrading messaging subystem version to 16.0 to prepare for management model changes
  • Adding a new max-read-page-bytes attribute to be able to configure Artemis accordingly.

Issue:
https://issues.redhat.com/browse/WFLY-17309
https://issues.redhat.com/browse/WFLY-17700
https://issues.redhat.com/browse/WFLY-18004
https://issues.redhat.com/browse/WFLY-18000

 * Upgrading to Apache Artemis 2.31.0
 * Upgrading Artemis native to 2.0.0
 * Upgrading wildfly-artemis-integration to 2.0.2.Final
 * Fixing json response changes in Artemis 2.28

Jira: https://issues.redhat.com/browse/WFLY-17309

Signed-off-by: Emmanuel Hugonnet <ehugonne@redhat.com>
…th paging.

 * Defining legacy behavior on paging through AddressSettings

Jira: https://issues.redhat.com/browse/WFLY-17700

Signed-off-by: Emmanuel Hugonnet <ehugonne@redhat.com>
Upgrading to 16.0 to prepare for management model changes

Jira: https://issues.redhat.com/browse/WFLY-18004

Signed-off-by: Emmanuel Hugonnet <ehugonne@redhat.com>
@github-actions github-actions bot added the deps-changed Dependencies have been checked, and there are changes highlighted in a comment label Sep 21, 2023
@github-actions
Copy link

Dependency Tree Analyzer Output:

Major Version Changes:

  • org.apache.activemq:activemq-artemis-native:jar:1.0.2:compile -> 2.0.0

CC @wildfly/prod

…bytes.

 * Adding a new *max-read-page-bytes* attribute to be able to configure
   Artemis accordingly.

Jira: https://issues.redhat.com/browse/WFLY-18000

Signed-off-by: Emmanuel Hugonnet <ehugonne@redhat.com>
@ehsavoie
Copy link
Contributor Author

@bstansberry the 2 failures aren't related

@@ -124,6 +124,13 @@ public class AddressSettingDefinition extends PersistentResourceDefinition {
.setAllowExpression(true)
.build();

public static final SimpleAttributeDefinition MAX_READ_PAGE_BYTES = create("max-read-page-bytes", ModelType.INT)
.setDefaultValue(new ModelNode(-1))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this the right default, versus, say, no default? Artemis defaults to 2 * PAGE_SIZE_BYES.

Using the legacy value -1 saves us a potential server config migration issue, but at the cost of being stuck with -1 for a long time.

BTW the handling of default values for a number of attributes (including PAGE_SIZE_BYES) is incorrect in AddressSettings.createSettings. It checks if the relevant ModelNode is defined and if not it ignores the default.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that I don't pretend to understand all this, but does https://github.com/apache/activemq-artemis/pull/4552/files address one of the concerns with not using -1, i.e. that the server might silently stop processing?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. I agree we can do this but that will require users to set a proper value or they might meet with https://issues.redhat.com/browse/WFLY-17700
  2. I've created https://issues.redhat.com/browse/WFLY-18547 to track that

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, thanks. We talked and I'm ok with this or with some other default or even no default (which you don't think is a good idea, which is fine.)

Note also that we can tweak this between now and 30 Final in 2 weeks. But we should be get some form of this in by tomorrow or it should likely wait for WF 31.

@ehsavoie
Copy link
Contributor Author

@mnovak1 WDYT about the default value ? Do you agree with this PR ?

@bstansberry bstansberry merged commit ad4b818 into wildfly:main Sep 26, 2023
18 checks passed
@bstansberry
Copy link
Contributor

Thanks @ehsavoie

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deps-changed Dependencies have been checked, and there are changes highlighted in a comment
Projects
None yet
2 participants