Skip to content

Conversation

@idegtiarenko
Copy link
Contributor

Related to: #89687

@idegtiarenko idegtiarenko added :Distributed Coordination/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs >test-failure Triaged test failures from CI Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. v8.5.0 labels Aug 31, 2022
@idegtiarenko idegtiarenko requested a review from tlrx August 31, 2022 08:53
not(snapshotDirectory)
);
assertTrue("Translog doesn't exist", translogExists);
assertThat("Translog should exist", translogExists, is(true));
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Above rewords assertions messages to remove negation


ensureGreen(restoredIndexName);
assertBusy(() -> assertShardFolders(restoredIndexName, true));
assertBusy(() -> assertShardFolders(restoredIndexName, true), 30, TimeUnit.SECONDS);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is consistent with another change: #84942

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It looks like this reproduces only if we close the index (eg index files are kept on the disk) and we reuse the same index name for the mounted index. This is likely resulting in files not cleaned in time.

@idegtiarenko idegtiarenko marked this pull request as ready for review September 1, 2022 08:41
@elasticsearchmachine
Copy link
Collaborator

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

Copy link
Member

@tlrx tlrx left a comment

Choose a reason for hiding this comment

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

LGTM

@idegtiarenko idegtiarenko merged commit 45339fa into elastic:main Sep 1, 2022
@idegtiarenko idegtiarenko deleted the fix_testCreateAndRestoreSearchableSnapshot branch September 1, 2022 08:56
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 (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. >test-failure Triaged test failures from CI v8.5.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants