Skip to content

Commit 2fb8a34

Browse files
NihalJainpetersomogyi
authored andcommitted
HBASE-28301 IntegrationTestImportTsv fails with UnsupportedOperationException (apache#5613)
Signed-off-by: Duo Zhang <zhangduo@apache.org> Signed-off-by: Peter Somogyi <psomogyi@apache.org> (cherry picked from commit a7429a7) (cherry picked from commit 352b013) Change-Id: Ie7948b1941b6d96e48b15a8aab81fd54f8e1645a
1 parent a782ec2 commit 2fb8a34

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
@@ -144,12 +144,10 @@ protected void doLoadIncrementalHFiles(Path hfiles, TableName tableName) throws
144144
ToolRunner.run(new LoadIncrementalHFiles(new Configuration(getConf())), args));
145145

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

0 commit comments

Comments
 (0)