Description
Was playing with "completebulkload", and ran into an NPE.
The problem is here (HRegion.bulkLoadHFiles(...)).
Store store = getStore(familyName); if (store == null) { IOException ioe = new DoNotRetryIOException( "No such column family " + Bytes.toStringBinary(familyName)); ioes.add(ioe); failures.add(p); } try { store.assertBulkLoadHFileOk(new Path(path)); } catch (WrongRegionException wre) { // recoverable (file doesn't fit in region) failures.add(p); } catch (IOException ioe) { // unrecoverable (hdfs problem) ioes.add(ioe); }
This should be
Store store = getStore(familyName); if (store == null) { ... } else { try { store.assertBulkLoadHFileOk(new Path(path)); ... }