Skip to content

Commit 4de2db4

Browse files
Renaming tests to IT in order to not encounter rest cancellable node client handler failures
Signed-off-by: Bharathwaj G <bharath78910@gmail.com>
1 parent 01a5842 commit 4de2db4

3 files changed

Lines changed: 7 additions & 6 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
9191
- Support OpenSSL Provider with default Netty allocator ([#5460](https://github.com/opensearch-project/OpenSearch/pull/5460))
9292
- Increasing timeout of testQuorumRecovery to 90 seconds from 30 ([#5651](https://github.com/opensearch-project/OpenSearch/pull/5651))
9393
- [Segment Replication] Fix for peer recovery ([#5344](https://github.com/opensearch-project/OpenSearch/pull/5344))
94+
- [Test] Renaming PIT tests to IT to fix intermittent test failures ([#5750](https://github.com/opensearch-project/OpenSearch/pull/5750))
9495

9596
### Security
9697

server/src/test/java/org/opensearch/search/DeletePitMultiNodeTests.java renamed to server/src/test/java/org/opensearch/search/DeletePitMultiNodeIT.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
* Multi node integration tests for delete PIT use cases
4848
*/
4949
@OpenSearchIntegTestCase.ClusterScope(scope = OpenSearchIntegTestCase.Scope.SUITE, numDataNodes = 2)
50-
public class DeletePitMultiNodeTests extends OpenSearchIntegTestCase {
50+
public class DeletePitMultiNodeIT extends OpenSearchIntegTestCase {
5151

5252
@Before
5353
public void setupIndex() throws ExecutionException, InterruptedException {
@@ -306,7 +306,7 @@ public void testtConcurrentDeletes() throws InterruptedException, ExecutionExcep
306306
AtomicInteger numDeleteAcknowledged = new AtomicInteger();
307307
TestThreadPool testThreadPool = null;
308308
try {
309-
testThreadPool = new TestThreadPool(DeletePitMultiNodeTests.class.getName());
309+
testThreadPool = new TestThreadPool(DeletePitMultiNodeIT.class.getName());
310310
List<Runnable> operationThreads = new ArrayList<>();
311311
CountDownLatch countDownLatch = new CountDownLatch(concurrentRuns);
312312
for (int i = 0; i < concurrentRuns; i++) {

server/src/test/java/org/opensearch/search/PitMultiNodeTests.java renamed to server/src/test/java/org/opensearch/search/PitMultiNodeIT.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
* Multi node integration tests for PIT creation and search operation with PIT ID.
6262
*/
6363
@OpenSearchIntegTestCase.ClusterScope(scope = OpenSearchIntegTestCase.Scope.SUITE, numDataNodes = 2)
64-
public class PitMultiNodeTests extends OpenSearchIntegTestCase {
64+
public class PitMultiNodeIT extends OpenSearchIntegTestCase {
6565

6666
@Before
6767
public void setupIndex() throws ExecutionException, InterruptedException {
@@ -246,7 +246,7 @@ public void testConcurrentCreates() throws InterruptedException {
246246
AtomicInteger numSuccess = new AtomicInteger();
247247
TestThreadPool testThreadPool = null;
248248
try {
249-
testThreadPool = new TestThreadPool(DeletePitMultiNodeTests.class.getName());
249+
testThreadPool = new TestThreadPool(PitMultiNodeIT.class.getName());
250250
List<Runnable> operationThreads = new ArrayList<>();
251251
CountDownLatch countDownLatch = new CountDownLatch(concurrentRuns);
252252
Set<String> createSet = new HashSet<>();
@@ -288,7 +288,7 @@ public void testConcurrentCreatesWithDeletes() throws InterruptedException, Exec
288288
AtomicInteger numSuccess = new AtomicInteger();
289289
TestThreadPool testThreadPool = null;
290290
try {
291-
testThreadPool = new TestThreadPool(PitMultiNodeTests.class.getName());
291+
testThreadPool = new TestThreadPool(PitMultiNodeIT.class.getName());
292292
int concurrentRuns = randomIntBetween(20, 50);
293293

294294
List<Runnable> operationThreads = new ArrayList<>();
@@ -431,7 +431,7 @@ public void testConcurrentGetWithDeletes() throws InterruptedException, Executio
431431
AtomicInteger numSuccess = new AtomicInteger();
432432
TestThreadPool testThreadPool = null;
433433
try {
434-
testThreadPool = new TestThreadPool(PitMultiNodeTests.class.getName());
434+
testThreadPool = new TestThreadPool(PitMultiNodeIT.class.getName());
435435
int concurrentRuns = randomIntBetween(20, 50);
436436

437437
List<Runnable> operationThreads = new ArrayList<>();

0 commit comments

Comments
 (0)