Skip to content

Add Pulsar 4.0.x smoke test #43532

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

Closed

Conversation

onobc
Copy link
Contributor

@onobc onobc commented Dec 16, 2024

Unfortunately, I missed the fact that the 3.3.3 version of Pulsar (which is the version in Boot 3.4.x and Spring for Apache Pulsar 1.2.x) is the last patch release of the the 3.3.x line. The next LTS version is 4.0.x.

I knew that 4.0.x was released a few weeks prior to SP 1.2.0 and SB 3.4.0 but I missed the detail about it being the last patch release and the team decided not to jump a major version in a minor SB/SP version. Otherwise, I would have recommended that we update to 4.0.x.

Hindsight is 20/20....

So, this PR adds a compatibility test for users that want to update to Pulsar 4.0.1 client in Spring Boot apps. I have done the same on the Spring for Apache Pulsar framework version 1.2.x and it all works well.

Note

This is the same approach taken for Tomcat 11

This commit adds a smoke test to verify basic functionality with the
Pulsar 4.0.x client.
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Dec 16, 2024
Comment on lines +8 to +15
configurations.all {
resolutionStrategy.eachDependency {
if (it.requested.group == 'org.apache.pulsar' &&
!(it.requested.name.startsWith('pulsar-client-reactive'))) {
it.useVersion '4.0.1'
}
}
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I really really do not like the fact that this is 99.98% the same as spring-boot-smoke-test-pulsar. These lines are the ONLY difference between the modules. I wanted to keep this PR simple but if there is an approach already in place to respect DRY that would be a great polish commit on this.

Copy link
Member

Choose a reason for hiding this comment

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

I think in this case the duplication is fine. The samples aren't published and we can drop this one in Boot 3.5 and just revert to having a single smoke test.

@philwebb philwebb added type: task A general task and removed status: waiting-for-triage An issue we've not yet triaged labels Dec 16, 2024
@philwebb philwebb added this to the 3.4.x milestone Dec 16, 2024
@philwebb philwebb self-assigned this Dec 17, 2024
@philwebb philwebb modified the milestones: 3.4.x, 3.4.1 Dec 17, 2024
philwebb pushed a commit that referenced this pull request Dec 17, 2024
This commit adds a smoke test to verify basic functionality with the
Pulsar 4.0.x client.

See gh-43532
@philwebb philwebb closed this in 155f8d3 Dec 17, 2024
@onobc onobc deleted the add-pulsar-4_0_x-compat-test branch May 27, 2025 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: task A general task
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants