dsmiley commented on code in PR #2276: URL: https://github.com/apache/solr/pull/2276#discussion_r1545301666
########## solr/core/src/java/org/apache/solr/handler/IndexFetcher.java: ########## @@ -1828,13 +1823,17 @@ private int fetchPackets(FastInputStream fis) throws Exception { throw new ReplicationHandlerException("User aborted replication"); } long checkSumServer = -1; + fis.readFully(intbytes); + // read the size of the packet int packetSize = readInt(intbytes); if (packetSize <= 0) { - log.warn("No content received for file: {}", fileName); + fis.read(); // read till end-of-file Review Comment: See `org.apache.solr.common.util.Utils#readFully` instead -- 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...@solr.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For additional commands, e-mail: issues-h...@solr.apache.org