[
https://issues.apache.org/jira/browse/KYLIN-1620?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
yunjiong zhao updated KYLIN-1620:
---------------------------------
Attachment: KYLIN-1620.patch
Let me know if there are other places also will get or scan from metadata table.
And please read
https://hbase.apache.org/book.html#arch.timelineconsistent.reads, be aware of
the tradeoffs, let me know whether we need check Result.isStale() and do
something accordingly.
> support read from metadata replica regions
> ------------------------------------------
>
> Key: KYLIN-1620
> URL: https://issues.apache.org/jira/browse/KYLIN-1620
> Project: Kylin
> Issue Type: Sub-task
> Reporter: yunjiong zhao
> Assignee: yunjiong zhao
> Attachments: KYLIN-1620.patch
>
>
> After we set multiple replicas for metadata table, we need set Consistency to
> TIMELINE to let client can get/scan from replica regions. By default, the
> consistency is STRONG, and get or scan can only go to primary region.
> {code}
> Get get = new Get(row);
> get.setConsistency(Consistency.TIMELINE);
> Scan scan = new Scan();
> scan.setConsistency(Consistency.TIMELINE);
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)