Commit 9daa870
authored
KnnIndexer: update index count to not appear as if it has indexed more than more docs than it has (#132577)
Currently each index thread updates the number of docs indexed before checking the configured number of docs to index, but can lead to an impression that more docs have been indexed than requested. The solution is to only update when there is head room.1 parent 569121b commit 9daa870
File tree
1 file changed
+4
-2
lines changed- qa/vector/src/main/java/org/elasticsearch/test/knn
1 file changed
+4
-2
lines changedLines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
273 | | - | |
274 | | - | |
| 273 | + | |
| 274 | + | |
275 | 275 | | |
| 276 | + | |
| 277 | + | |
276 | 278 | | |
277 | 279 | | |
278 | 280 | | |
| |||
0 commit comments