Skip to content

Minor updates to text message sync#2209

Merged
cshannon merged 1 commit into
apache:mainfrom
cshannon:2188-follow-on
Jul 10, 2026
Merged

Minor updates to text message sync#2209
cshannon merged 1 commit into
apache:mainfrom
cshannon:2188-follow-on

Conversation

@cshannon

Copy link
Copy Markdown
Contributor

This is a small follow on to #2188 to simply some of the sync by moving to the method level and also adding sync in a spot or 2 that got missed.

This commit also updates the race condition test to add all the other message types to show that they do not suffer from the same race condition with null bodies either.

As noted in #2188, only text message needs sync because the other message types do not null out the marshalled content when unmarshalling. Properties are also ok because unmarshalling properties do not clear the marshalled properties either (unless told to at specific spots in the broker when reduceMemoryFootPrint is true)

This is a small follow on to apache#2188 to simply some of the sync by moving
to the method level and also adding sync in a spot or 2 that got missed.

This commit also updates the race condition test to add all the other
message types to show that they do not suffer from the same race
condition with null bodies either.

@jbonofre jbonofre left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM.

The test could be simplified imho, but that's allright.

@cshannon cshannon merged commit 04b5193 into apache:main Jul 10, 2026
10 checks passed
@cshannon cshannon deleted the 2188-follow-on branch July 10, 2026 12:07
@github-project-automation github-project-automation Bot moved this from Backlog to Done in Apache ActiveMQ v6.3.0 Jul 10, 2026
cshannon added a commit to cshannon/activemq that referenced this pull request Jul 10, 2026
This is a small follow on to apache#2188 to simply some of the sync by moving
to the method level and also adding sync in a spot or 2 that got missed.

This commit also updates the race condition test to add all the other
message types to show that they do not suffer from the same race
condition with null bodies either.

(cherry picked from commit 04b5193)
cshannon added a commit that referenced this pull request Jul 10, 2026
This is a small follow on to #2188 to simply some of the sync by moving
to the method level and also adding sync in a spot or 2 that got missed.

This commit also updates the race condition test to add all the other
message types to show that they do not suffer from the same race
condition with null bodies either.

(cherry picked from commit 04b5193)
cshannon added a commit that referenced this pull request Jul 10, 2026
This is a small follow on to #2188 to simply some of the sync by moving
to the method level and also adding sync in a spot or 2 that got missed.

This commit also updates the race condition test to add all the other
message types to show that they do not suffer from the same race
condition with null bodies either.

(cherry picked from commit 04b5193)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants