Commit cbb3bbd
Christoph Büscher
Prevent normalizer from not being closed on exception (#42375)
Currently AnalysisRegistry#processNormalizerFactory creates a normalizer and
only later checks whether it should be added to the normalizer map passed in. In
case we throw an exception it isn't closed. This can be prevented by moving the
check that throws the exception earlier.1 parent bd1dc98 commit cbb3bbd
File tree
1 file changed
+3
-3
lines changed- server/src/main/java/org/elasticsearch/index/analysis
1 file changed
+3
-3
lines changedLines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
523 | 523 | | |
524 | 524 | | |
525 | 525 | | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
526 | 529 | | |
527 | 530 | | |
528 | 531 | | |
529 | 532 | | |
530 | 533 | | |
531 | | - | |
532 | | - | |
533 | | - | |
534 | 534 | | |
535 | 535 | | |
536 | 536 | | |
0 commit comments