NullReferenceException
from SqlInternalTransaction.GetServerTransactionLevel()
#2879
Labels
⏳ Waiting for Customer
Issues/PRs waiting for user response/action.
Describe the bug
We had an incident with database which resulted in several errors from server. Unfortunatelly I don't have details on exact reason for it, could be low memory conditions as I see
RADAR_PRE_LEAK_64
error in event logs for one of our apps. But one of errors was NRE from SqlClient code with following stack traces:To reproduce
No idea, but other errors we seen were:
and
last one is actually incorrect according to documentation as we don't use distributed transaction. Maybe related to #2683 but not sure as we don't use encryption.
Expected behavior
Dunno, server error handling in a way it doesn't throw NRE.
Further technical details
Microsoft.Data.SqlClient version: 5.1.4 (a bit old, but I don't see any functional changes to
SqlInternalTransaction
code in newer versions).NET target: net8.0
SQL Server version/Operating system:
Microsoft SQL Server 2019 (RTM-CU28-GDR) (KB5042749) - 15.0.4390.2 (X64) Aug 12 2024 13:08:42 Copyright (C) 2019 Microsoft Corporation Web Edition (64-bit) on Windows Server 2019 Datacenter 10.0 <X64> (Build 17763: ) (Hypervisor)
Additional context
There was report with same error before #1121
The text was updated successfully, but these errors were encountered: