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

Lars Hofhansl commented on HBASE-12957:
---------------------------------------

Why not use a Get then, or any other operation addressing a region by its start 
key?

Related:
We're working on a another patch that makes the scan test optional in 
region_mover.rb.

In our case we want this as best effort: Try to move the regions off, if that 
does not work kill the region server anyway.
It's more important that we can make progress quickly rather than hanging 
verifying regions. It turns out to be about 9-10x faster when avoiding the scan 
test altogether.


> region_mover#isSuccessfulScan may be extremely slow on region with lots of 
> expired data
> ---------------------------------------------------------------------------------------
>
>                 Key: HBASE-12957
>                 URL: https://issues.apache.org/jira/browse/HBASE-12957
>             Project: HBase
>          Issue Type: Improvement
>          Components: scripts
>            Reporter: hongyu bi
>            Assignee: hongyu bi
>            Priority: Minor
>             Fix For: 2.0.0, 1.1.0
>
>         Attachments: HBASE-12957-v0.patch
>
>
> region_mover will call isSuccessfulScan when region has moved to make sure 
> it's healthy, however , if the moved region has lots of expired data 
> region_mover#isSuccessfulScan will take a long time to finish ,that may even 
> exceed "lease timeout".So I made isSuccessfulScan a get-like scan to achieve 
> faster response in that case. 
> workaround:before graceful_stop/rolling_restart ,call major_compact on the 
> table with small TTL



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to