[ 
https://issues.apache.org/jira/browse/HBASE-10055?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13834945#comment-13834945
 ] 

ramkrishna.s.vasudevan commented on HBASE-10055:
------------------------------------------------

Possible to extract 
{code}
+      rowdone ++;
+      if (scanLimit > 0) {
+        long sleepTimeInMs = 1000 * rowdone / scanLimit - 
(System.currentTimeMillis() - st);
+        if (sleepTimeInMs > 0) {
+          try {
+            Thread.sleep(sleepTimeInMs);
+          } catch (InterruptedException e) {
+            // do nothing.
+          }
+        }
+      }
{code}
This to a common method?  Else looks good to me.

> Add option to limit the scan speed in CopyTable and VerifyReplication
> ---------------------------------------------------------------------
>
>                 Key: HBASE-10055
>                 URL: https://issues.apache.org/jira/browse/HBASE-10055
>             Project: HBase
>          Issue Type: Improvement
>         Environment: 
>            Reporter: Liu Shaohui
>            Priority: Minor
>         Attachments: HBASE-10055-0.94-v1.diff
>
>
> Add option to limit the scan speed in CopyTable and VerifyReplication.
> When adding a new replication, we use 'CopyTable' to copy old data from 
> online cluster to peer cluster.  After that, we use 'VerifyReplication' to 
> check the data consistency of two clusters.
> To reduce the impact the online cluster's service, we add an option to limit 
> the scan speed.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to