Skip to content

Commit

Permalink
MAPREDUCE-7368. DBOutputFormat.DBRecordWriter#write must throw except…
Browse files Browse the repository at this point in the history
…ion when it fails. (#3671). Contributed by  Stamatis Zampetakis.

Signed-off-by: Ayush Saxena <ayushsaxena@apache.org>
  • Loading branch information
zabetak authored Dec 8, 2021
1 parent 25849ff commit bface2a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public void write(K key, V value) throws IOException {
key.write(statement);
statement.addBatch();
} catch (SQLException e) {
e.printStackTrace();
throw new IOException("Failed to execute SQL statement for key " + key, e);
}
}
}
Expand Down

0 comments on commit bface2a

Please sign in to comment.