This is an automated email from the ASF dual-hosted git repository. nihaljain pushed a commit to branch branch-2.5 in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/branch-2.5 by this push: new d8309c69eca HBASE-28301 IntegrationTestImportTsv fails with UnsupportedOperationException (#5613) d8309c69eca is described below commit d8309c69eca556198e21f23f7f5d1e42ddc90554 Author: Nihal Jain <nihalj...@apache.org> AuthorDate: Thu Jan 11 23:44:35 2024 +0530 HBASE-28301 IntegrationTestImportTsv fails with UnsupportedOperationException (#5613) Signed-off-by: Duo Zhang <zhang...@apache.org> Signed-off-by: Peter Somogyi <psomo...@apache.org> (cherry picked from commit a7429a75f22e2228154eb30383fbffee86a2f103) --- .../hadoop/hbase/mapreduce/IntegrationTestImportTsv.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/hbase-it/src/test/java/org/apache/hadoop/hbase/mapreduce/IntegrationTestImportTsv.java b/hbase-it/src/test/java/org/apache/hadoop/hbase/mapreduce/IntegrationTestImportTsv.java index 9d17b3ec976..9a577332524 100644 --- a/hbase-it/src/test/java/org/apache/hadoop/hbase/mapreduce/IntegrationTestImportTsv.java +++ b/hbase-it/src/test/java/org/apache/hadoop/hbase/mapreduce/IntegrationTestImportTsv.java @@ -145,12 +145,10 @@ public class IntegrationTestImportTsv extends Configured implements Tool { ToolRunner.run(new LoadIncrementalHFiles(new Configuration(getConf())), args)); Table table = null; - Scan scan = new Scan() { - { - setCacheBlocks(false); - setCaching(1000); - } - }; + Scan scan = new Scan(); + scan.setCacheBlocks(false); + scan.setCaching(1000); + try { table = util.getConnection().getTable(tableName); Iterator<Result> resultsIt = table.getScanner(scan).iterator();