Skip to content

Enable removal of retention leases#38751

Merged
jasontedor merged 1 commit intoelastic:masterfrom
jasontedor:retention-lease-remove
Feb 12, 2019
Merged

Enable removal of retention leases#38751
jasontedor merged 1 commit intoelastic:masterfrom
jasontedor:retention-lease-remove

Conversation

@jasontedor
Copy link
Copy Markdown
Member

This commit introduces the ability to remove retention leases. Explicit removal will be needed to manage retention leases used to increase the likelihood of operation-based recoveries syncing, and for consumers such as ILM.

Relates #37165

This commit introduces the ability to remove retention leases. Explicit
removal will be needed to manage retention leases used to increase the
likelihood of operation-based recoveries syncing, and for consumers such
as ILM.
@jasontedor jasontedor added >enhancement v7.0.0 :Distributed/CCR Issues around the Cross Cluster State Replication features v6.7.0 labels Feb 11, 2019
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-distributed

synchronized (this) {
assert primaryMode;
if (retentionLeases.contains(id) == false) {
throw new IllegalArgumentException("retention lease with ID [" + id + "] does not exist");
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This will change to a RetentionLeaseNotFoundException with the integration of #38754.

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.

@jasontedor jasontedor merged commit 58a7716 into elastic:master Feb 12, 2019
jasontedor added a commit that referenced this pull request Feb 12, 2019
This commit introduces the ability to remove retention leases. Explicit
removal will be needed to manage retention leases used to increase the
likelihood of operation-based recoveries syncing, and for consumers such
as ILM.
jasontedor added a commit that referenced this pull request Feb 12, 2019
This commit introduces the ability to remove retention leases. Explicit
removal will be needed to manage retention leases used to increase the
likelihood of operation-based recoveries syncing, and for consumers such
as ILM.
jasontedor added a commit that referenced this pull request Feb 12, 2019
This commit introduces the ability to remove retention leases. Explicit
removal will be needed to manage retention leases used to increase the
likelihood of operation-based recoveries syncing, and for consumers such
as ILM.
@jasontedor jasontedor deleted the retention-lease-remove branch February 12, 2019 02:33
jasontedor added a commit to jasontedor/elasticsearch that referenced this pull request Feb 12, 2019
* master:
  Enable removal of retention leases (elastic#38751)
  Make the 'get templates' types deprecation message consistent. (elastic#38533)
  Copy retention leases when trim unsafe commits (elastic#37995)
  Fix the version check for LegacyGeoShapeFieldMapper (elastic#38547)
jasontedor added a commit to jasontedor/elasticsearch that referenced this pull request Feb 12, 2019
* master:
  Enable removal of retention leases (elastic#38751)
  Make the 'get templates' types deprecation message consistent. (elastic#38533)
  Copy retention leases when trim unsafe commits (elastic#37995)
  Fix the version check for LegacyGeoShapeFieldMapper (elastic#38547)
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 >enhancement v6.7.0 v7.0.0-rc1 v7.2.0 v8.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants