You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and you construct admin client specifying log handler
and you start debug
plus you are on linux (Ubuntu)
than this test will crash xunit:
Exit code is 0
Last runner error: Process /usr/share/dotnet/dotnet:1045272 exited with code '0'.
--- EXCEPTION #1/1 [LoggerException]
Message = “Process /usr/share/dotnet/dotnet:1045272 exited with code '0'.”
StackTraceString = “
at JetBrains.Util.ILoggerEx.LogMessage(ILogger logger, LoggingLevel level, String message) in LogMessage.il:line IL_002E mvid 6007
at JetBrains.Util.ILoggerEx.Error(ILogger logger, String message) in Error.il:line IL_0000 mvid 6007
at JetBrains.ReSharper.UnitTestFramework.Execution.TestRunner.TestRunnerRunStrategy.AnalyseProcessCrash(ProcessExitedUnexpectedlyException ex, IUnitTestRun run) in AnalyseProcessCrash.il:line IL_006B mvid 6F31
If you run
How to reproduce
usingConfluent.Kafka;usingMicrosoft.Extensions.Logging;usingNSubstitute;usingXunit;namespaceReproductionNamespace;publicclassReproduction{[Fact]publicvoidFailingOnDebug(){varlogger=Substitute.For<ILogger<Reproduction>>();varadminClientBuilder=newAdminClientConfig();adminClientBuilder.BootstrapServers="kafkainvalid:9092";// On debug this will crash xunit test runnervarclient=newAdminClientBuilder(config:adminClientBuilder).SetLogHandler((_,message)=>logger.LogError("a: {message}",message)).Build();}}
Dropping SetLogHandler or providing valid bootstrap server or running without debug works normally.
This is not reproducible on Windows host.
Checklist
Please provide the following information:
[Y] A complete (i.e. we can run it), minimal program demonstrating the problem. No need to supply a project file.
[2.6.1 ] Confluent.Kafka nuget version.
[-] Apache Kafka version.
[Y ] Client configuration.
[Linux] Operating system.
[N] Provide logs (with "debug" : "..." as necessary in configuration).
[N] Provide broker log excerpts.
[Y/N/?] Critical issue.
The text was updated successfully, but these errors were encountered:
Description
Possibly related issue: #2357, when:
than this test will crash xunit:
If you run
How to reproduce
Dropping
SetLogHandler
or providing valid bootstrap server or running without debug works normally.This is not reproducible on Windows host.
Checklist
Please provide the following information:
The text was updated successfully, but these errors were encountered: