Skip to content

Commit d8309c6

Browse files
committed
HBASE-28301 IntegrationTestImportTsv fails with UnsupportedOperationException (#5613)
Signed-off-by: Duo Zhang <zhangduo@apache.org> Signed-off-by: Peter Somogyi <psomogyi@apache.org> (cherry picked from commit a7429a7)
1 parent 93a0a12 commit d8309c6

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

hbase-it/src/test/java/org/apache/hadoop/hbase/mapreduce/IntegrationTestImportTsv.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -145,12 +145,10 @@ protected void doLoadIncrementalHFiles(Path hfiles, TableName tableName) throws
145145
ToolRunner.run(new LoadIncrementalHFiles(new Configuration(getConf())), args));
146146

147147
Table table = null;
148-
Scan scan = new Scan() {
149-
{
150-
setCacheBlocks(false);
151-
setCaching(1000);
152-
}
153-
};
148+
Scan scan = new Scan();
149+
scan.setCacheBlocks(false);
150+
scan.setCaching(1000);
151+
154152
try {
155153
table = util.getConnection().getTable(tableName);
156154
Iterator<Result> resultsIt = table.getScanner(scan).iterator();

0 commit comments

Comments
 (0)