HCatalog
  1. HCatalog
  2. HCATALOG-324

NPE in Reduce phase if Transaction is not defined

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 0.4
    • Fix Version/s: None
    • Component/s: hbase
    • Labels:
      None

      Description

      https://github.com/apache/hcatalog/blob/trunk/storage-handlers/hbase/src/java/org/apache/hcatalog/hbase/HBaseHCatStorageHandler.java#L137

      This code should check to see if the Transaction is good. If I write a stub that returns null a NPE only gets throw in the Reduce phase:

      java.lang.NullPointerException
      at org.apache.hcatalog.hbase.HBaseRevisionManagerUtil.getOutputRevision(HBaseRevisionManagerUtil.java:261)
      at org.apache.hcatalog.hbase.HBaseDirectOutputFormat.getRecordWriter(HBaseDirectOutputFormat.java:58)
      at org.apache.hcatalog.hbase.HBaseBaseOutputFormat.getRecordWriter(HBaseBaseOutputFormat.java:60)
      at org.apache.hcatalog.mapreduce.DefaultOutputFormatContainer.getRecordWriter(DefaultOutputFormatContainer.java:68)
      at org.apache.hcatalog.mapreduce.HCatOutputFormat.getRecordWriter(HCatOutputFormat.java:234)
      at org.apache.hadoop.mapred.ReduceTask$NewTrackingRecordWriter.<init>(ReduceTask.java:569)
      at org.apache.hadoop.mapred.ReduceTask.runNewReducer(ReduceTask.java:638)
      at org.apache.hadoop.mapred.ReduceTask.run(ReduceTask.java:417)

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            David Capwell
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development