Skip to content

Conversation

@nielsbauman
Copy link
Contributor

We replace usages of time sensitive
DataStream#getDefaultBackingIndexName with the retrieval of the name via an API call. The problem with using the time sensitive method is that we can have test failures around midnight.

Relates #123376

…ests

We replace usages of time sensitive
`DataStream#getDefaultBackingIndexName` with the retrieval of the name
via an API call. The problem with using the time sensitive method is
that we can have test failures around midnight.

Relates elastic#123376
@nielsbauman nielsbauman added >test Issues or PRs that are addressing/adding tests :Data Management/Data streams Data streams and their lifecycles Team:Data Management Meta label for data/management team v8.18.1 v8.19.0 v9.0.1 v9.1.0 labels Apr 25, 2025
@nielsbauman nielsbauman requested a review from gmarouli April 25, 2025 09:48
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-data-management (Team:Data Management)

Comment on lines 906 to +909
GetDataStreamAction.Response response = safeGet(
client().execute(
GetDataStreamAction.INSTANCE,
new GetDataStreamAction.Request(TEST_REQUEST_TIMEOUT, new String[] { dataStreamName })
new GetDataStreamAction.Request(SAFE_AWAIT_TIMEOUT, new String[] { dataStreamName })
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Since safeGet(...) uses SAFE_AWAIT_TIMEOUT, I changed the timeout here to avoid confusion.

Copy link
Contributor

@gmarouli gmarouli left a comment

Choose a reason for hiding this comment

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

LGTM! So much better :)

@nielsbauman nielsbauman enabled auto-merge (squash) April 29, 2025 11:48
@nielsbauman nielsbauman added the auto-backport Automatically create backport pull requests when merged label Apr 29, 2025
@nielsbauman nielsbauman merged commit fd93fad into elastic:main Apr 29, 2025
16 of 17 checks passed
@nielsbauman nielsbauman deleted the remove-ds-logsdb branch April 29, 2025 12:48
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
8.19
9.0

nielsbauman added a commit to nielsbauman/elasticsearch that referenced this pull request Apr 29, 2025
…ests (elastic#127384)

We replace usages of time sensitive
`DataStream#getDefaultBackingIndexName` with the retrieval of the name
via an API call. The problem with using the time sensitive method is
that we can have test failures around midnight.

Relates elastic#123376
nielsbauman added a commit to nielsbauman/elasticsearch that referenced this pull request Apr 30, 2025
…ests (elastic#127384)

We replace usages of time sensitive
`DataStream#getDefaultBackingIndexName` with the retrieval of the name
via an API call. The problem with using the time sensitive method is
that we can have test failures around midnight.

Relates elastic#123376
nielsbauman added a commit to nielsbauman/elasticsearch that referenced this pull request Apr 30, 2025
…ests (elastic#127384)

We replace usages of time sensitive
`DataStream#getDefaultBackingIndexName` with the retrieval of the name
via an API call. The problem with using the time sensitive method is
that we can have test failures around midnight.

Relates elastic#123376
elasticsearchmachine pushed a commit that referenced this pull request Apr 30, 2025
…ests (#127384) (#127503)

We replace usages of time sensitive
`DataStream#getDefaultBackingIndexName` with the retrieval of the name
via an API call. The problem with using the time sensitive method is
that we can have test failures around midnight.

Relates #123376
elasticsearchmachine pushed a commit that referenced this pull request Apr 30, 2025
…ests (#127384) (#127502)

We replace usages of time sensitive
`DataStream#getDefaultBackingIndexName` with the retrieval of the name
via an API call. The problem with using the time sensitive method is
that we can have test failures around midnight.

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

Labels

auto-backport Automatically create backport pull requests when merged :Data Management/Data streams Data streams and their lifecycles Team:Data Management Meta label for data/management team >test Issues or PRs that are addressing/adding tests v8.19.0 v9.0.1 v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants