Skip to content

Remove test usages of getDefaultBackingIndexName in DS and LogsDB tests #127384

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

Merged
merged 3 commits into from
Apr 29, 2025

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