fix(grpc-data): X0 node-side re-validation tolerates only the reserved bits; runtime logger via init property

P02 GrpcDataArtifactReadTests pins an arbitrary bit (1<<30) as a malformed row that fails closed; keep that and
tolerate only DataOperationSets.Reserved. P07 GrpcDataHotRouteContinuityTests reflects over the runtime constructor
shape, so the logger moves from a ctor parameter to an init property.
This commit is contained in:
Joseph Doherty
2026-11-23 17:52:54 -05:00
parent a5ef7ea6d8
commit 75cf5eb8f7
4 changed files with 31 additions and 11 deletions
@@ -212,7 +212,11 @@ public static class DataConnectionRegistration
var eligible = state.Generation > 0 && Enum.TryParse<RedundancyRole>(state.Role, out var actual)
&& DataConnectionRoleAdapter.MayAcquire(mode, state.WarmRole, actual);
return new DataConnectionConsumerRoleSnapshot(mode, eligible, state.Generation);
}, logger: sp.GetService<Microsoft.Extensions.Logging.ILoggerFactory>()?.CreateLogger<DataConnectionDeploymentRuntime>());
})
{
Logger = (Microsoft.Extensions.Logging.ILogger?)sp.GetService<Microsoft.Extensions.Logging.ILoggerFactory>()?.CreateLogger<DataConnectionDeploymentRuntime>()
?? Microsoft.Extensions.Logging.Abstractions.NullLogger.Instance,
};
return runtime;
});
services.AddSingleton(sp =>