Skip to content

Fix timing issue in CcrRetentionLeaseIT#43054

Merged
dnhatn merged 2 commits intoelastic:masterfrom
dnhatn:fix-ccr-lease-timing
Jun 11, 2019
Merged

Fix timing issue in CcrRetentionLeaseIT#43054
dnhatn merged 2 commits intoelastic:masterfrom
dnhatn:fix-ccr-lease-timing

Conversation

@dnhatn
Copy link
Copy Markdown
Member

@dnhatn dnhatn commented Jun 10, 2019

In these tests, we sleep for a small multiple of the renew interval, then check that the retention leases are not changed. If a renewal request takes longer than that interval because of GC or slow CI, then the retention leases are not the same as before sleep. With this change, we relax to assert that we eventually stop the renewable process.

See https://github.com/elastic/elasticsearch/issues/#issuecomment-498523485

Closes #39509

@dnhatn dnhatn added >test Issues or PRs that are addressing/adding tests :Distributed/CCR Issues around the Cross Cluster State Replication features v8.0.0 v7.2.0 v7.3.0 v6.8.1 v7.1.2 labels Jun 10, 2019
@dnhatn dnhatn requested a review from jasontedor June 10, 2019 16:29
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-distributed

Copy link
Copy Markdown
Member

@jasontedor jasontedor left a comment

Choose a reason for hiding this comment

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

LGTM.

@dnhatn
Copy link
Copy Markdown
Member Author

dnhatn commented Jun 11, 2019

Thanks @jasontedor.

@dnhatn dnhatn merged commit 5071f3f into elastic:master Jun 11, 2019
@dnhatn dnhatn deleted the fix-ccr-lease-timing branch June 11, 2019 21:55
dnhatn added a commit that referenced this pull request Jun 11, 2019
In these tests, we sleep for a small multiple of the renew interval,
then check that the retention leases are not changed. If a renewal
request takes longer than that interval because of GC or slow CI, then
the retention leases are not the same as before sleep. With this change,
we relax to assert that we eventually stop the renewable process.

Closes #39509
dnhatn added a commit that referenced this pull request Jun 12, 2019
In these tests, we sleep for a small multiple of the renew interval,
then check that the retention leases are not changed. If a renewal
request takes longer than that interval because of GC or slow CI, then
the retention leases are not the same as before sleep. With this change,
we relax to assert that we eventually stop the renewable process.

Closes #39509
dnhatn added a commit that referenced this pull request Jun 12, 2019
In these tests, we sleep for a small multiple of the renew interval,
then check that the retention leases are not changed. If a renewal
request takes longer than that interval because of GC or slow CI, then
the retention leases are not the same as before sleep. With this change,
we relax to assert that we eventually stop the renewable process.

Closes #39509
dnhatn added a commit that referenced this pull request Jun 12, 2019
In these tests, we sleep for a small multiple of the renew interval,
then check that the retention leases are not changed. If a renewal
request takes longer than that interval because of GC or slow CI, then
the retention leases are not the same as before sleep. With this change,
we relax to assert that we eventually stop the renewable process.

Closes #39509
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Distributed/CCR Issues around the Cross Cluster State Replication features >test Issues or PRs that are addressing/adding tests v6.8.1 v7.1.2 v7.2.0 v7.3.0 v8.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CcrRetentionLeaseIT testRetentionLeaseRenewalIsCancelledWhenFollowingIsPaused fails on CI

4 participants