Skip to content

Commit

Permalink
HBASE-24788 : TableOutputFormat source compatibility (ADDENDUM)
Browse files Browse the repository at this point in the history
Brought back InterruptedException in throws clause of getRecordWriter and checkOutputSpecs of TableOutputFormat
  • Loading branch information
virajjasani committed Aug 8, 2020
1 parent 65d8653 commit cb21c5a
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,11 @@ public void write(KEY key, Mutation value)
* @param context The current task context.
* @return The newly created writer instance.
* @throws IOException When creating the writer fails.
* @throws InterruptedException When the job is cancelled.
*/
@Override
public RecordWriter<KEY, Mutation> getRecordWriter(TaskAttemptContext context)
throws IOException {
throws IOException, InterruptedException {
return new TableRecordWriter();
}

Expand All @@ -167,11 +168,11 @@ public RecordWriter<KEY, Mutation> getRecordWriter(TaskAttemptContext context)
*
* @param context The current context.
* @throws IOException When the check fails.
* @throws InterruptedException When the job is aborted.
* @see OutputFormat#checkOutputSpecs(JobContext)
*/
@Override
public void checkOutputSpecs(JobContext context)
throws IOException {
public void checkOutputSpecs(JobContext context) throws IOException, InterruptedException {
Configuration hConf = getConf();
if (hConf == null) {
hConf = context.getConfiguration();
Expand Down

0 comments on commit cb21c5a

Please sign in to comment.