Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

batcheval: delete flaky integration test #106502

Merged
merged 1 commit into from
Jul 12, 2023

Conversation

aliher1911
Copy link
Contributor

@aliher1911 aliher1911 commented Jul 10, 2023

TestLeaseCommandLearnerReplica is fundamentally flaky as commit can't retry all underlying replication failures and acceptable failure causes are not exposed on the higher levels where test operates.

What test is supposed to verify that failures to propose with invalid lease are not causing pipelined writes to fail but are retried. More details described in original PR #35261 where this test is introduced.
In absence of direct controls of that, test is trying to move leases between replicas, but this action could cause different failures to happen which can't be filtered out. For example:
failed to repropose 0b9a11f4bef0e3d3 at idx 16 with new lease index: [NotLeaseHolderError] ‹reproposal failed due to closed timestamp›
and
stale proposal: command was proposed under lease #2 but is being applied under lease: ...
While closed timestamp could be mitigated by changing settings, second one is opaque to the caller and hard to filter out.

Release note: None
Fixes #104716

TestLeaseCommandLearnerReplica is fundamentally flaky as commit can't
retry all underlying replication failures and acceptable failure causes
are not exposed on the higher levels where test operates.

Release note: None
@aliher1911 aliher1911 requested a review from a team as a code owner July 10, 2023 10:38
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@aliher1911
Copy link
Contributor Author

Issue to add a replacement unit test: #106504

@aliher1911 aliher1911 added the backport-23.1.x Flags PRs that need to be backported to 23.1 label Jul 11, 2023
@aliher1911 aliher1911 requested review from a team and tbg July 11, 2023 20:28
@aliher1911
Copy link
Contributor Author

bors r+

@craig
Copy link
Contributor

craig bot commented Jul 12, 2023

Build succeeded:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-23.1.x Flags PRs that need to be backported to 23.1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

kv/kvserver/batcheval: TestLeaseTransferWithPipelinedWrite failed
3 participants