fix(sql): review minors - superseded-reader polls, rebind faults, disposed-reader guard, JSON position (R06 G2 review m-1 m-2 m-4 m-6 m-7)
m-1: a poll that captured a reader a rebind then disposed retries once on the current reader; with no newer reader the typed SqlPollReaderDisposedException is marked classified, so HandlePollError no longer degrades for it. Groups report a disposed reader as a sentinel so WhenAll surfaces the typed exception, not a bare cancel. m-2: TryAddRef refuses new groups once Dispose ran, matching the doc comment. m-4: a rebind / tag-table failure in InitializeAsync now writes Faulted with a sanitized reason (generation-checked) and host Stopped instead of latching Initializing with no LastError. m-6: SecurityClass-as-descriptor is documented at the Sql site (Commons field is a follow-up). m-7: a position-less JsonException renders '?' instead of blanks. Refs #744 Claude-Session: https://claude.ai/code/session_01Ub9hGmYLQvn9XETzw7CMsT
This commit is contained in:
@@ -81,6 +81,11 @@ public sealed class SqlReinitConfigAdoptionTests
|
||||
"old-server",
|
||||
customMessage:
|
||||
"a reinitialize that could not resolve its new connection must leave the previous binding whole");
|
||||
|
||||
// Review m-4: the failure is a fault with a reason, never a latched Initializing with no LastError.
|
||||
var health = driver.GetHealth();
|
||||
health.State.ShouldBe(Core.Abstractions.DriverState.Faulted);
|
||||
health.LastError.ShouldNotBeNull().ShouldContain("could not adopt its configuration");
|
||||
}
|
||||
|
||||
/// <summary>An empty/placeholder document keeps the constructor-supplied binding, so the many lifecycle
|
||||
|
||||
Reference in New Issue
Block a user