This is an automated email from the ASF dual-hosted git repository. nihaljain pushed a commit to branch branch-2.4 in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/branch-2.4 by this push: new 352b013610b HBASE-28301 IntegrationTestImportTsv fails with UnsupportedOperationException (#5613) 352b013610b is described below commit 352b013610b1e59ed74a2968f1f11e392de028d0 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 ec27edc66f4..a7bc42ddc25 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 @@ -144,12 +144,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();