[
https://issues.apache.org/jira/browse/HBASE-23650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17467253#comment-17467253
]
Duo Zhang commented on HBASE-23650:
-----------------------------------
Is this problem 1.2 only or we still have this bug on other branches?
> lack of HMaster parameters in the SnapshotLogCleaner leads to NLP
> -----------------------------------------------------------------
>
> Key: HBASE-23650
> URL: https://issues.apache.org/jira/browse/HBASE-23650
> Project: HBase
> Issue Type: Bug
> Affects Versions: 1.2.11
> Reporter: sangjiaqi
> Priority: Major
> Attachments: HBASE-23650.patch
>
>
> NullPointException occurs when the SnapshotCleaner calls the init function to
> initialize the HMaster parameter. Similar to the construction method of
> HFileCleaner, because the construction method of LogCleaner did not have
> HMaster parameter, leading to errors. Therefore, the construction method of
> LogCleaner solves the problem by adding HMaster parameters.
> The Log:
> {code:java}
> java.lang.NullPointerExceptionjava.lang.NullPointerException at
> org.apache.hadoop.hbase.master.snapshot.SnapshotLogCleaner.init(SnapshotLogCleaner.java:74)
> at
> org.apache.hadoop.hbase.master.cleaner.TestSnapshotAndLogCleaner.testSnapshotLogCleaning(TestSnapshotAndLogCleaner.java:68){code}
--
This message was sent by Atlassian Jira
(v8.20.1#820001)