Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Ranjith Ramachandra committed Sep 2, 2023
1 parent 20df770 commit 59a0120
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
import org.apache.lucene.search.SortField;
import org.apache.lucene.search.SortedSetSelector;
import org.apache.lucene.search.SortedSetSortField;
import org.apache.lucene.tests.util.LuceneTestCase;
import org.apache.lucene.util.Constants;
import org.opensearch.Version;
import org.opensearch.action.admin.cluster.reroute.ClusterRerouteResponse;
Expand Down Expand Up @@ -89,6 +90,7 @@
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.greaterThanOrEqualTo;

@LuceneTestCase.AwaitsFix(bugUrl = "hello.com")
public class ShrinkIndexIT extends OpenSearchIntegTestCase {

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

package org.opensearch.remotestore;

import org.apache.lucene.tests.util.LuceneTestCase;
import org.opensearch.action.admin.cluster.remotestore.restore.RestoreRemoteStoreRequest;
import org.opensearch.action.admin.cluster.remotestore.restore.RestoreRemoteStoreResponse;
import org.opensearch.action.index.IndexResponse;
Expand All @@ -34,6 +35,7 @@
import static org.opensearch.test.hamcrest.OpenSearchAssertions.assertHitCount;
import static org.hamcrest.Matchers.greaterThan;

@LuceneTestCase.AwaitsFix(bugUrl = "hello.com")
@OpenSearchIntegTestCase.ClusterScope(scope = OpenSearchIntegTestCase.Scope.TEST, numDataNodes = 0)
public class RemoteStoreRestoreIT extends RemoteStoreBaseIntegTestCase {
private static final String INDEX_NAME = "remote-store-test-idx-1";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1054,6 +1054,8 @@ public void testSnapshotTotalAndIncrementalSizes() throws Exception {
// drop 1st one to avoid miscalculation as snapshot reuses some files of prev snapshot
assertAcked(startDeleteSnapshot(repositoryName, snapshot0).get());

Thread.sleep(10000);

response = clusterAdmin().prepareSnapshotStatus(repositoryName).setSnapshots(snapshot1).get();

final List<Path> snapshot1Files = scanSnapshotFolder(repoPath);
Expand Down

0 comments on commit 59a0120

Please sign in to comment.