You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by GitBox <gi...@apache.org> on 2022/10/12 11:36:11 UTC

[GitHub] [druid] abhishekagarwal87 commented on pull request #13217: Add more information to exceptions occurred while writing temporary data

abhishekagarwal87 commented on PR #13217:
URL: https://github.com/apache/druid/pull/13217#issuecomment-1276016646

   I see your point. Maybe “space needed for this file” or “current size of
   the file”?
   
   On Wed, 12 Oct 2022 at 4:47 PM, Laksh Singla ***@***.***>
   wrote:
   
   > ***@***.**** commented on this pull request.
   > ------------------------------
   >
   > In
   > processing/src/main/java/org/apache/druid/segment/writeout/FileWriteOutBytes.java
   > <https://github.com/apache/druid/pull/13217#discussion_r993325018>:
   >
   > > @@ -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);
   >
   > 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)?
   >
   > —
   > Reply to this email directly, view it on GitHub
   > <https://github.com/apache/druid/pull/13217#pullrequestreview-1138901445>,
   > or unsubscribe
   > <https://github.com/notifications/unsubscribe-auth/AALIWUOVZA64VZPCG2UZSHDWC2M6NANCNFSM6AAAAAARDFGFPA>
   > .
   > You are receiving this because you authored the thread.Message ID:
   > ***@***.***>
   >
   


-- 
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: commits-unsubscribe@druid.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org