From 965f74214820fb8768aea549a0498ef376f02cc8 Mon Sep 17 00:00:00 2001 From: "huanghui.bigrey" Date: Sat, 18 Apr 2020 21:23:29 +0800 Subject: [PATCH] optimize FileWriteOutBytes to avoid high sys cpu -- remove IOException in writeOutBytes.size --- .../java/org/apache/druid/segment/writeout/WriteOutBytes.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/processing/src/main/java/org/apache/druid/segment/writeout/WriteOutBytes.java b/processing/src/main/java/org/apache/druid/segment/writeout/WriteOutBytes.java index f6a5e71ce93..e1c2972b148 100644 --- a/processing/src/main/java/org/apache/druid/segment/writeout/WriteOutBytes.java +++ b/processing/src/main/java/org/apache/druid/segment/writeout/WriteOutBytes.java @@ -45,7 +45,7 @@ public abstract class WriteOutBytes extends OutputStream implements WritableByte /** * Returns the number of bytes written to this WriteOutBytes so far. */ - public abstract long size() throws IOException; + public abstract long size(); /** * Takes all bytes that are written to this WriteOutBytes so far and writes them into the given channel.