You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Duo Zhang (JIRA)" <ji...@apache.org> on 2019/01/07 12:10:00 UTC

[jira] [Updated] (HBASE-21683) Reset readsEnabled flag after successfully flushing the primary region

     [ https://issues.apache.org/jira/browse/HBASE-21683?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Duo Zhang updated HBASE-21683:
------------------------------
    Attachment: HBASE-21683.patch

> Reset readsEnabled flag after successfully flushing the primary region
> ----------------------------------------------------------------------
>
>                 Key: HBASE-21683
>                 URL: https://issues.apache.org/jira/browse/HBASE-21683
>             Project: HBase
>          Issue Type: Bug
>          Components: read replicas
>            Reporter: Duo Zhang
>            Priority: Critical
>         Attachments: HBASE-21683.patch
>
>
> Found the problem when implementing HBASE-21671, TestRegionReplicaFailover is easy to fail. In this test we set REGION_REPLICA_WAIT_FOR_PRIMARY_FLUSH_CONF_KEY to true, which means the secondary replicas can not be read until the primary region has been successfully flushed. But in RegionReplicaFlushHandler, there is only one place where we call region.setReadsEnabled(true), this is incorrect.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)