Skip to content

backport-2.0: Fix test flakes caused by automatic lease renewal#29296

Merged
craig[bot] merged 3 commits intocockroachdb:release-2.0from
a-robinson:backport2.0-25625-25676-25781
Aug 30, 2018
Merged

backport-2.0: Fix test flakes caused by automatic lease renewal#29296
craig[bot] merged 3 commits intocockroachdb:release-2.0from
a-robinson:backport2.0-25625-25676-25781

Conversation

@a-robinson
Copy link
Copy Markdown
Contributor

Backport:

Please see individual PRs for details.

/cc @cockroachdb/release

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

a-robinson and others added 3 commits August 29, 2018 14:34
In order to fix the test flakes caused by automatic lease renewals

Fixes cockroachdb#25537
Fixes cockroachdb#25540
Fixes cockroachdb#25573
Fixes cockroachdb#25576
Fixes cockroachdb#25589
Fixes cockroachdb#25594
Fixes cockroachdb#25599
Fixes cockroachdb#25605
Fixes cockroachdb#25620

Release note: None
Caused by the proactive renewal of expiration-based leases (see cockroachdb#25322
and cockroachdb#25625 for more detail).

Fixes cockroachdb#25672

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
@a-robinson a-robinson requested a review from a team August 29, 2018 19:35
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

@a-robinson a-robinson requested a review from petermattis August 29, 2018 19:35
Copy link
Copy Markdown
Contributor

@benesch benesch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@a-robinson
Copy link
Copy Markdown
Contributor Author

bors r+

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Aug 29, 2018

Build failed

@a-robinson
Copy link
Copy Markdown
Contributor Author

Failed to perform checkout on agent: '/usr/bin/git clean -f -d -x' command failed.

bors r+

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>
@craig
Copy link
Copy Markdown
Contributor

craig bot commented Aug 30, 2018

Build succeeded

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.

4 participants