jiacheliu3 commented on PR #733:
URL: https://github.com/apache/ratis/pull/733#issuecomment-1236807974

   @szetszwo Thanks for the comments! What do you think about exposing the 
exception on the `RaftServer`? I come from Alluxio and we use Ratis RaftServer 
to manage the file system metadata. 
   
https://github.com/Alluxio/alluxio/blob/aacf14507174029fac4a997b6037207fae92ea91/core/server/common/src/main/java/alluxio/master/journal/raft/RaftJournalSystem.java#L429
   It'll be very helpful if the lifecycle state on the RaftServer is more 
up-to-date and more ideally, we can see what error caused RaftServer to fail. 
It is fair if you say we don't expose the exception outside RaftServer (because 
the external party normally can't do better recovery than the RaftServer is 
capable of), but it could be more extensible to future use cases if we do 
expose the exception out of RaftServer. WDYT?
   


-- 
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]

Reply via email to