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 ;
@@ -203,6 +204,8 @@ private static void initPhase2(Bootstrap bootstrap) throws IOException {
203
204
IfConfig .logIfNecessary ();
204
205
205
206
ensureInitialized (
207
+ // See https://github.com/elastic/elasticsearch/issues/136268
208
+ TermsEnum .class ,
206
209
// ReleaseVersions does nontrivial static initialization which should always succeed but load it now (before SM) to be sure
207
210
ReleaseVersions .class ,
208
211
// 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