Skip to content

Remove unused fields in ActionTransportException#80692

Merged
DaveCTurner merged 2 commits intoelastic:masterfrom
DaveCTurner:2021-11-14-unused-fields-in-ActionTransportException
Nov 15, 2021
Merged

Remove unused fields in ActionTransportException#80692
DaveCTurner merged 2 commits intoelastic:masterfrom
DaveCTurner:2021-11-14-unused-fields-in-ActionTransportException

Conversation

@DaveCTurner
Copy link
Copy Markdown
Member

The fields in ActionTransportException are reflected in the message
generated at construction time, and apart from that they are only used
in tests. This commit removes them, and hence another spot where we were
creating a per-message TransportAddress object.

Relates #80690

The fields in `ActionTransportException` are reflected in the message
generated at construction time, and apart from that they are only used
in tests. This commit removes them, and hence another spot where we were
creating a per-message `TransportAddress` object.

Relates elastic#80690
@DaveCTurner DaveCTurner added :Distributed/Network Http and internode communication implementations >refactoring v8.1.0 labels Nov 14, 2021
@elasticmachine elasticmachine added the Team:Distributed Meta label for distributed team. label Nov 14, 2021
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-distributed (Team:Distributed)

Copy link
Copy Markdown
Member

@tlrx tlrx 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 37f7adc into elastic:master Nov 15, 2021
@DaveCTurner DaveCTurner deleted the 2021-11-14-unused-fields-in-ActionTransportException branch November 15, 2021 08:34
DaveCTurner added a commit to DaveCTurner/elasticsearch that referenced this pull request Nov 23, 2021
Today we use `writeBoolean(false);` to write to a `StreamOutput` an
optional value that is always missing. It's something of an
implementation detail that a missing value is indicated by a `false`
(i.e. a zero byte) so this commit wraps these calls in methods that
better indicate the intent.

Relates elastic#80944
Relates elastic#80692
DaveCTurner added a commit that referenced this pull request Nov 23, 2021
Today we use `writeBoolean(false);` to write to a `StreamOutput` an
optional value that is always missing. It's something of an
implementation detail that a missing value is indicated by a `false`
(i.e. a zero byte) so this commit wraps these calls in methods that
better indicate the intent.

Relates #80944
Relates #80692
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Distributed/Network Http and internode communication implementations >refactoring Team:Distributed Meta label for distributed team. v8.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants