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 ;
@@ -220,6 +221,8 @@ private static void initPhase2(Bootstrap bootstrap) throws IOException {
220
221
IfConfig .logIfNecessary ();
221
222
222
223
ensureInitialized (
224
+ // See https://github.com/elastic/elasticsearch/issues/136268
225
+ TermsEnum .class ,
223
226
// ReleaseVersions does nontrivial static initialization which should always succeed but load it now (before SM) to be sure
224
227
ReleaseVersions .class ,
225
228
// 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