Open vpa1977 opened 1 year ago
Appears to be some kind of runtime issue - the parameters passed in native code to the partitioner callback are identical, but the sample crashes when the debugger is attached.
Getting this too on an older version 1.8.2. Tears down the whole process thereby avoiding .net exception handling. Ubuntu 22.04.1 LTS
Setting a partitioner at topic level debugs fine, though obviously this means you need to know all your possible topics upfront.
Description
Using nuget 1.9.3 with dotnet 6.0.110 on Ubuntu 22.10 Also reproduced on Debian 11 with dotnet 6.0.402
Debugging an application that uses a producer with a default partitioner is impossible since it crashes in the partitioner callback
How to reproduce
Run the program below (an argument is a bootstrap server):
In run mode it prints:
In debug mode it crashes with the stack trace above.
Checklist
Please provide the following information: