emkornfield commented on issue #6737:
URL: https://github.com/apache/arrow-rs/issues/6737#issuecomment-2549670288

   > Yes I think having clear guidelines on when to panic (basically an 
uncatchable panic) vs return errors would be helpful
   
   Would this be something to discuss on the mailing list (or in this issue) or 
something else?  I understand this can be contentious and I don't have enough 
knowledge to actually say what is right for the project but would like to see 
it move forward so happy to help out where I can.
   
   > If the only errors that can be returned are due to bugs in code (aka 
internals errors) it is less clear to me an error is appropriate in that case
   
   My perspective (which is admittedly not rust centric) comes from operating 
multi-tenant services. In this case the only cases  that we wouldn't want to 
explicitly catch errors at a higher level is memory corruption (I think there 
is some gray area for out-of-bounds references).  I've seen multiple 
occurrences of the equivalent in panic in C++, causing wide spread outages due 
to bugs in the assertion (i.e. the developer did not reason correctly about 
valid vs invalid state).  Using a stack-unwinding panic handler is one way to 
mitigate but they come with there own issues  (e.g. mixed FFI/Rust code).  
   
   


-- 
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: github-unsubscr...@arrow.apache.org

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

Reply via email to