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

io.vertx.kafka.client.consumer.OffsetAndMetadata equals and hashcode contract #274

Open
arkadiuszpalka opened this issue Aug 6, 2024 · 0 comments
Labels

Comments

@arkadiuszpalka
Copy link

Version

4.5.9

Context

The io.vertx.kafka.client.consumer.OffsetAndMetadata doesn't respect the equals and hashcode contract. I encountered it while I was writing unit tests and IMO it looks like a bug because io.vertx.kafka.client.common.TopicPartition respects that contract.

Do you have a reproducer?

No, please evaluate these expressions:

// Kotlin
OffsetAndMetadata(1, null) == OffsetAndMetadata(1, null) // false
TopicPartition("MOCK_TOPIC", 1) == TopicPartition("MOCK_TOPIC", 1) // true

Steps to reproduce

Not needed

Extra

java -version

openjdk version "17.0.10" 2024-01-16
OpenJDK Runtime Environment Homebrew (build 17.0.10+0)
OpenJDK 64-Bit Server VM Homebrew (build 17.0.10+0, mixed mode, sharing)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant