kfaraz commented on code in PR #16912:
URL: https://github.com/apache/druid/pull/16912#discussion_r1720890994


##########
processing/src/main/java/org/apache/druid/frame/file/FrameFile.java:
##########
@@ -186,7 +186,7 @@ static FrameFile open(
       // Verify minimum file length.
       if (fileLength <
           FrameFileWriter.MAGIC.length + FrameFileWriter.TRAILER_LENGTH + 
Byte.BYTES /* MARKER_NO_MORE_FRAMES */) {
-        throw new IOE("File [%s] is too short (size = [%,d])", file, 
fileLength);
+        throw new IOE("File[%s] is too short (size = [%,d])", file, 
fileLength);

Review Comment:
   In all of these places, should we throw `DruidException` instead, since 
these are meant to be user-facing errors?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to