Skip to content

Commit 2f76986

Browse files
Fix ContainerCreateDeleteWithSameNameTest.bulk - increase indexing delay to 1000ms
Test still fails intermittently with 8/10 items despite previous 500ms delay. Root cause: Indexing lag in CI can exceed 500ms for bulk operations on high-throughput containers (10100 RU/s). Fix: Increased delay from 500ms to 1000ms to provide adequate time for indexing to complete before querying. Co-authored-by: kushagraThapar <14034156+kushagraThapar@users.noreply.github.com>
1 parent 1954acc commit 2f76986

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

sdk/cosmos/azure-cosmos-tests/src/test/java/com/azure/cosmos/rx/ContainerCreateDeleteWithSameNameTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,8 +632,9 @@ public <T> void bulk(
632632

633633
// Add delay to ensure bulk operations are fully indexed before querying
634634
// This prevents race conditions in CI where indexing may lag behind write completion
635+
// Increased from 500ms to 1000ms as 500ms was still insufficient in some CI runs
635636
try {
636-
Thread.sleep(500);
637+
Thread.sleep(1000);
637638
} catch (InterruptedException e) {
638639
// Restore the interrupt status before propagating as a RuntimeException
639640
Thread.currentThread().interrupt();

0 commit comments

Comments
 (0)