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

chore: Apply fix for github.com/apache/pulsar/issues/22811 only for affected versions #1232

Conversation

entvex
Copy link
Contributor

@entvex entvex commented Aug 12, 2024

What does this PR do?

This commit changes the default Pulsar image from version 3.2.3 to 3.0.6. Additionally, it updates the logic to specifically handle image version v3.2.0-3 and 3.3.0 due to known issues in certain versions. As it is fixed in 3.2.4 and 3.3.1. Please see https://pulsar.apache.org/release-notes/

Why is it important?

Right now the fix is applied to the latest tag. Which can cause issues. If the user decides to use the latest tag or use an Apache Pulsar version with the issue resolved.

How to test this PR

Ran all the tests

Copy link

netlify bot commented Aug 12, 2024

Deploy Preview for testcontainers-dotnet ready!

Name Link
🔨 Latest commit 5690b5c
🔍 Latest deploy log https://app.netlify.com/sites/testcontainers-dotnet/deploys/66d721c77ebe9d000852f384
😎 Deploy Preview https://deploy-preview-1232--testcontainers-dotnet.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@entvex entvex marked this pull request as draft August 12, 2024 12:48
@entvex entvex changed the title Only handle the time issue in the affcted Pulsar versions and Update default Pulsar image to 3.3.1 Only handle the time issue in the affcted Pulsar versions and Update default Pulsar image Aug 14, 2024
@entvex entvex force-pushed the token-expiry-has-been-fixed-in-pulsar branch 3 times, most recently from c37d6a9 to f46627b Compare August 23, 2024 08:24
@entvex entvex marked this pull request as ready for review August 23, 2024 08:25
@entvex
Copy link
Contributor Author

entvex commented Aug 23, 2024

I have made the changes and if it all looks good to you. Then it is ready to merge 😄

Copy link
Collaborator

@HofmeisterAn HofmeisterAn left a comment

Choose a reason for hiding this comment

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

Thanks for the PR. Could you please remove the unnecessary changes (such as whitespaces) to keep the PR changes to a bare minimum?

@HofmeisterAn HofmeisterAn added module An official Testcontainers module chore A change that doesn't impact the existing functionality, e.g. internal refactorings or cleanups labels Aug 29, 2024
@entvex
Copy link
Contributor Author

entvex commented Aug 31, 2024

Thanks for the PR. Could you please remove the unnecessary changes (such as whitespaces) to keep the PR changes to a bare minimum?

Sure i'll try 👍

@entvex entvex force-pushed the token-expiry-has-been-fixed-in-pulsar branch from 0af766f to bc4e60f Compare September 3, 2024 11:30
@entvex
Copy link
Contributor Author

entvex commented Sep 3, 2024

I have removed the unnecessary white spaces.
Sorry it took so long @HofmeisterAn

@entvex entvex force-pushed the token-expiry-has-been-fixed-in-pulsar branch from bc4e60f to 3e6ff58 Compare September 3, 2024 11:41
The default Pulsar image version changed from "3.2.3" to "3.0.6" due to a known regression impacting versions "3.2.0-3.2.3" and "3.3.0". The regression resulted in the expiry time being converted to an incorrect unit of time.
The revision improves the check for affected versions by introducing the 'IsVersionAffectedByRegression' method, which accepts a version and returns true if the version is impacted by the regression.
The formatting of the PulsarContainer.cs and PulsarBuilder.cs files was also updated for better readability.
In addition, the `docs/modules/index.md` file was updated to reflect the new Pulsar version, making it easier for users to use the correct version.
@entvex entvex force-pushed the token-expiry-has-been-fixed-in-pulsar branch from 3e6ff58 to 39f6e42 Compare September 3, 2024 11:45
@HofmeisterAn HofmeisterAn changed the title Only handle the time issue in the affcted Pulsar versions and Update default Pulsar image chore: Apply fix for github.com/apache/pulsar/issues/22811 only for affected versions Sep 3, 2024
@HofmeisterAn HofmeisterAn merged commit 934d7f0 into testcontainers:develop Sep 3, 2024
11 checks passed
Copy link
Collaborator

@HofmeisterAn HofmeisterAn left a comment

Choose a reason for hiding this comment

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

Thanks for the PR and adjustments.

@entvex entvex deleted the token-expiry-has-been-fixed-in-pulsar branch September 3, 2024 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore A change that doesn't impact the existing functionality, e.g. internal refactorings or cleanups module An official Testcontainers module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants