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

TableOutputFormat ignores failure to create table instance

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.90.3
    • 0.92.0, 0.94.0
    • None
    • None
    • Reviewed

    Description

      If TableOutputFormat in the new API fails to create a table, it simply logs this at ERROR level and then continues on its way. Then, the first write() to the table will throw a NPE since table hasn't been set.

      Instead, it should probably rethrow the exception as a RuntimeException in setConf, or do what the old-API TOF does and not create the HTable instance until getRecordWriter, where it can throw an IOE.

      Attachments

        1. HBASE-4065.1.patch
          1 kB
          Brock Noland
        2. HBASE-4065.2.patch
          1 kB
          Brock Noland

        Activity

          People

            brocknoland Brock Noland
            tlipcon Todd Lipcon
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: