LakshSingla commented on code in PR #13217:
URL: https://github.com/apache/druid/pull/13217#discussion_r993325018
##########
processing/src/main/java/org/apache/druid/segment/writeout/FileWriteOutBytes.java:
##########
@@ -59,7 +60,12 @@ private void flushIfNeeded(int bytesNeeded) throws
IOException
public void flush() throws IOException
{
buffer.flip();
- Channels.writeFully(ch, buffer);
+ try {
+ Channels.writeFully(ch, buffer);
+ }
+ catch (IOException e) {
+ throw new IOE(e, "Failed to write to file: %s. Space needed: %d",
file.getAbsolutePath(), writeOutBytes);
Review Comment:
From the exception, it seems like that the `writeOutBytes` is the space
deficit due to which the ingestion is failing, whereas the actual deficit for
the job to complete can be much more than that right?
Should the error message omit the information `Space needed: %d` or be
reworded such that the user knows that `writeOutBytes` more are required to
complete the current operation (and not the ingestion)?
--
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]