From d1896a2d62dffe5dd2f3b1e0750c0f2aaf73fd33 Mon Sep 17 00:00:00 2001 From: Jonathan Wei Date: Tue, 6 Dec 2016 16:45:23 -0800 Subject: [PATCH] Disable flush after every ObjectMapper write (#3748) --- .../src/main/java/io/druid/jackson/DefaultObjectMapper.java | 1 + 1 file changed, 1 insertion(+) diff --git a/processing/src/main/java/io/druid/jackson/DefaultObjectMapper.java b/processing/src/main/java/io/druid/jackson/DefaultObjectMapper.java index 4027fcf7ccc..88bcc527ab7 100644 --- a/processing/src/main/java/io/druid/jackson/DefaultObjectMapper.java +++ b/processing/src/main/java/io/druid/jackson/DefaultObjectMapper.java @@ -58,6 +58,7 @@ public class DefaultObjectMapper extends ObjectMapper configure(MapperFeature.AUTO_DETECT_SETTERS, false); configure(MapperFeature.ALLOW_FINAL_FIELDS_AS_MUTATORS, false); configure(SerializationFeature.INDENT_OUTPUT, false); + configure(SerializationFeature.FLUSH_AFTER_WRITE_VALUE, false); } @Override