Skip to content

Conversation

@parkertimmins
Copy link
Contributor

@parkertimmins parkertimmins commented Feb 21, 2025

#122887 set read-only on the source indices of a data stream reindex. To test behavior when the source index was already read-only, testDataStreamUpgrade sometimes set the old write index to read-only. But the rest end point for adding a read-only block always sets verifed-read-only. This caused the old write index to not need to be upgraded, resulting in an incorrect value for total_indices_requiring_upgrade

@parkertimmins parkertimmins added the :Data Management/Data streams Data streams and their lifecycles label Feb 21, 2025
@elasticsearchmachine elasticsearchmachine added the Team:Data Management Meta label for data/management team label Feb 21, 2025
@elasticsearchmachine
Copy link
Collaborator

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

@parkertimmins
Copy link
Contributor Author

Not backporting to 8.x, because the PR that cause this test failed to backport to 8.x (because of this issue). So it was fixed on that branch.

@parkertimmins parkertimmins added the auto-backport Automatically create backport pull requests when merged label Feb 21, 2025
@parkertimmins parkertimmins merged commit 8b25a72 into elastic:main Feb 22, 2025
17 checks passed
@parkertimmins parkertimmins deleted the reindex-data-stream-fix-read-only-test-bug branch February 22, 2025 02:20
@elasticsearchmachine
Copy link
Collaborator

💔 Backport failed

Status Branch Result
9.0 Commit could not be cherrypicked due to conflicts
8.18 Commit could not be cherrypicked due to conflicts

You can use sqren/backport to manually backport by running backport --upstream elastic/elasticsearch --pr 123190

parkertimmins added a commit to parkertimmins/elasticsearch that referenced this pull request Feb 22, 2025
…ed (elastic#123190)

elastic#122887 set read-only on the source indices of a data stream reindex. To test behavior when the source index was already read-only, testDataStreamUpgrade sometimes set the old write index to read-only. But the rest end point for adding a read-only block always sets verifed-read-only. This caused the old write index to not need to be upgraded, resulting in an incorrect value for total_indices_requiring_upgrade

(cherry picked from commit 8b25a72)

# Conflicts:
#	muted-tests.yml
@parkertimmins
Copy link
Contributor Author

💚 All backports created successfully

Status Branch Result
9.0
8.18

Questions ?

Please refer to the Backport tool documentation

parkertimmins added a commit to parkertimmins/elasticsearch that referenced this pull request Feb 22, 2025
…ed (elastic#123190)

elastic#122887 set read-only on the source indices of a data stream reindex. To test behavior when the source index was already read-only, testDataStreamUpgrade sometimes set the old write index to read-only. But the rest end point for adding a read-only block always sets verifed-read-only. This caused the old write index to not need to be upgraded, resulting in an incorrect value for total_indices_requiring_upgrade

(cherry picked from commit 8b25a72)

# Conflicts:
#	muted-tests.yml
elasticsearchmachine pushed a commit that referenced this pull request Feb 22, 2025
…ed (#123190) (#123208)

#122887 set read-only on the source indices of a data stream reindex. To test behavior when the source index was already read-only, testDataStreamUpgrade sometimes set the old write index to read-only. But the rest end point for adding a read-only block always sets verifed-read-only. This caused the old write index to not need to be upgraded, resulting in an incorrect value for total_indices_requiring_upgrade

(cherry picked from commit 8b25a72)

# Conflicts:
#	muted-tests.yml
elasticsearchmachine pushed a commit that referenced this pull request Feb 22, 2025
…ed (#123190) (#123209)

#122887 set read-only on the source indices of a data stream reindex. To test behavior when the source index was already read-only, testDataStreamUpgrade sometimes set the old write index to read-only. But the rest end point for adding a read-only block always sets verifed-read-only. This caused the old write index to not need to be upgraded, resulting in an incorrect value for total_indices_requiring_upgrade

(cherry picked from commit 8b25a72)

# Conflicts:
#	muted-tests.yml
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 backport pending :Data Management/Data streams Data streams and their lifecycles >non-issue Team:Data Management Meta label for data/management team v8.18.0 v8.18.1 v9.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants