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

Anoop Sam John commented on HBASE-10157:
----------------------------------------

{code}
     this.isRecovering = newState;
+    if (wasRecovering && !isRecovering) {
+      // Call only when log replay is over.
+      coprocessorHost.postLogReplay();
+    }
{code}
In the patch calling the hook after setting the boolean state. Can change to 
call the hook before setting the boolean? That will make sure that region will 
show its status as recovering before even while postLogReplay() hook works.

> Provide CP hook post log replay
> -------------------------------
>
>                 Key: HBASE-10157
>                 URL: https://issues.apache.org/jira/browse/HBASE-10157
>             Project: HBase
>          Issue Type: Improvement
>          Components: Coprocessors
>    Affects Versions: 0.96.0
>            Reporter: Anoop Sam John
>            Assignee: Anoop Sam John
>             Fix For: 0.98.0, 0.96.2, 0.99.0
>
>         Attachments: HBASE-10157.patch, HBASE-10157_V2.patch
>
>




--
This message was sent by Atlassian JIRA
(v6.1.4#6159)

Reply via email to