Skip to content

Randomise retention lease expiry time#44067

Merged
DaveCTurner merged 1 commit intoelastic:masterfrom
DaveCTurner:2019-07-08-randomise-lease-expiry-time
Jul 8, 2019
Merged

Randomise retention lease expiry time#44067
DaveCTurner merged 1 commit intoelastic:masterfrom
DaveCTurner:2019-07-08-randomise-lease-expiry-time

Conversation

@DaveCTurner
Copy link
Copy Markdown
Member

In today's test suite indices mostly use the default value of 12h for the
index.soft_deletes.retention_lease.period setting, which in the context of
the test suite essentially means "never expires". In fact, the tests should all
behave correctly even if the lease period is much shorter; tests that rely on
leases not expiring should configure their indices appropriately.

This commit randomises the lease expiry time for those indices created during
tests which do not set a specific value for this setting.

In today's test suite indices mostly use the default value of `12h` for the
`index.soft_deletes.retention_lease.period` setting, which in the context of
the test suite essentially means "never expires". In fact, the tests should all
behave correctly even if the lease period is much shorter; tests that rely on
leases not expiring should configure their indices appropriately.

This commit randomises the lease expiry time for those indices created during
tests which do not set a specific value for this setting.
@DaveCTurner DaveCTurner added >non-issue :Distributed/Recovery Anything around constructing a new shard, either from a local or a remote source. v8.0.0 v7.4.0 labels Jul 8, 2019
@DaveCTurner DaveCTurner requested a review from dnhatn July 8, 2019 11:49
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-distributed

Copy link
Copy Markdown
Member

@dnhatn dnhatn left a comment

Choose a reason for hiding this comment

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

LGTM

@DaveCTurner DaveCTurner merged commit 613fad1 into elastic:master Jul 8, 2019
DaveCTurner added a commit that referenced this pull request Jul 8, 2019
In today's test suite indices mostly use the default value of `12h` for the
`index.soft_deletes.retention_lease.period` setting, which in the context of
the test suite essentially means "never expires". In fact, the tests should all
behave correctly even if the lease period is much shorter; tests that rely on
leases not expiring should configure their indices appropriately.

This commit randomises the lease expiry time for those indices created during
tests which do not set a specific value for this setting.
@DaveCTurner DaveCTurner deleted the 2019-07-08-randomise-lease-expiry-time branch July 23, 2022 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Distributed/Recovery Anything around constructing a new shard, either from a local or a remote source. >non-issue v7.4.0 v8.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants