HBASE-17637 Update progress more frequently in IntegrationTestBigLinkedList.Generator.persist
This commit is contained in:
parent
bf0c343fb8
commit
eb889f6a4b
|
@ -509,6 +509,12 @@ public class IntegrationTestBigLinkedList extends IntegrationTestBase {
|
||||||
protected void persist(Context output, long count, byte[][] prev, byte[][] current, byte[] id)
|
protected void persist(Context output, long count, byte[][] prev, byte[][] current, byte[] id)
|
||||||
throws IOException {
|
throws IOException {
|
||||||
for (int i = 0; i < current.length; i++) {
|
for (int i = 0; i < current.length; i++) {
|
||||||
|
|
||||||
|
if (i % 100 == 0) {
|
||||||
|
// Tickle progress every so often else maprunner will think us hung
|
||||||
|
output.progress();
|
||||||
|
}
|
||||||
|
|
||||||
Put put = new Put(current[i]);
|
Put put = new Put(current[i]);
|
||||||
put.addColumn(FAMILY_NAME, COLUMN_PREV, prev == null ? NO_KEY : prev[i]);
|
put.addColumn(FAMILY_NAME, COLUMN_PREV, prev == null ? NO_KEY : prev[i]);
|
||||||
|
|
||||||
|
@ -531,12 +537,8 @@ public class IntegrationTestBigLinkedList extends IntegrationTestBase {
|
||||||
put.addColumn(BIG_FAMILY_NAME, BIG_FAMILY_NAME, this.bigValue);
|
put.addColumn(BIG_FAMILY_NAME, BIG_FAMILY_NAME, this.bigValue);
|
||||||
}
|
}
|
||||||
mutator.mutate(put);
|
mutator.mutate(put);
|
||||||
|
|
||||||
if (i % 1000 == 0) {
|
|
||||||
// Tickle progress every so often else maprunner will think us hung
|
|
||||||
output.progress();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
mutator.flush();
|
mutator.flush();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue