Commit 2c12b8d
committed
fix: add stability check to wait_for_vector_indexing to prevent race condition
Shards briefly report READY + vectorQueueSize=0 while objectCount
has not yet caught up to the inserted objects. This causes
wait_for_vector_indexing() to return too early.
Fix: After detecting readiness, wait 0.5s and re-verify.
If the shard is no longer ready, continue waiting.
Fixes #1412
Signed-off-by: rtmalikian <rtmalikian@gmail.com>1 parent dffcdcb commit 2c12b8d
1 file changed
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
88 | 95 | | |
89 | 96 | | |
90 | 97 | | |
| |||
186 | 193 | | |
187 | 194 | | |
188 | 195 | | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
189 | 203 | | |
190 | 204 | | |
191 | 205 | | |
| |||
0 commit comments