From 149e08c091d06cae25b5d2ba375ae3a846c605b2 Mon Sep 17 00:00:00 2001 From: "huanghui.bigrey" Date: Sat, 18 Apr 2020 14:56:56 +0800 Subject: [PATCH] optimize FileWriteOutBytes to avoid high sys cpu -- remove IOException --- .../org/apache/druid/segment/writeout/FileWriteOutBytes.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/processing/src/main/java/org/apache/druid/segment/writeout/FileWriteOutBytes.java b/processing/src/main/java/org/apache/druid/segment/writeout/FileWriteOutBytes.java index c9bf6f4669a..3c602631e92 100644 --- a/processing/src/main/java/org/apache/druid/segment/writeout/FileWriteOutBytes.java +++ b/processing/src/main/java/org/apache/druid/segment/writeout/FileWriteOutBytes.java @@ -108,7 +108,7 @@ final class FileWriteOutBytes extends WriteOutBytes } @Override - public long size() throws IOException + public long size() { return writeOutBytes; }