-
Notifications
You must be signed in to change notification settings - Fork 4k
Closed
Labels
A-kv-serverRelating to the KV-level RPC serverRelating to the KV-level RPC serverC-bugCode not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.T-kvKV TeamKV TeamregressionRegression from a release.Regression from a release.
Description
Found while investigating #84017.
Describe the problem
The MaxOffset check during RPC heartbeats depends on the Offset field being set in-between PingRequest heartbeats by the client.
(from pkg/rpc/context.go)
In PR #34197, we changed the code such that the Offset field is never set:
Meanwhile, we also do not currently (neither then, nor now) have a unit test that verifies that the MaxOffset check runs on hearbeats, so this regression could not be caught then.
Expected Behavior
The hearbeat check includes the Offset field again, and there's a test to confirm that.
Jira issue: CRDB-17418
Metadata
Metadata
Assignees
Labels
A-kv-serverRelating to the KV-level RPC serverRelating to the KV-level RPC serverC-bugCode not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.T-kvKV TeamKV TeamregressionRegression from a release.Regression from a release.

