test(grpc-data): H4 review 7 — diagnostics snapshot round-trips on the cluster serializer; old-shape payloads decode
Round-trips NodeDiagnosticsSnapshot (OriginHistory, HistoryVariants and the other H4 members) through the serializer Akka picks for the fleet-diagnostics reply, and decodes payloads stripped of the H4 members. The origin flag is renamed NoPeerTrafficYet (default false): Akka's JSON serializer fills a missing constructor argument with the CLR default, so a payload without it must never claim it.
This commit is contained in:
@@ -57,9 +57,10 @@ public sealed record DataConnectionDiagnosticsSnapshot(
|
||||
/// <param name="ReadsGood">Remote history items answered Good since process start.</param>
|
||||
/// <param name="ReadsUncertain">Remote history items answered Uncertain since process start.</param>
|
||||
/// <param name="ReadsBad">Remote history items answered Bad (including refusals) since process start.</param>
|
||||
/// <param name="PeerServicesStarted">
|
||||
/// False while no peer has called this node since start: the origin data services are created on the first peer call, so
|
||||
/// the zeros are "no peer traffic yet", not missing evidence. True once they run (and from a sender that predates the flag).
|
||||
/// <param name="NoPeerTrafficYet">
|
||||
/// True while no peer has called this node since start: the origin data services are created on the first peer call, so
|
||||
/// the zeros are "no peer traffic yet", not missing evidence. False once they run. Default false, so a payload without the
|
||||
/// member (Akka's JSON serializer fills a missing constructor argument with the CLR default) never claims it.
|
||||
/// </param>
|
||||
public sealed record OriginHistoryDiagnostics(bool Available, int Sessions, int OpenContinuations, long ReadsGood,
|
||||
long ReadsUncertain, long ReadsBad, bool PeerServicesStarted = true);
|
||||
long ReadsUncertain, long ReadsBad, bool NoPeerTrafficYet = false);
|
||||
|
||||
Reference in New Issue
Block a user