justinrsweeney commented on code in PR #1469: URL: https://github.com/apache/solr/pull/1469#discussion_r1140345027
########## solr/core/src/java/org/apache/solr/cloud/overseer/ZkStateWriter.java: ########## @@ -286,7 +286,8 @@ public ClusterState writePendingUpdates( } else { byte[] data = Utils.toJSON(singletonMap(c.getName(), c)); if (minStateByteLenForCompression > -1 && data.length > minStateByteLenForCompression) { - data = compressor.compressBytes(data); + // When compressing state.json, we expect at least a 10:1 compression ratio. + data = compressor.compressBytes(data, data.length / 10); Review Comment: Nice, that sounds good. I can see how state.json would get a particularly high compression ratio. glad it is backed up by the test. Thanks for the improvement! -- 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