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

Only call assertNotTransportThread if asserts on #44028

Conversation

DaveCTurner
Copy link
Contributor

In #44000 we introduced some calls to assertNotTransportThread that are
executed whether assertions are enabled or not. Although they have no effect if
assertions are disabled, we should have done it like this instead.

In elastic#44000 we introduced some calls to `assertNotTransportThread` that are
executed whether assertions are enabled or not. Although they have no effect if
assertions are disabled, we should have done it like this instead.
@DaveCTurner DaveCTurner added >non-issue :Distributed/Recovery Anything around constructing a new shard, either from a local or a remote source. labels Jul 5, 2019
@DaveCTurner DaveCTurner requested a review from dnhatn July 5, 2019 19:10
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-distributed

Copy link
Member

@original-brownbear original-brownbear left a comment

Choose a reason for hiding this comment

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

LGTM :)

Copy link
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 c5ed201 into elastic:peer-recovery-retention-leases Jul 8, 2019
DaveCTurner added a commit that referenced this pull request Jul 8, 2019
In #44000 we introduced some calls to `assertNotTransportThread` that are
executed whether assertions are enabled or not. Although they have no effect if
assertions are disabled, we should have done it like this instead.
@DaveCTurner DaveCTurner deleted the 2019-07-05-prrls-assert-the-asserts branch July 8, 2019 07:40
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants