feat(grpc-data): H2 consumer history client and deployed-connection history
GrpcDataConnection implements IDataHistoryService (explicitly; ReadHistoryAsync/ReleaseHistoryAsync avoid an overload clash with ReadAsync): the capabilities probe always asks for history, other calls send it only when the selected endpoint advertised it; per-call deadline min(remaining, HistoryTimeoutMilliseconds); FAILED_PRECONDITION/UNIMPLEMENTED => BadHistoryOperationUnsupported; chunks assembled within the request budget (BadTooManyOperations past it); page tokens wrapped with the issuing endpoint + serving incarnation so a resumed read never moves; release forwarded. The deployment lease gates history on the row's HistoryRead bit and carries HistoryTimeout. Decoded capabilities drop HistoryRead without the history field. X0 tests that used bit 32 as the unknown bit now use a still-reserved bit.
This commit is contained in:
@@ -1060,7 +1060,9 @@ public static class DataProtoMapper
|
||||
x.ProtocolMinor,
|
||||
DecodeServing(x.Serving),
|
||||
r,
|
||||
(DataOperations)(x.Operations & (uint)DataOperationSets.Understood),
|
||||
// H2: HistoryRead without the history capabilities field is no grant (the two only ever travel together).
|
||||
(DataOperations)(x.Operations & (uint)DataOperationSets.Understood
|
||||
& (DataHistoryProtoMapper.DecodeCapabilities(x.History) is null ? ~(uint)DataOperations.HistoryRead : uint.MaxValue)),
|
||||
kinds,
|
||||
new DataLimits(
|
||||
l.MaxPageItems,
|
||||
|
||||
Reference in New Issue
Block a user