dungba88 commented on code in PR #12624:
URL: https://github.com/apache/lucene/pull/12624#discussion_r1400641544


##########
lucene/core/src/java/org/apache/lucene/util/fst/FSTCompiler.java:
##########
@@ -248,15 +305,17 @@ public Builder<T> 
directAddressingMaxOversizingFactor(float factor) {
 
     /** Creates a new {@link FSTCompiler}. */
     public FSTCompiler<T> build() {
-      FSTCompiler<T> fstCompiler =
-          new FSTCompiler<>(
-              inputType,
-              suffixRAMLimitMB,
-              outputs,
-              allowFixedLengthArcs,
-              bytesPageBits,
-              directAddressingMaxOversizingFactor);
-      return fstCompiler;
+      try {
+        return new FSTCompiler<>(
+            inputType,
+            suffixRAMLimitMB,
+            outputs,
+            allowFixedLengthArcs,
+            dataOutput,
+            directAddressingMaxOversizingFactor);
+      } catch (IOException e) {
+        throw new RuntimeException(e);

Review Comment:
   Can we defer this? I could add a TODO and do a follow-on PR. The reason is 
that it will cause even more diffs and not directly related to this PR main 
purpose.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to