Commit b3a60e3
Remove assertion in testDocStats on deletedDocs counter (#32914)
testDocStats test is flaky and sometimes it's failing on jenkins and
failure is not reproducible locally. The reason for this failure is in
timing. If the number of deleted documents is greater than 33% of inserted
documents, Lucene will schedule segments to merge if TieredMergePolicy is
used (it's not the case for LogMergePolicy, but ES is only using
TieredMergePolicy). If this merge is performed before stats are
retrieved - we will get 0 for "deleted" counter.
So basically this counter could be either 0 or numOfDeletedDocs at this point,
but this is the too loose assertion and we decided to remove it at all.
Closes #327661 parent ba38b2e commit b3a60e3
File tree
1 file changed
+1
-4
lines changed- server/src/test/java/org/elasticsearch/index/shard
1 file changed
+1
-4
lines changedLines changed: 1 addition & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2389 | 2389 | | |
2390 | 2390 | | |
2391 | 2391 | | |
2392 | | - | |
2393 | | - | |
| 2392 | + | |
2394 | 2393 | | |
2395 | 2394 | | |
2396 | 2395 | | |
| |||
2439 | 2438 | | |
2440 | 2439 | | |
2441 | 2440 | | |
2442 | | - | |
2443 | | - | |
2444 | 2441 | | |
2445 | 2442 | | |
2446 | 2443 | | |
| |||
0 commit comments