Bläddra i källkod

apply review comments from @bleskes

Simon Willnauer 10 år sedan
förälder
incheckning
db15682b3c

+ 1 - 1
core/src/main/java/org/elasticsearch/indices/recovery/RecoverySettings.java

@@ -120,7 +120,7 @@ public class RecoverySettings extends AbstractComponent implements Closeable {
             rateLimiter = new SimpleRateLimiter(maxBytesPerSec.mbFrac());
         }
 
-        logger.debug("using max_bytes_per_sec[{}], concurrent_streams [{}], file_chunk_size [{}], translog_size [{}]",
+        logger.debug("using max_bytes_per_sec[{}], concurrent_streams [{}]",
                 maxBytesPerSec, concurrentStreams);
 
         nodeSettingsService.addListener(new ApplySettings());

+ 1 - 1
core/src/main/java/org/elasticsearch/indices/recovery/RecoverySourceHandler.java

@@ -547,7 +547,7 @@ public class RecoverySourceHandler {
 
         private void sendNextChunk(long position, BytesArray content, boolean lastChunk) throws IOException {
             final TransportRequestOptions chunkSendOptions = TransportRequestOptions.builder()
-                .withCompress(false)
+                .withCompress(false)  // lucene files are already compressed and therefore compressing this won't really help much so we are safing the cpu for other things
                 .withType(TransportRequestOptions.Type.RECOVERY)
                 .withTimeout(recoverySettings.internalActionTimeout())
                 .build();