Uploaded image for project: 'Kudu'
  1. Kudu
  2. KUDU-2771

Re-factor the common pattern of queuing requests from multiple threads

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.10.0
    • Fix Version/s: None
    • Component/s: util
    • Labels:

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              aserbin Alexey Serbin
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: