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:
@@ -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 =>
|
||||
|
||||
Reference in New Issue
Block a user