rmuir commented on code in PR #11923: URL: https://github.com/apache/lucene/pull/11923#discussion_r1022818839
########## lucene/core/src/java/org/apache/lucene/index/DocumentsWriterFlushControl.java: ########## @@ -85,7 +85,7 @@ final class DocumentsWriterFlushControl implements Accountable, Closeable { this.perThreadPool = documentsWriter.perThreadPool; this.flushPolicy = config.getFlushPolicy(); this.config = config; - this.hardMaxBytesPerDWPT = config.getRAMPerThreadHardLimitMB() * 1024 * 1024; + this.hardMaxBytesPerDWPT = config.getRAMPerThreadHardLimitMB() * 1024L * 1024L; Review Comment: sounds good to me! if you want to make a PR with more cleanups/safety/fixes, let's get them in. -- 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