HBASE-6593 TestAdmin times out sometimes
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1374061 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
6af9a020b2
commit
a7b5e34cf2
|
@ -875,16 +875,19 @@ public class TestAdmin {
|
||||||
numVersions, blockSize);
|
numVersions, blockSize);
|
||||||
try {
|
try {
|
||||||
int rowCount = 0;
|
int rowCount = 0;
|
||||||
|
byte[] q = new byte[0];
|
||||||
|
|
||||||
// insert rows into column families. The number of rows that have values
|
// insert rows into column families. The number of rows that have values
|
||||||
// in a specific column family is decided by rowCounts[familyIndex]
|
// in a specific column family is decided by rowCounts[familyIndex]
|
||||||
for (int index = 0; index < familyNames.length; index++) {
|
for (int index = 0; index < familyNames.length; index++) {
|
||||||
|
ArrayList<Put> puts = new ArrayList<Put>(rowCounts[index]);
|
||||||
for (int i = 0; i < rowCounts[index]; i++) {
|
for (int i = 0; i < rowCounts[index]; i++) {
|
||||||
byte[] k = Bytes.toBytes(i);
|
byte[] k = Bytes.toBytes(i);
|
||||||
Put put = new Put(k);
|
Put put = new Put(k);
|
||||||
put.add(familyNames[index], new byte[0], k);
|
put.add(familyNames[index], q, k);
|
||||||
table.put(put);
|
puts.add(put);
|
||||||
}
|
}
|
||||||
|
table.put(puts);
|
||||||
|
|
||||||
if ( rowCount < rowCounts[index] ) {
|
if ( rowCount < rowCounts[index] ) {
|
||||||
rowCount = rowCounts[index];
|
rowCount = rowCounts[index];
|
||||||
|
|
Loading…
Reference in New Issue