Commit a715548
authored
[couchbase] Ignore transient primary index creation error. (#4681)
This changeset makes sure that when a primary index is created, a transient
error is ignored since the indexing engine will automatically retry the
statement later.
Transient errors can happen because we just created the bucket and the
indexer might not have caught up to that bucket just yet, but it will
eventually.
In addition, a check has been added afterwards to make sure that the
primary index is online (so, ready for the user to query) before
returning to the caller, improving the overall stability of queries.1 parent 02a8eed commit a715548
File tree
1 file changed
+25
-2
lines changed- modules/couchbase/src/main/java/org/testcontainers/couchbase
1 file changed
+25
-2
lines changedLines changed: 25 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
473 | 473 | | |
474 | 474 | | |
475 | 475 | | |
476 | | - | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
477 | 500 | | |
478 | 501 | | |
479 | 502 | | |
| |||
508 | 531 | | |
509 | 532 | | |
510 | 533 | | |
511 | | - | |
| 534 | + | |
512 | 535 | | |
513 | 536 | | |
514 | 537 | | |
| |||
0 commit comments