Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
3.3.1
Description
When the DBRecordWriter#write fails with an SQLException the problem is not propagated but printed in System.err instead.
public void write(K key, V value) throws IOException { try { key.write(statement); statement.addBatch(); } catch (SQLException e) { e.printStackTrace(); } }
The consumer of this API has no way to tell that the write failed. Moreover, the exception is not present in the logs which makes the problem very hard debug and can easily lead to data corruption since clients can easily assume that everything went well.
Attachments
Issue Links
- relates to
-
HIVE-25717 INSERT INTO on external MariaDB/MySQL table fails silently
- Open
- supercedes
-
MAPREDUCE-2548 Log improvements in DBOutputFormat.java and CounterGroup.java
- Resolved
- links to