You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Duo Zhang (Jira)" <ji...@apache.org> on 2021/12/31 13:53:00 UTC

[jira] [Updated] (HBASE-23650) lack of HMaster parameters in the SnapshotLogCleaner leads to NLP

     [ https://issues.apache.org/jira/browse/HBASE-23650?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Duo Zhang updated HBASE-23650:
------------------------------
    Fix Version/s:     (was: 1.2.11)

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