Skip to content

rpc: maxoffset check does not activate since PR #34197 #84027

@knz

Description

@knz

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.

image

(from pkg/rpc/context.go)

In PR #34197, we changed the code such that the Offset field is never set:

image

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 serverC-bugCode not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.T-kvKV TeamregressionRegression from a release.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions