[ https://issues.apache.org/jira/browse/HBASE-9274?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jonathan Hsieh updated HBASE-9274: ---------------------------------- Status: Patch Available (was: Open) The patch submitted makes it so that tests no longer drop detritus into /tmp/hbase-<user>. The root cause is that instances of a default HBaseConfiguration with hbase.rootdir set to /tmp/hbase-<user> sneaks into different parts of test code via mocked or wrapped RegionServerServices and FileSystems, and because the namespaces changes cause the hfile archiver to generates dirs by consulting hbase.rootdir (instead of using a relative path like before). The patch makes it good style to instantiate hregions and other objects from the HBaseTestingUtility helpers methods. > After HBASE-8408 applied, temporary test files are being left in > /tmp/hbase-<user> > ---------------------------------------------------------------------------------- > > Key: HBASE-9274 > URL: https://issues.apache.org/jira/browse/HBASE-9274 > Project: HBase > Issue Type: Bug > Components: test > Affects Versions: 0.95.2 > Reporter: Jonathan Hsieh > Assignee: Jonathan Hsieh > Fix For: 0.98.0, 0.95.3 > > Attachments: hbase-9274.patch > > > Some of our jenkins CI machines have been failing out with /tmp/hbase-<user> > This can be shown by executing the following command before and after the > namespaces patch. > {code} > # several tests are dropping stuff in the archive dir, just pick one > mvn clean test -Dtest=TestEncodedSeekers > find /tmp/hbase-jon/hbase/ > {code} > /tmp/hbase-jon after test run before patch applied > {code} > $ find /tmp/hbase-jon/ > /tmp/hbase-jon/ > /tmp/hbase-jon/local > /tmp/hbase-jon/local/jars > {code} > after namespaces patch applied > {code} > /tmp/hbase-jon/ > /tmp/hbase-jon/local > /tmp/hbase-jon/local/jars > /tmp/hbase-jon/hbase > /tmp/hbase-jon/hbase/.archive > /tmp/hbase-jon/hbase/.archive/.data > /tmp/hbase-jon/hbase/.archive/.data/default > /tmp/hbase-jon/hbase/.archive/.data/default/encodedSeekersTable > /tmp/hbase-jon/hbase/.archive/.data/default/encodedSeekersTable/c6ec51dca2a9fe4c2279006345d62b35 > /tmp/hbase-jon/hbase/.archive/.data/default/encodedSeekersTable/c6ec51dca2a9fe4c2279006345d62b35/encodedSeekersCF > /tmp/hbase-jon/hbase/.archive/.data/default/encodedSeekersTable/c6ec51dca2a9fe4c2279006345d62b35/encodedSeekersCF/8e76a87806b94483851158366f7d5c17 > /tmp/hbase-jon/hbase/.archive/.data/default/encodedSeekersTable/c6ec51dca2a9fe4c2279006345d62b35/encodedSeekersCF/494c07dbf08940749696bb0f9278401e > /tmp/hbase-jon/hbase/.archive/.data/default/encodedSeekersTable/c6ec51dca2a9fe4c2279006345d62b35/encodedSeekersCF/.8e76a87806b94483851158366f7d5c1 > 7.crc > .... > {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira