You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by GitBox <gi...@apache.org> on 2019/08/17 03:55:50 UTC

[GitHub] [hbase] Reidddddd commented on a change in pull request #503: HBASE-22870 reflection fails to access a private nested class

Reidddddd commented on a change in pull request #503: HBASE-22870 reflection fails to access a private nested class
URL: https://github.com/apache/hbase/pull/503#discussion_r314933324
 
 

 ##########
 File path: hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java
 ##########
 @@ -3906,7 +3906,7 @@ public boolean isShutDown() {
   /**
    * Force to terminate region server when abort timeout.
    */
-  private static class SystemExitWhenAbortTimeout extends TimerTask {
+  public static class SystemExitWhenAbortTimeout extends TimerTask {
 
 Review comment:
   It is reasonable to keep it private since it is an inner task which should not be seen outside service.
   
   I suggest using 
   `getDeclaredConstructor().setAccessible(true).newInstance()` to bypass it.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services