-
Notifications
You must be signed in to change notification settings - Fork 7
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
WIP feat: support Kafka messages with nullable or empty partition key #87
base: main
Are you sure you want to change the base?
Conversation
0525ef7
to
7f1e964
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not ready to support Null partition keys
...ests/Core/Storages/Assertion/RetryDurableGuaranteeOrderedConsumptionPhysicalStorageAssert.cs
Show resolved
Hide resolved
...tegrationTests/Core/Storages/Assertion/RetryDurableLatestConsumptionPhysicalStorageAssert.cs
Show resolved
Hide resolved
src/KafkaFlow.Retry/Durable/Repository/RetryDurableQueueRepository.cs
Outdated
Show resolved
Hide resolved
src/KafkaFlow.Retry/Durable/Repository/RetryDurableQueueRepository.cs
Outdated
Show resolved
Hide resolved
using Xunit; | ||
|
||
[Collection("BootstrapperHostCollection")] | ||
public class EmptyPartitionKeyRetryDurableTests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's missing tests with the null partition key. But please check my other comment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can't test with a null partition because the Kafka flow doesn't support it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can test it if the test does not start with the production of a Kafka message but with a consumption. If we want to support null partition keys we should have a test for it.
abbcaca
…xtensions into us/support-nullable-partition-key
…xtensions into us/support-nullable-partition-key
Description
This merge request adds protection for the kafka messages that arrive without a value for the partition key (null or empty). The Retry will receive the messages and put them in the same queue and follow that order to process
Fixes # (10)
How Has This Been Tested?
We've made some unit and integration tests (see
EmptyPartitionKeyRetryDurableTests
class)Checklist
Disclaimer
By sending us your contributions, you are agreeing that your contribution is made subject to the terms of our Contributor Ownership Statement