[
https://issues.apache.org/jira/browse/HBASE-21675?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16743576#comment-16743576
]
Zheng Hu commented on HBASE-21675:
----------------------------------
Not a big problem. the runCopy skip the bulk load step before, fix this then
all UT pass:
{code}
@@ -258,7 +251,64 @@ public class TestCopyTable {
Configuration configuration = opts.getConfiguration();
args = opts.getRemainingArgs();
Job job = new CopyTable(configuration).createSubmittableJob(args);
- job.waitForCompletion(false);
- return job.isSuccessful();
+ if (job != null) {
+ job.waitForCompletion(false);
+ return job.isSuccessful();
+ } else {
+ return false;
+ }
+ }
{code}
We can see that:
{code}
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
[INFO] Running org.apache.hadoop.hbase.mapreduce.TestCopyTable
[INFO] Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 351.217
s - in org.apache.hadoop.hbase.mapreduce.TestCopyTable
[INFO]
[INFO] Results:
[INFO]
[INFO] Tests run: 7, Failures: 0, Errors: 0, Skipped: 0
{code}
> Port HBASE-21642 (CopyTable by reading snapshot and bulkloading will save a
> lot of time) to branch-1
> ----------------------------------------------------------------------------------------------------
>
> Key: HBASE-21675
> URL: https://issues.apache.org/jira/browse/HBASE-21675
> Project: HBase
> Issue Type: Sub-task
> Reporter: Andrew Purtell
> Priority: Major
> Attachments: HBASE-21675-branch-1-WIP.patch
>
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)