Skip to content

Tidy master-node timeouts in put/delete shutdown APIs#108850

Merged
elasticsearchmachine merged 6 commits intoelastic:mainfrom
DaveCTurner:2024/05/21/shutdown-api-timeouts
May 23, 2024
Merged

Tidy master-node timeouts in put/delete shutdown APIs#108850
elasticsearchmachine merged 6 commits intoelastic:mainfrom
DaveCTurner:2024/05/21/shutdown-api-timeouts

Conversation

@DaveCTurner
Copy link
Copy Markdown
Member

Cleaning up the version logic added in #107862 a little, and also
removing some usages of TRAPPY_IMPLICIT_DEFAULT_MASTER_NODE_TIMEOUT as
per #107984.

Cleaning up the version logic added in elastic#107862 a little, and also
removing some usages of `TRAPPY_IMPLICIT_DEFAULT_MASTER_NODE_TIMEOUT` as
per elastic#107984.
@DaveCTurner DaveCTurner added >non-issue :Core/Infra/Node Lifecycle Node startup, bootstrapping, and shutdown v8.15.0 labels May 21, 2024
@DaveCTurner DaveCTurner requested a review from thecoop May 21, 2024 09:52
@elasticsearchmachine elasticsearchmachine added the Team:Core/Infra Meta label for core/infra team label May 21, 2024
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-core-infra (Team:Core/Infra)

@DaveCTurner DaveCTurner changed the title Tidy master-node timeouts in get/delete shutdown APIs Tidy master-node timeouts in put/delete shutdown APIs May 22, 2024
Copy link
Copy Markdown
Member

@ywangd ywangd left a comment

Choose a reason for hiding this comment

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

LGTM

if (out.getTransportVersion().isPatchFrom(TransportVersions.V_8_13_4)
|| out.getTransportVersion().isPatchFrom(TransportVersions.SHUTDOWN_REQUEST_TIMEOUTS_FIX_8_14)
|| out.getTransportVersion().onOrAfter(TransportVersions.SHUTDOWN_REQUEST_TIMEOUTS_FIX)) {
if (serializedWithParentTaskAndTimeouts(out.getTransportVersion())) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nit: the name serializedWithParentTaskAndTimeouts reads a bit strange when it is used in a method where serialization is yet to happen. Maybe supportsSerializeWithParentTaskAndTimeouts?

@DaveCTurner DaveCTurner added the auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) label May 23, 2024
@elasticsearchmachine elasticsearchmachine merged commit 6f857fb into elastic:main May 23, 2024
@DaveCTurner DaveCTurner deleted the 2024/05/21/shutdown-api-timeouts branch May 23, 2024 05:58
@DaveCTurner DaveCTurner restored the 2024/05/21/shutdown-api-timeouts branch June 17, 2024 06:17
breskeby pushed a commit to breskeby/elasticsearch that referenced this pull request Feb 11, 2026
breskeby pushed a commit to breskeby/elasticsearch that referenced this pull request Feb 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) :Core/Infra/Node Lifecycle Node startup, bootstrapping, and shutdown >non-issue Team:Core/Infra Meta label for core/infra team v8.15.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants