Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-4945

NPE in HRegion.bulkLoadHFiles(...)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.92.0, 0.94.0
    • 0.92.0
    • mapreduce
    • None

    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));
      ...
      }
      

      Attachments

        1. HBASE-4945.patch
          1 kB
          Andrew Kyle Purtell

        Activity

          People

            larsh Lars Hofhansl
            larsh Lars Hofhansl
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: