dungba88 commented on code in PR #12691: URL: https://github.com/apache/lucene/pull/12691#discussion_r1363511529
########## lucene/core/src/java/org/apache/lucene/util/fst/FST.java: ########## @@ -552,14 +527,11 @@ public void save(DataOutput metaOut, DataOutput out) throws IOException { } metaOut.writeByte(t); metaOut.writeVLong(startNode); - if (bytes != null) { - long numBytes = bytes.getPosition(); - metaOut.writeVLong(numBytes); - bytes.writeTo(out); - } else { - assert fstStore != null; - fstStore.writeTo(out); + // nocommit why does the FSTStore case does not need the numBytes? Review Comment: I wasn't sure about this, need to debug on why the numBytes is not needed when writing with FSTStore -- 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: issues-unsubscr...@lucene.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org