MAPREDUCE-7368. DBOutputFormat.DBRecordWriter#write must throw exception when it fails. (#3671). Contributed by Stamatis Zampetakis.

Signed-off-by: Ayush Saxena <ayushsaxena@apache.org>
This commit is contained in:
Stamatis Zampetakis 2021-12-08 12:10:11 +01:00 committed by GitHub
parent 25849ff7b7
commit bface2ac6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -122,7 +122,7 @@ extends OutputFormat<K,V> {
key.write(statement);
statement.addBatch();
} catch (SQLException e) {
e.printStackTrace();
throw new IOException("Failed to execute SQL statement for key " + key, e);
}
}
}