You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by vj...@apache.org on 2020/08/08 08:59:43 UTC
[hbase] branch master updated: HBASE-24788 : TableOutputFormat
source compatibility (ADDENDUM)
This is an automated email from the ASF dual-hosted git repository.
vjasani pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/master by this push:
new 3edfa10 HBASE-24788 : TableOutputFormat source compatibility (ADDENDUM)
3edfa10 is described below
commit 3edfa1025c30dc17f09371dcccea1e39a495cb03
Author: Viraj Jasani <vj...@apache.org>
AuthorDate: Sat Aug 8 14:17:04 2020 +0530
HBASE-24788 : TableOutputFormat source compatibility (ADDENDUM)
Brought back InterruptedException in throws clause of getRecordWriter and checkOutputSpecs of TableOutputFormat
---
.../java/org/apache/hadoop/hbase/mapreduce/TableOutputFormat.java | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/hbase-mapreduce/src/main/java/org/apache/hadoop/hbase/mapreduce/TableOutputFormat.java b/hbase-mapreduce/src/main/java/org/apache/hadoop/hbase/mapreduce/TableOutputFormat.java
index 52f3402..8da8d83 100644
--- a/hbase-mapreduce/src/main/java/org/apache/hadoop/hbase/mapreduce/TableOutputFormat.java
+++ b/hbase-mapreduce/src/main/java/org/apache/hadoop/hbase/mapreduce/TableOutputFormat.java
@@ -155,10 +155,11 @@ implements Configurable {
* @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();
}
@@ -167,11 +168,11 @@ implements Configurable {
*
* @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();