[ 
https://issues.apache.org/jira/browse/KUDU-2971?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17042342#comment-17042342
 ] 

ASF subversion and git services commented on KUDU-2971:
-------------------------------------------------------

Commit 20be5d957ab80c7c0ed8eaf62324ac70940d7543 in kudu's branch 
refs/heads/master from Andrew Wong
[ https://gitbox.apache.org/repos/asf?p=kudu.git;h=20be5d9 ]

[cpp] KUDU-2971: protobuf-based wrapper for subprocesses

This patch adds the SubprocessServer, a wrapper for subprocesses that
communicate via SubprocessRequestPB and SubprocessResponsePB messages.

The server employs two queues (one outbound for requests, one inbound
for responses) to buffer concurrent requests and process responses in
parallel. See the comments in subprocess/server.h for more details.

Each call to the subprocess has a fixed timeout of 15 seconds (to match
with the Sentry client, though this is configurable via gflag), after
which the callback will be called with a TimedOut error. These deadlines
are checked in a separate "deadline-checker" thread, and callbacks are
wrapped in the SubprocessCall class to ensure thread-safety between
potential callers of each callback.

Change-Id: Id611e1c683df2721fd058f753b8686a688a5990d
Reviewed-on: http://gerrit.cloudera.org:8080/15185
Reviewed-by: Adar Dembo <[email protected]>
Tested-by: Kudu Jenkins


> Add a generic Java library wrapper
> ----------------------------------
>
>                 Key: KUDU-2971
>                 URL: https://issues.apache.org/jira/browse/KUDU-2971
>             Project: Kudu
>          Issue Type: Sub-task
>    Affects Versions: 1.11.0
>            Reporter: Hao Hao
>            Assignee: Hao Hao
>            Priority: Major
>
> For Ranger integration, to call Java Ranger plugin from masters, we need a 
> create a wrapper (via Java subprocess). This should be generic to be used by 
> future integrations (e.g. Atlas) which need to call other Java libraries.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to