Skip to content

Conversation

@nicktindall
Copy link
Contributor

@nicktindall nicktindall commented Jun 20, 2025

I think because there was no new content since the last snapshot, snapshot-in-progress never got blocked by the repository block because it never went to the repository.

Closes: #129740

@elasticsearchmachine elasticsearchmachine added v9.1.0 needs:triage Requires assignment of a team area label labels Jun 20, 2025
@nicktindall
Copy link
Contributor Author

// Allow the IN_PROGRESS snapshot to finish, then verify GET using SUCCESS has results and IN_PROGRESS does not.
// Do this in a finally, so the block doesn't interfere with teardown in the event of a failure
unblockAllDataNodes(repoName);
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just put this in a finally because I noticed when the block is applied and the test fails, it messes with the teardown.

assertThat(snapshots, hasSize(2));
var states = snapshots.stream().map(SnapshotInfo::state).collect(Collectors.toSet());
assertThat(states, hasItem(SnapshotState.SUCCESS));
assertThat(states, hasItem(SnapshotState.IN_PROGRESS));
Copy link
Contributor Author

Choose a reason for hiding this comment

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

use assertThat/hasItem to give a more detailed failure message

@nicktindall nicktindall added >test Issues or PRs that are addressing/adding tests :Distributed Coordination/Distributed A catch all label for anything in the Distributed Coordination area. Please avoid if you can. :Distributed Coordination/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs and removed :Distributed Coordination/Distributed A catch all label for anything in the Distributed Coordination area. Please avoid if you can. labels Jun 20, 2025
@elasticsearchmachine elasticsearchmachine added the Team:Distributed Coordination Meta label for Distributed Coordination team label Jun 20, 2025
@elasticsearchmachine
Copy link
Collaborator

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

@elasticsearchmachine elasticsearchmachine removed the needs:triage Requires assignment of a team area label label Jun 20, 2025
Copy link
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

I suppose it should also work by blocking master node for finalizing the snapshot. Explicitly indexing more data also makes sense.

@nicktindall nicktindall merged commit f715f63 into elastic:main Jun 20, 2025
27 checks passed
kderusso pushed a commit to kderusso/elasticsearch that referenced this pull request Jun 23, 2025
mridula-s109 pushed a commit to mridula-s109/elasticsearch that referenced this pull request Jun 25, 2025
@nicktindall nicktindall deleted the fix_GetSnapshotsIT branch September 3, 2025 04:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Distributed Coordination/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs Team:Distributed Coordination Meta label for Distributed Coordination team >test Issues or PRs that are addressing/adding tests v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CI] GetSnapshotsIT testFilterByState failing

3 participants