You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kudu.apache.org by "Alexey Serbin (JIRA)" <ji...@apache.org> on 2019/04/10 18:38:00 UTC

[jira] [Created] (KUDU-2771) Re-factor the common pattern of queuing requests from multiple threads into a utility

Alexey Serbin created KUDU-2771:
-----------------------------------

             Summary: Re-factor the common pattern of queuing requests from multiple threads into a utility 
                 Key: KUDU-2771
                 URL: https://issues.apache.org/jira/browse/KUDU-2771
             Project: Kudu
          Issue Type: Improvement
            Reporter: Alexey Serbin


Currently, in {{KuduClient::Data::ConnectToClusterAsync}} and in {{SentryPrivilegesFetcher::GetSentryPrivileges}} there is a pattern when concurrent requests with the same parameters are queued and multiple threads are waiting for something to be executed just once.  When the result is ready to be picked up (or a failure happened), the threads are awoken and fed with appropriate information.

It would be nice to factor out, unify, and generalize that code into a library function (or a class with appropriate methods) somewhere under {{src/kudu/util}}.



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