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

Samarth Jain updated PHOENIX-3723:
----------------------------------
    Attachment: PHOENIX-3723_wip.patch

WIP patch. Wanted to park something here to get feedback on the approach. 

Needs clean up. Configs params also need to be added to configure what kind of 
RPCScheduler to use for phoenix. We may already have one but need to look 
closer if it will work. I am also not a fan of having to do a 
ProtoBufUtil.toScan() when figuring out the scan attribute used for grouping 
scans together. But I don't think there is an alternative.

I am re-using scanId as an attribute to group scans together. scanId is 
generated using 

{code}
scanId = new UUID(ThreadLocalRandom.current().nextLong(), 
ThreadLocalRandom.current().nextLong()).toString();
{code}

for uniqueness.



> Use round robin queue for phoenix scan rpc tasks on region servers
> ------------------------------------------------------------------
>
>                 Key: PHOENIX-3723
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-3723
>             Project: Phoenix
>          Issue Type: Improvement
>            Reporter: Samarth Jain
>            Assignee: Samarth Jain
>         Attachments: PHOENIX-3723_wip.patch
>
>




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to