[
https://issues.apache.org/jira/browse/BEAM-6160?focusedWorklogId=171700&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-171700
]
ASF GitHub Bot logged work on BEAM-6160:
----------------------------------------
Author: ASF GitHub Bot
Created on: 03/Dec/18 20:22
Start Date: 03/Dec/18 20:22
Worklog Time Spent: 10m
Work Description: lukecwik commented on a change in pull request #7168:
[BEAM-6160] Use service server rather than service
URL: https://github.com/apache/beam/pull/7168#discussion_r238422004
##########
File path:
runners/java-fn-execution/src/main/java/org/apache/beam/runners/fnexecution/ServerFactory.java
##########
@@ -153,22 +153,109 @@ private static Server
createServer(List<BindableService> services, InetSocketAdd
service,
GrpcContextHeaderAccessorProvider.interceptor())));
return builder.build().start();
}
+ }
+
+ /**
+ * Creates a {@link Server gRPC Server} using a Unix domain socket. Note
that this requires <a
+ * href="http://netty.io/wiki/forked-tomcat-native.html">Netty TcNative</a>
available to be able
+ * to provide a {@link EpollServerDomainSocketChannel}.
+ *
+ * <p>The unix domain socket is located at
${java.io.tmpdir}/fnapi${random[0-10000)}.sock
+ */
+ private static class EpollDomainSocket extends ServerFactory {
+ private static File getFileForPort(int port) {
Review comment:
rename to `chooseRandomTmpFile`
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 171700)
Time Spent: 2h (was: 1h 50m)
> Simplify service and server creation in dataflow runner harness
> ---------------------------------------------------------------
>
> Key: BEAM-6160
> URL: https://issues.apache.org/jira/browse/BEAM-6160
> Project: Beam
> Issue Type: Sub-task
> Components: runner-dataflow
> Reporter: Boyuan Zhang
> Assignee: Boyuan Zhang
> Priority: Major
> Time Spent: 2h
> Remaining Estimate: 0h
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)