Skip to content

Commit

Permalink
kvcoord: Disable follower reads for TestProxyTracing
Browse files Browse the repository at this point in the history
This commit disables follower reads for the test TestProxyTracing. We
noticed that sometimes, the test gets slow, and by the time we issue a
read request, it's served via follower reads instead of proxying it to
the leaseholder.

Fixes: #135493

Release note: None
  • Loading branch information
iskettaneh committed Nov 25, 2024
1 parent 39e2cc2 commit c43cf5f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/kv/kvclient/kvcoord/dist_sender_server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4847,6 +4847,9 @@ func TestProxyTracing(t *testing.T) {
}
kvserver.RangefeedEnabled.Override(ctx, &st.SV, true)
kvserver.RangeFeedRefreshInterval.Override(ctx, &st.SV, 10*time.Millisecond)
// Disable follower reads to ensure that the request is proxied, and not
// answered locally due to follower reads.
kvserver.FollowerReadsEnabled.Override(ctx, &st.SV, false)
closedts.TargetDuration.Override(ctx, &st.SV, 10*time.Millisecond)
closedts.SideTransportCloseInterval.Override(ctx, &st.SV, 10*time.Millisecond)

Expand Down

0 comments on commit c43cf5f

Please sign in to comment.