Skip to content

Add run under primary permit method#37440

Merged
jasontedor merged 2 commits intoelastic:masterfrom
jasontedor:run-under-primary-permit
Jan 15, 2019
Merged

Add run under primary permit method#37440
jasontedor merged 2 commits intoelastic:masterfrom
jasontedor:run-under-primary-permit

Conversation

@jasontedor
Copy link
Copy Markdown
Member

This commit adds a simple method for executing a runnable against a shard under a primary permit. Today there is only a single caller for this method, but this there are two upcoming use-cases for which having this method will help keep the code simpler.

Relates #37398

This commit adds a simple method for executing a runnable against a
shard under a primary permit. Today there is only a single caller for
this method, but this there are two upcoming use-cases for which having
this method will help keep the code simpler.
@jasontedor jasontedor added >enhancement v7.0.0 :Distributed/Distributed A catch all label for anything in the Distributed Area. Please avoid if you can. v6.7.0 labels Jan 14, 2019
@jasontedor jasontedor requested a review from dnhatn January 14, 2019 23:00
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-distributed

@jasontedor
Copy link
Copy Markdown
Member Author

@elasticmachine run gradle build tests 1

e -> {
if (e instanceof AlreadyClosedException == false
&& e instanceof IndexShardClosedException == false) {
logger.warn(
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.

I did change this in this PR to from info to warn. I think warn is more appropriate.

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. Thanks @jasontedor.

@jasontedor jasontedor merged commit 43bfdd3 into elastic:master Jan 15, 2019
jasontedor added a commit that referenced this pull request Jan 15, 2019
This commit adds a simple method for executing a runnable against a
shard under a primary permit. Today there is only a single caller for
this method, but this there are two upcoming use-cases for which having
this method will help keep the code simpler.
@jasontedor jasontedor deleted the run-under-primary-permit branch January 15, 2019 03:03
jasontedor added a commit to jasontedor/elasticsearch that referenced this pull request Jan 15, 2019
* master:
  Add run under primary permit method (elastic#37440)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Distributed/Distributed A catch all label for anything in the Distributed Area. Please avoid if you can. >enhancement v6.7.0 v7.0.0-beta1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants