You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Ted Yu (JIRA)" <ji...@apache.org> on 2018/09/10 00:54:00 UTC
[jira] [Created] (HBASE-21175) Partially initialized
SnapshotHFileCleaner leads to NPE during TestHFileArchiving
Ted Yu created HBASE-21175:
------------------------------
Summary: Partially initialized SnapshotHFileCleaner leads to NPE during TestHFileArchiving
Key: HBASE-21175
URL: https://issues.apache.org/jira/browse/HBASE-21175
Project: HBase
Issue Type: Test
Reporter: Ted Yu
TestHFileArchiving#testCleaningRace creates HFileCleaner instance within the test.
When SnapshotHFileCleaner.init() is called, there is no master parameter passed in {{params}}.
When the chore runs the cleaner during the test, NPE comes out of this line in getDeletableFiles():
{code}
return cache.getUnreferencedFiles(files, master.getSnapshotManager());
{code}
since master is null.
We should either check for the null master or, pass master instance properly when constructing the cleaner instance.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)