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

com.google.cloud:google-cloud-pubsub (version 1.126.1) does not honour message ordering #1095

Closed
abclabs-jon opened this issue Apr 3, 2024 · 1 comment
Assignees

Comments

@abclabs-jon
Copy link

Expected Behavior

Messages published with an ordering key to a single region should be handled in order for subscriptions with message ordering enabled.

Actual Behaviour

After upgrading Micronaut from 3.8.10 to 4.3.7, subscribers started receiving messages out of order.

The root cause seems to be in com.google.cloud:google-cloud-pubsub: googleapis/java-pubsub#1889

io.micronaut.gcp:micronaut-gcp-pubsub:5.4.1 uses com.google.cloud:google-cloud-pubsub:1.126.1, which has the bug. Forcing an upgrade of that solved the issue for us:

    constraints {
        implementation("com.google.cloud:google-cloud-pubsub:1.127+") {
            because("https://github.com/googleapis/java-pubsub/issues/1889")
        }
    }

Steps To Reproduce

See googleapis/java-pubsub#1889

Environment Information

No response

Example Application

No response

Version

4.3.7

@turneand
Copy link

This should already be resolved in micronaut-platform 4.4.0, which brings in micronaut-gcp-pubsub 5.5.0, which brings in google-cloud-pubsub 1.128.0, which contains the fix for this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

No branches or pull requests

4 participants