Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Won't Fix
-
2.0.0-alpha
-
None
-
None
-
None
Description
1. Instead of the printing the stack trace on the console, It can be logged.
DBOutputFormat.java
public void write(K key, V value) throws IOException { try { key.write(statement); statement.addBatch(); } catch (SQLException e) { e.printStackTrace(); } }
2. Missing resource information can be logged.
CounterGroup .java
protected CounterGroup(String name) { this.name = name; try { bundle = getResourceBundle(name); } catch (MissingResourceException neverMind) { } displayName = localize("CounterGroupName", name); } private String localize(String key, String defaultValue) { String result = defaultValue; if (bundle != null) { try { result = bundle.getString(key); } catch (MissingResourceException mre) { } } return result; }
Attachments
Attachments
Issue Links
- is superceded by
-
MAPREDUCE-7368 DBOutputFormat.DBRecordWriter#write must throw exception when it fails
- Resolved