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 13
13
import org .apache .logging .log4j .Logger ;
14
14
import org .apache .logging .log4j .core .LoggerContext ;
15
15
import org .apache .logging .log4j .core .config .Configurator ;
16
+ import org .apache .lucene .index .TermsEnum ;
16
17
import org .apache .lucene .util .Constants ;
17
18
import org .apache .lucene .util .StringHelper ;
18
19
import org .apache .lucene .util .VectorUtil ;
@@ -218,6 +219,8 @@ private static void initPhase2(Bootstrap bootstrap) throws IOException {
218
219
IfConfig .logIfNecessary ();
219
220
220
221
ensureInitialized (
222
+ // See https://github.com/elastic/elasticsearch/issues/136268
223
+ TermsEnum .class ,
221
224
// ReleaseVersions does nontrivial static initialization which should always succeed but load it now (before SM) to be sure
222
225
ReleaseVersions .class ,
223
226
// 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