Uh oh!
There was an error while loading. Please reload this page.
HBASE-22870 reflection fails to access a private nested class - #503
Conversation
Reidddddd
commented
Aug 17, 2019
Did you raise a related JIRA ticket? If not, please raise one first, it is easy for history tracking. |
satanson
commented
Aug 17, 2019
hbase-2.1.5 will be deployed in our product environment, now, interface compablity, integration test and fault exercises are being performed, so more and more bugs will be exposed. I want to contribute bugfix, how can I do? It there a guide doc for new comer? |
Reidddddd
commented
Aug 17, 2019
HBASE-22870, is it yours? Please update the description in JIRA too. |
satanson
commented
Aug 17, 2019
@Reidddddd |
| * Force to terminate region server when abort timeout. | ||
| */ | ||
| private static class SystemExitWhenAbortTimeout extends TimerTask { | ||
| public static class SystemExitWhenAbortTimeout extends TimerTask { |
There was a problem hiding this comment.
It is reasonable to keep it private since it is an inner task which should not be seen outside service.
I suggest usinggetDeclaredConstructor().setAccessible(true).newInstance() to bypass it.
There was a problem hiding this comment.
ok, good suggest, setAccessible return void, so should write like this
Constructor<? extends TimerTask> timerTaskCtor =
Class.forName(conf.get(ABORT_TIMEOUT_TASK, SystemExitWhenAbortTimeout.class.getName()))
.asSubclass(TimerTask.class).getDeclaredConstructor();
timerTaskCtor.setAccessible(true);
abortTimeoutTask = timerTaskCtor.newInstance();
Reidddddd
commented
Aug 17, 2019
Let's wait some time to see if any other comment. I'll will commit it tomorrow if no further comment. |
Apache-HBase
commented
Aug 17, 2019
💔 -1 overall
This message was automatically generated. |
Apache-HBase
commented
Aug 17, 2019
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Aug 17, 2019
💔 -1 overall
This message was automatically generated. |
Apache-HBase
commented
Aug 17, 2019
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Aug 17, 2019
💔 -1 overall
This message was automatically generated. |
satanson
commented
Aug 17, 2019
commit |
Apache-HBase
commented
Aug 17, 2019
💔 -1 overall
This message was automatically generated. |
Apache-HBase
commented
Aug 18, 2019
💔 -1 overall
This message was automatically generated. |
HMaster crashes at org/apache/hadoop/hbase/regionserver/HRegionServer.java:1044
A private static nested class can not be instantiated via reflection.
code snippet
log in product environtment