Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Ranjith Ramachandra committed Sep 3, 2023
1 parent a5803ea commit c7df464
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 37 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ protected Collection<Class<? extends Plugin>> nodePlugins() {
return Arrays.asList(MockTransportService.TestPlugin.class, MockEngineFactoryPlugin.class, InternalSettingsPlugin.class);
}

@AwaitsFix(bugUrl = "hello.com")
public void testFailedRecoveryOnAllocateStalePrimaryRequiresAnotherAllocateStalePrimary() throws Exception {
/*
* Allocation id is put on start of shard while historyUUID is adjusted after recovery is done.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ protected Releasable blockReplication(List<String> nodes, CountDownLatch latch)
));
mockTargetTransportService.addSendBehavior((connection, requestId, action, request, options) -> {
String actionToWaitFor = SegmentReplicationSourceService.Actions.GET_SEGMENT_FILES;
if (segmentReplicationWithRemoteEnabled()) {
if (isRemoteStoreEnabled()) {
actionToWaitFor = SegmentReplicationSourceService.Actions.UPDATE_VISIBLE_CHECKPOINT;
}
if (action.equals(actionToWaitFor)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ public void testRelocationWhileIndexingRandom() throws Exception {
}
}

@AwaitsFix(bugUrl = "hello.com")
public void testRelocationWhileRefreshing() throws Exception {
int numberOfRelocations = scaledRandomIntBetween(1, rarely() ? 10 : 4);
int numberOfReplicas = randomBoolean() ? 0 : 1;
Expand Down Expand Up @@ -520,6 +521,7 @@ public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IO
}
}

@AwaitsFix(bugUrl = "hello.com")
public void testIndexSearchAndRelocateConcurrently() throws Exception {
int halfNodes = randomIntBetween(1, 3);
Settings[] nodeSettings = Stream.concat(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ public class ConcurrentSeqNoVersioningIT extends AbstractDisruptionTestCase {
// multiple threads doing CAS updates.
// Wait up to 1 minute (+10s in thread to ensure it does not time out) for threads to complete previous round before initiating next
// round.
@AwaitsFix(bugUrl = "hello.com")
public void testSeqNoCASLinearizability() {
final int disruptTimeSeconds = scaledRandomIntBetween(1, 8);

Expand Down
50 changes: 14 additions & 36 deletions test.sh
Original file line number Diff line number Diff line change
@@ -1,32 +1,13 @@
find . -iname SearchableSnapshotIT.java | sed -e 's3/3.3g' | sed -e 's3.java3#3g' | cut -d'#' -f 2 | cut -d'.' -f 2-
find . -iname TasksIT.java | sed -e 's3/3.3g' | sed -e 's3.java3#3g' | cut -d'#' -f 2 | cut -d'.' -f 2-
find . -iname SearchWeightedRoutingIT.java | sed -e 's3/3.3g' | sed -e 's3.java3#3g' | cut -d'#' -f 2 | cut -d'.' -f 2-
find . -iname IndexRecoveryIT.java | sed -e 's3/3.3g' | sed -e 's3.java3#3g' | cut -d'#' -f 2 | cut -d'.' -f 2-
find . -iname SegmentReplicationStatsIT.java | sed -e 's3/3.3g' | sed -e 's3.java3#3g' | cut -d'#' -f 2 | cut -d'.' -f 2-
find . -iname ShardIndexingPressureIT.java | sed -e 's3/3.3g' | sed -e 's3.java3#3g' | cut -d'#' -f 2 | cut -d'.' -f 2-
find . -iname DerivativeIT.java | sed -e 's3/3.3g' | sed -e 's3.java3#3g' | cut -d'#' -f 2 | cut -d'.' -f 2-
find . -iname FiltersIT.java | sed -e 's3/3.3g' | sed -e 's3.java3#3g' | cut -d'#' -f 2 | cut -d'.' -f 2-
find . -iname RemoveCorruptedShardDataCommandIT.java | sed -e 's3/3.3g' | sed -e 's3.java3#3g' | cut -d'#' -f 2 | cut -d'.' -f 2-
find . -iname RetentionLeaseIT.java | sed -e 's3/3.3g' | sed -e 's3.java3#3g' | cut -d'#' -f 2 | cut -d'.' -f 2-
find . -iname AdjacencyMatrixIT.java | sed -e 's3/3.3g' | sed -e 's3.java3#3g' | cut -d'#' -f 2 | cut -d'.' -f 2-
find . -iname ClusterDisruptionIT.java | sed -e 's3/3.3g' | sed -e 's3.java3#3g' | cut -d'#' -f 2 | cut -d'.' -f 2-
find . -iname IndexingPressureIT.java | sed -e 's3/3.3g' | sed -e 's3.java3#3g' | cut -d'#' -f 2 | cut -d'.' -f 2-
find . -iname PrimaryAllocationIT.java | sed -e 's3/3.3g' | sed -e 's3.java3#3g' | cut -d'#' -f 2 | cut -d'.' -f 2-
find . -iname RemoteIndexSnapshotStatusApiIT.java | sed -e 's3/3.3g' | sed -e 's3.java3#3g' | cut -d'#' -f 2 | cut -d'.' -f 2-
find . -iname SegmentReplicationRelocationIT.java | sed -e 's3/3.3g' | sed -e 's3.java3#3g' | cut -d'#' -f 2 | cut -d'.' -f 2-
find . -iname SegmentReplicationSnapshotIT.java | sed -e 's3/3.3g' | sed -e 's3.java3#3g' | cut -d'#' -f 2 | cut -d'.' -f 2-
find . -iname ShardIndexingPressureSettingsIT.java | sed -e 's3/3.3g' | sed -e 's3.java3#3g' | cut -d'#' -f 2 | cut -d'.' -f 2-
find . -iname CircuitBreakerServiceIT.java | sed -e 's3/3.3g' | sed -e 's3.java3#3g' | cut -d'#' -f 2 | cut -d'.' -f 2-
find . -iname SegmentReplicationAllocationIT.java | sed -e 's3/3.3g' | sed -e 's3.java3#3g' | cut -d'#' -f 2 | cut -d'.' -f 2-
find . -iname BooleanTermsIT.java | sed -e 's3/3.3g' | sed -e 's3.java3#3g' | cut -d'#' -f 2 | cut -d'.' -f 2-
find . -iname CorruptedFileIT.java | sed -e 's3/3.3g' | sed -e 's3.java3#3g' | cut -d'#' -f 2 | cut -d'.' -f 2-
find . -iname DiskThresholdDeciderIT.java | sed -e 's3/3.3g' | sed -e 's3.java3#3g' | cut -d'#' -f 2 | cut -d'.' -f 2-
find . -iname GetTermVectorsIT.java | sed -e 's3/3.3g' | sed -e 's3.java3#3g' | cut -d'#' -f 2 | cut -d'.' -f 2-
find . -iname IndexStatsIT.java | sed -e 's3/3.3g' | sed -e 's3.java3#3g' | cut -d'#' -f 2 | cut -d'.' -f 2-
find . -iname MedianAbsoluteDeviationIT.java | sed -e 's3/3.3g' | sed -e 's3.java3#3g' | cut -d'#' -f 2 | cut -d'.' -f 2-
find . -iname FullRollingRestartIT.java | sed -e 's3/3.3g' | sed -e 's3.java3#3g' | cut -d'#' -f 2 | cut -d'.' -f 2-
find . -iname PartitionedRoutingIT.java | sed -e 's3/3.3g' | sed -e 's3.java3#3g' | cut -d'#' -f 2 | cut -d'.' -f 2-
find . -iname RecoveryFromGatewayIT.java | sed -e 's3/3.3g' | sed -e 's3.java3#3g' | cut -d'#' -f 2 | cut -d'.' -f 2-
find . -iname RelocationIT.java | sed -e 's3/3.3g' | sed -e 's3.java3#3g' | cut -d'#' -f 2 | cut -d'.' -f 2-
find . -iname RemoteStoreForceMergeIT.java | sed -e 's3/3.3g' | sed -e 's3.java3#3g' | cut -d'#' -f 2 | cut -d'.' -f 2-
find . -iname SearchPreferenceIT.java | sed -e 's3/3.3g' | sed -e 's3.java3#3g' | cut -d'#' -f 2 | cut -d'.' -f 2-
find . -iname SegmentReplicationAllocationIT.java | sed -e 's3/3.3g' | sed -e 's3.java3#3g' | cut -d'#' -f 2 | cut -d'.' -f 2-
find . -iname SegmentReplicationClusterSettingIT.java | sed -e 's3/3.3g' | sed -e 's3.java3#3g' | cut -d'#' -f 2 | cut -d'.' -f 2-
find . -iname SegmentReplicationIT.java | sed -e 's3/3.3g' | sed -e 's3.java3#3g' | cut -d'#' -f 2 | cut -d'.' -f 2-
find . -iname SegmentReplicationPressureIT.java | sed -e 's3/3.3g' | sed -e 's3.java3#3g' | cut -d'#' -f 2 | cut -d'.' -f 2-
Expand All @@ -35,24 +16,21 @@ find . -iname TruncatedRecoveryIT.java | sed -e 's3/3.3g' | sed -e 's3.java3#3g'
find . -iname AliasedIndexDocumentActionsIT.java | sed -e 's3/3.3g' | sed -e 's3.java3#3g' | cut -d'#' -f 2 | cut -d'.' -f 2-
find . -iname AllocationIdIT.java | sed -e 's3/3.3g' | sed -e 's3.java3#3g' | cut -d'#' -f 2 | cut -d'.' -f 2-
find . -iname BlobStoreIncrementalityIT.java | sed -e 's3/3.3g' | sed -e 's3.java3#3g' | cut -d'#' -f 2 | cut -d'.' -f 2-
find . -iname BucketScriptIT.java | sed -e 's3/3.3g' | sed -e 's3.java3#3g' | cut -d'#' -f 2 | cut -d'.' -f 2-
find . -iname BulkRejectionIT.java | sed -e 's3/3.3g' | sed -e 's3.java3#3g' | cut -d'#' -f 2 | cut -d'.' -f 2-
find . -iname CloneSnapshotIT.java | sed -e 's3/3.3g' | sed -e 's3.java3#3g' | cut -d'#' -f 2 | cut -d'.' -f 2-
find . -iname ClusterDisruptionCleanSettingsIT.java | sed -e 's3/3.3g' | sed -e 's3.java3#3g' | cut -d'#' -f 2 | cut -d'.' -f 2-
find . -iname ClusterDisruptionIT.java | sed -e 's3/3.3g' | sed -e 's3.java3#3g' | cut -d'#' -f 2 | cut -d'.' -f 2-
find . -iname ClusterManagerDisruptionIT.java | sed -e 's3/3.3g' | sed -e 's3.java3#3g' | cut -d'#' -f 2 | cut -d'.' -f 2-
find . -iname ClusterShardLimitIT.java | sed -e 's3/3.3g' | sed -e 's3.java3#3g' | cut -d'#' -f 2 | cut -d'.' -f 2-
find . -iname ClusterStatsIT.java | sed -e 's3/3.3g' | sed -e 's3.java3#3g' | cut -d'#' -f 2 | cut -d'.' -f 2-
find . -iname ConcurrentSearchTasksIT.java | sed -e 's3/3.3g' | sed -e 's3.java3#3g' | cut -d'#' -f 2 | cut -d'.' -f 2-
find . -iname ConcurrentSeqNoVersioningIT.java | sed -e 's3/3.3g' | sed -e 's3.java3#3g' | cut -d'#' -f 2 | cut -d'.' -f 2-
find . -iname DedicatedClusterSnapshotRestoreIT.java | sed -e 's3/3.3g' | sed -e 's3.java3#3g' | cut -d'#' -f 2 | cut -d'.' -f 2-
find . -iname DocumentActionsIT.java | sed -e 's3/3.3g' | sed -e 's3.java3#3g' | cut -d'#' -f 2 | cut -d'.' -f 2-
find . -iname EquivalenceIT.java | sed -e 's3/3.3g' | sed -e 's3.java3#3g' | cut -d'#' -f 2 | cut -d'.' -f 2-
find . -iname DiskDisruptionIT.java | sed -e 's3/3.3g' | sed -e 's3.java3#3g' | cut -d'#' -f 2 | cut -d'.' -f 2-
find . -iname GetActionIT.java | sed -e 's3/3.3g' | sed -e 's3.java3#3g' | cut -d'#' -f 2 | cut -d'.' -f 2-
find . -iname GlobalCheckpointSyncIT.java | sed -e 's3/3.3g' | sed -e 's3.java3#3g' | cut -d'#' -f 2 | cut -d'.' -f 2-
find . -iname MultiClusterRepoAccessIT.java | sed -e 's3/3.3g' | sed -e 's3.java3#3g' | cut -d'#' -f 2 | cut -d'.' -f 2-
find . -iname NoClusterManagerNodeIT.java | sed -e 's3/3.3g' | sed -e 's3.java3#3g' | cut -d'#' -f 2 | cut -d'.' -f 2-
find . -iname OpenCloseIndexIT.java | sed -e 's3/3.3g' | sed -e 's3.java3#3g' | cut -d'#' -f 2 | cut -d'.' -f 2-
find . -iname PrimaryTermValidationIT.java | sed -e 's3/3.3g' | sed -e 's3.java3#3g' | cut -d'#' -f 2 | cut -d'.' -f 2-
find . -iname ReplicaToPrimaryPromotionIT.java | sed -e 's3/3.3g' | sed -e 's3.java3#3g' | cut -d'#' -f 2 | cut -d'.' -f 2-
find . -iname RepositoriesIT.java | sed -e 's3/3.3g' | sed -e 's3.java3#3g' | cut -d'#' -f 2 | cut -d'.' -f 2-
find . -iname SearchTimeoutIT.java | sed -e 's3/3.3g' | sed -e 's3.java3#3g' | cut -d'#' -f 2 | cut -d'.' -f 2-
find . -iname SegmentReplicationUsingRemoteStoreIT.java | sed -e 's3/3.3g' | sed -e 's3.java3#3g' | cut -d'#' -f 2 | cut -d'.' -f 2-
find . -iname RemoteStoreRestoreIT.java | sed -e 's3/3.3g' | sed -e 's3.java3#3g' | cut -d'#' -f 2 | cut -d'.' -f 2-
find . -iname SegmentReplicationRelocationIT.java | sed -e 's3/3.3g' | sed -e 's3.java3#3g' | cut -d'#' -f 2 | cut -d'.' -f 2-
find . -iname SharedClusterSnapshotRestoreIT.java | sed -e 's3/3.3g' | sed -e 's3.java3#3g' | cut -d'#' -f 2 | cut -d'.' -f 2-
find . -iname ShrinkIndexIT.java | sed -e 's3/3.3g' | sed -e 's3.java3#3g' | cut -d'#' -f 2 | cut -d'.' -f 2-
find . -iname SingleNodeDiscoveryIT.java | sed -e 's3/3.3g' | sed -e 's3.java3#3g' | cut -d'#' -f 2 | cut -d'.' -f 2-
find . -iname TransportSearchFailuresIT.java | sed -e 's3/3.3g' | sed -e 's3.java3#3g' | cut -d'#' -f 2 | cut -d'.' -f 2-
find . -iname SearchTimeoutIT.java | sed -e 's3/3.3g' | sed -e 's3.java3#3g' | cut -d'#' -f 2 | cut -d'.' -f 2-

0 comments on commit c7df464

Please sign in to comment.