File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
server/src/main/java/org/elasticsearch/bootstrap Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 1+ pr : 136279
2+ summary : Initialize `TermsEnum` eagerly
3+ area : Search
4+ type : bug
5+ issues : []
Original file line number Diff line number Diff line change 1313import org .apache .logging .log4j .Logger ;
1414import org .apache .logging .log4j .core .LoggerContext ;
1515import org .apache .logging .log4j .core .config .Configurator ;
16+ import org .apache .lucene .index .TermsEnum ;
1617import org .apache .lucene .util .Constants ;
1718import org .apache .lucene .util .StringHelper ;
1819import org .apache .lucene .util .VectorUtil ;
@@ -218,6 +219,8 @@ private static void initPhase2(Bootstrap bootstrap) throws IOException {
218219 IfConfig .logIfNecessary ();
219220
220221 ensureInitialized (
222+ // See https://github.com/elastic/elasticsearch/issues/136268
223+ TermsEnum .class ,
221224 // ReleaseVersions does nontrivial static initialization which should always succeed but load it now (before SM) to be sure
222225 ReleaseVersions .class ,
223226 // ReferenceDocs class does nontrivial static initialization which should always succeed but load it now (before SM) to be sure
You can’t perform that action at this time.
0 commit comments