Commit b6ca26f
authored
Check if merge is aborted during file integrity checksums (#16281)
Adds a new `CodecUtil.checksumEntireFile(IndexInput, OneMerge)` that periodically checks whether the merge has been aborted while reading through the file. This avoids spending time checksumming large files when the merge is already cancelled. The check runs every 1 MB.
It also adds a `OneMerge` parameter to `checkIntegrity()` to all codec reader/producer base classes.
See #16086 for original discussion.1 parent b614a53 commit b6ca26f
95 files changed
Lines changed: 453 additions & 241 deletions
File tree
- lucene
- backward-codecs/src/java/org/apache/lucene/backward_codecs
- lucene101
- lucene102
- lucene103
- lucene80
- lucene90
- blocktree
- lucene912
- lucene91
- lucene92
- lucene94
- lucene95
- lucene99
- codecs/src
- java/org/apache/lucene/codecs
- blockterms
- blocktreeords
- bloom
- memory
- simpletext
- uniformsplit
- test/org/apache/lucene/codecs/uniformsplit
- core/src
- java/org/apache/lucene
- codecs
- lucene103/blocktree
- lucene104
- lucene90
- compressing
- lucene99
- perfield
- index
- test/org/apache/lucene
- codecs
- index
- sandbox/src/java/org/apache/lucene/sandbox/codecs
- faiss
- idversion
- suggest/src/java/org/apache/lucene/search/suggest/document
- test-framework/src/java/org/apache/lucene/tests
- codecs
- asserting
- cranky
- ramonly
- index
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
101 | 104 | | |
102 | 105 | | |
103 | 106 | | |
| |||
142 | 145 | | |
143 | 146 | | |
144 | 147 | | |
| 148 | + | |
| 149 | + | |
145 | 150 | | |
146 | 151 | | |
147 | 152 | | |
| |||
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| |||
1404 | 1405 | | |
1405 | 1406 | | |
1406 | 1407 | | |
1407 | | - | |
| 1408 | + | |
1408 | 1409 | | |
1409 | | - | |
| 1410 | + | |
1410 | 1411 | | |
1411 | 1412 | | |
1412 | | - | |
| 1413 | + | |
1413 | 1414 | | |
1414 | 1415 | | |
1415 | | - | |
| 1416 | + | |
1416 | 1417 | | |
1417 | 1418 | | |
1418 | 1419 | | |
| |||
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| |||
211 | 212 | | |
212 | 213 | | |
213 | 214 | | |
214 | | - | |
215 | | - | |
216 | | - | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
217 | 218 | | |
218 | 219 | | |
219 | 220 | | |
| |||
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| |||
1449 | 1450 | | |
1450 | 1451 | | |
1451 | 1452 | | |
1452 | | - | |
| 1453 | + | |
1453 | 1454 | | |
1454 | | - | |
| 1455 | + | |
1455 | 1456 | | |
1456 | 1457 | | |
1457 | | - | |
| 1458 | + | |
1458 | 1459 | | |
1459 | 1460 | | |
1460 | | - | |
| 1461 | + | |
1461 | 1462 | | |
1462 | 1463 | | |
1463 | 1464 | | |
| |||
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
1683 | 1684 | | |
1684 | 1685 | | |
1685 | 1686 | | |
1686 | | - | |
1687 | | - | |
| 1687 | + | |
| 1688 | + | |
1688 | 1689 | | |
1689 | 1690 | | |
1690 | 1691 | | |
| |||
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
218 | 219 | | |
219 | 220 | | |
220 | 221 | | |
221 | | - | |
222 | | - | |
223 | | - | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
224 | 225 | | |
225 | 226 | | |
226 | 227 | | |
| |||
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| |||
2042 | 2043 | | |
2043 | 2044 | | |
2044 | 2045 | | |
2045 | | - | |
| 2046 | + | |
2046 | 2047 | | |
2047 | | - | |
| 2048 | + | |
2048 | 2049 | | |
2049 | 2050 | | |
2050 | | - | |
| 2051 | + | |
2051 | 2052 | | |
2052 | 2053 | | |
2053 | | - | |
| 2054 | + | |
2054 | 2055 | | |
2055 | 2056 | | |
2056 | 2057 | | |
| |||
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
327 | 328 | | |
328 | 329 | | |
329 | 330 | | |
330 | | - | |
| 331 | + | |
331 | 332 | | |
332 | | - | |
| 333 | + | |
333 | 334 | | |
334 | 335 | | |
335 | | - | |
| 336 | + | |
336 | 337 | | |
337 | 338 | | |
338 | | - | |
| 339 | + | |
339 | 340 | | |
340 | 341 | | |
341 | 342 | | |
| |||
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
214 | 215 | | |
215 | 216 | | |
216 | 217 | | |
217 | | - | |
218 | | - | |
219 | | - | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
220 | 221 | | |
221 | 222 | | |
222 | 223 | | |
| |||
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| |||
1795 | 1796 | | |
1796 | 1797 | | |
1797 | 1798 | | |
1798 | | - | |
| 1799 | + | |
1799 | 1800 | | |
1800 | | - | |
| 1801 | + | |
1801 | 1802 | | |
1802 | 1803 | | |
1803 | | - | |
| 1804 | + | |
1804 | 1805 | | |
1805 | 1806 | | |
1806 | | - | |
| 1807 | + | |
1807 | 1808 | | |
1808 | 1809 | | |
1809 | 1810 | | |
| |||
0 commit comments