Skip to content

storage: Deflake TestReplicaLease#25781

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
bdarnell:lease-test
May 21, 2018
Merged

storage: Deflake TestReplicaLease#25781
craig[bot] merged 1 commit intocockroachdb:masterfrom
bdarnell:lease-test

Conversation

@bdarnell
Copy link
Copy Markdown
Contributor

This introduction of proactive lease renewals (#25322) made this test
flaky in two ways. First, the test was (oddly) creating two Replica
objects for range 1 on the same store (since #2996), leading to races
when combined with the background lease renewal thread. Second, the
test expects leases to expire so it needs to disable automatic
renewals.

Fixes #25748

Release note: None

This introduction of proactive lease renewals (cockroachdb#25322) made this test
flaky in two ways. First, the test was (oddly) creating two Replica
objects for range 1 on the same store (since cockroachdb#2996), leading to races
when combined with the background lease renewal thread. Second, the
test expects leases to expire so it needs to disable automatic
renewals.

Fixes cockroachdb#25748

Release note: None
@bdarnell bdarnell requested review from a team and a-robinson May 21, 2018 20:35
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

@tbg
Copy link
Copy Markdown
Member

tbg commented May 21, 2018

:lgtm:, thanks!


Reviewed 1 of 1 files at r1.
Review status: all files reviewed at latest revision, all discussions resolved.


Comments from Reviewable

@bdarnell
Copy link
Copy Markdown
Contributor Author

bors r=tschottdorf

craig bot pushed a commit that referenced this pull request May 21, 2018
25781: storage: Deflake TestReplicaLease r=tschottdorf a=bdarnell

This introduction of proactive lease renewals (#25322) made this test
flaky in two ways. First, the test was (oddly) creating two Replica
objects for range 1 on the same store (since #2996), leading to races
when combined with the background lease renewal thread. Second, the
test expects leases to expire so it needs to disable automatic
renewals.

Fixes #25748

Release note: None

Co-authored-by: Ben Darnell <ben@cockroachlabs.com>
@craig
Copy link
Copy Markdown
Contributor

craig bot commented May 21, 2018

Build succeeded

@craig craig bot merged commit 2a365a9 into cockroachdb:master May 21, 2018
craig bot pushed a commit that referenced this pull request Aug 30, 2018
29296: backport-2.0: Fix test flakes caused by automatic lease renewal r=a-robinson a=a-robinson

Backport:
  * 1/1 commits from "storage: Adding testing knob to disable automatic lease renewals" (#25625)
  * 1/1 commits from "storage: Fix flaky TestReplicaNotLeaseHolderError" (#25676)
  * 1/1 commits from "storage: Deflake TestReplicaLease" (#25781)

Please see individual PRs for details.

/cc @cockroachdb/release

Fixes #29189. The flakiness was introduced to the 2.0 branch by #28931.

Co-authored-by: Alex Robinson <alexdwanerobinson@gmail.com>
Co-authored-by: Ben Darnell <ben@cockroachlabs.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants