Closed attributeerror closed 4 months ago
Oops- this was a flaw in my logic, not with the library. No branch predicate was passing which is why it was consuming all of the messages yet supposedly not doing anything.
For anyone else with this issue in the future, I would highly recommend a catch-all branch predicate (where the very last predicate in the list always returns true) so that you can spot this easier.
Thanks @attributeerror for the follow up. You are right, a good practice is to have a default branch at the end in case of any predicate match.
Description
I am running into an issue where I'm using branching to determine which Avro schema should be used to serialise a message, but the stream processor is simply consuming all of the messages and not outputting to any downstream topic.
How to reproduce
Create 2 or more models from Avro schemas (I don't think the data matters in this case), then use AvroGen to create the C# models. I have provided a snippet of my code below as to how I set the branches up.
Setup stream topology code snippet
```c# StreamBuilder builder = new(); ListMy
RouteMapping
class is then as follows:The
RoutingKeys
field should be a List of RegEx patterns to match with the incoming key.Assembly Information
Streamiz.Kafka.Net
Nuget version: v1.5.1Apache Kafka
version: 3.3.1Client configuration
:Operating system
: Windows 10Logs attached: stream processor logs.txt
Checklist
Please provide the following information: