-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: produce tombstone records (#547)
* fix: produce tombstone records * fix: cr * fix: fix integration test after cr
- Loading branch information
1 parent
79f8b1b
commit 082baf3
Showing
8 changed files
with
150 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
tests/KafkaFlow.IntegrationTests/Core/Handlers/NullMessageHandler.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using System.Threading.Tasks; | ||
|
||
namespace KafkaFlow.IntegrationTests.Core.Handlers; | ||
|
||
internal class NullMessageHandler : IMessageHandler<byte[]> | ||
{ | ||
public Task Handle(IMessageContext context, byte[] message) | ||
{ | ||
MessageStorage.AddNullMessage(message); | ||
return Task.CompletedTask; | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
tests/KafkaFlow.IntegrationTests/Core/Producers/NullProducer.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
namespace KafkaFlow.IntegrationTests.Core.Producers; | ||
|
||
public class NullProducer | ||
{ | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
082baf3
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.
The fix never produces a tombstone null value but defaults to an empty byte array when the provided value is null?
It doesn't even allow to use a custom serializer in case the value is null.
The documentation is updated to say that a
null
is needed and not an emptybyte
array to create a tombstone record?