huaxiangsun commented on issue #1441: HBASE-24120 Flakey Test: 
TestReplicationAdminWithClusters timeout
URL: https://github.com/apache/hbase/pull/1441#issuecomment-610183684
 
 
   > OK, skimmed HBASE-20561, the goal there was to avoid the region server to 
be aborted...
   > 
   > I think the RuntimeException was used to skip all the following code and 
propagate it soon to the most top level of code, as the operation is failed, we 
should not execute the following code any more, a simple return will make the 
upper layer think the operation is succeeded, which is incorrect.
   > 
   
   Look back the code, you are right, ignore and continue is not the right way 
to handle it.
   
   > Now the code at the top level will abort the region server? Maybe that's 
the place need to be fixed.
   > 
   > If RuntimeException is too general, maybe we could introduce a special 
exception and throw it, and at some places we catch it and just ignore it and 
quit.
   
   I do think RuntimeException is too general, can we just define a special 
exception which extends RuntimeException and let the top level to catch and 
handle it? 
   
   I will put a new patch based on your feedback. Nice comments, I will quote 
your comments to the code as well, thanks!
   
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to