apply review comments from @bleskes

This commit is contained in:
Simon Willnauer 2015-12-11 15:16:14 +01:00
parent 12f905a675
commit db15682b3c
2 changed files with 2 additions and 2 deletions

View File

@ -120,7 +120,7 @@ public class RecoverySettings extends AbstractComponent implements Closeable {
rateLimiter = new SimpleRateLimiter(maxBytesPerSec.mbFrac()); 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); maxBytesPerSec, concurrentStreams);
nodeSettingsService.addListener(new ApplySettings()); nodeSettingsService.addListener(new ApplySettings());

View File

@ -547,7 +547,7 @@ public class RecoverySourceHandler {
private void sendNextChunk(long position, BytesArray content, boolean lastChunk) throws IOException { private void sendNextChunk(long position, BytesArray content, boolean lastChunk) throws IOException {
final TransportRequestOptions chunkSendOptions = TransportRequestOptions.builder() 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) .withType(TransportRequestOptions.Type.RECOVERY)
.withTimeout(recoverySettings.internalActionTimeout()) .withTimeout(recoverySettings.internalActionTimeout())
.build(); .build();