fix(grpc-data): H3 review round 3 S4 — budget stop keys on a typed consumer marker, not the diagnostic
ProjectedHistoryAccess stopped the request on any BadTooManyOperations whose diagnostic contained "budget", which also matched the ORIGIN's "remainder budget is full" refusal and then refused later nodes, including Good ones. DataHistoryReadResult gains an internal ConsumerBudgetRefused flag (never on the wire) set only by the gRPC connection's own assembly refusal. Red on revert: the origin refusal of A refused B.
This commit is contained in:
@@ -262,6 +262,14 @@ public sealed record DataHistoryReadResult(string CorrelationId, uint StatusCode
|
||||
string? Diagnostic = null, bool ChunkContinues = false)
|
||||
: IDisposable
|
||||
{
|
||||
/// <summary>
|
||||
/// Consumer-side only, never on the wire (H3 review round 3): this <c>BadTooManyOperations</c> is the CONSUMER's own
|
||||
/// assembly-budget refusal (the gRPC connection's chunk assembly or sub-batch split ran out of the request's byte
|
||||
/// budget) — not an origin's refusal (e.g. its remainder budget), whose text may also mention a budget. A caller that
|
||||
/// stops the request on a spent budget keys on this flag, never on <see cref="Diagnostic"/>.
|
||||
/// </summary>
|
||||
internal bool ConsumerBudgetRefused { get; init; }
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
foreach (var sample in Samples) sample.Dispose();
|
||||
|
||||
+1
@@ -13,6 +13,7 @@
|
||||
<None Include="README.md" />
|
||||
<InternalsVisibleTo Include="ZB.MOM.WW.OtOpcUa.Core.Abstractions.Tests" />
|
||||
<InternalsVisibleTo Include="ZB.MOM.WW.OtOpcUa.Runtime" />
|
||||
<InternalsVisibleTo Include="ZB.MOM.WW.OtOpcUa.Runtime.Tests" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
Reference in New Issue
Block a user