Skip to content

Commit

Permalink
HBASE-28297 IntegrationTestImportTsv fails with ArrayIndexOfOutBounds (
Browse files Browse the repository at this point in the history
…#5612)

Signed-off-by: Nihal Jain <nihaljain@apache.org>
(cherry picked from commit a09305d)
  • Loading branch information
Apache9 committed Jan 10, 2024
1 parent fc9fb5f commit 6b4db81
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
import org.slf4j.LoggerFactory;

import org.apache.hbase.thirdparty.com.google.common.base.Splitter;
import org.apache.hbase.thirdparty.com.google.common.base.Strings;

/**
* Validate ImportTsv + BulkLoadFiles on a distributed cluster.
Expand All @@ -85,6 +86,9 @@ public class IntegrationTestImportTsv extends Configured implements Tool {
{
byte[] family = Bytes.toBytes("d");
for (String line : Splitter.on('\n').split(simple_tsv)) {
if (Strings.isNullOrEmpty(line)) {
continue;
}
String[] row = line.split("\t");
byte[] key = Bytes.toBytes(row[0]);
long ts = Long.parseLong(row[1]);
Expand Down

0 comments on commit 6b4db81

Please sign in to comment.