[
https://issues.apache.org/jira/browse/BEAM-12174?focusedWorklogId=586202&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-586202
]
ASF GitHub Bot logged work on BEAM-12174:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 20/Apr/21 21:17
Start Date: 20/Apr/21 21:17
Worklog Time Spent: 10m
Work Description: mynameborat commented on a change in pull request
#14554:
URL: https://github.com/apache/beam/pull/14554#discussion_r617037416
##########
File path:
runners/samza/src/main/java/org/apache/beam/runners/samza/SamzaExecutionContext.java
##########
@@ -81,93 +50,11 @@ void setMetricsContainer(SamzaMetricsContainer
metricsContainer) {
this.metricsContainer = metricsContainer;
}
- public JobBundleFactory getJobBundleFactory() {
- return this.jobBundleFactory;
- }
-
- void setJobBundleFactory(JobBundleFactory jobBundleFactory) {
- this.jobBundleFactory = jobBundleFactory;
- }
-
@Override
- public void start() {
- checkState(getJobBundleFactory() == null, "jobBundleFactory has been
created!");
-
- if (SamzaRunnerOverrideConfigs.isPortableMode(options)) {
- try {
- controlClientPool = MapControlClientPool.create();
- dataExecutor = Executors.newCachedThreadPool();
-
- fnControlServer =
- GrpcFnServer.allocatePortAndCreateFor(
- FnApiControlClientPoolService.offeringClientsToPool(
- controlClientPool.getSink(), () -> SAMZA_WORKER_ID),
- ServerFactory.createWithPortSupplier(
- () ->
SamzaRunnerOverrideConfigs.getFnControlPort(options)));
- LOG.info("Started control server on port {}",
fnControlServer.getServer().getPort());
-
- fnDataServer =
- GrpcFnServer.allocatePortAndCreateFor(
- GrpcDataService.create(
- options, dataExecutor,
OutboundObserverFactory.serverDirect()),
- ServerFactory.createDefault());
- LOG.info("Started data server on port {}",
fnDataServer.getServer().getPort());
-
- fnStateServer =
- GrpcFnServer.allocatePortAndCreateFor(
- GrpcStateService.create(), ServerFactory.createDefault());
- LOG.info("Started state server on port {}",
fnStateServer.getServer().getPort());
-
- final long waitTimeoutMs =
- SamzaRunnerOverrideConfigs.getControlClientWaitTimeoutMs(options);
- LOG.info("Control client wait timeout config: " + waitTimeoutMs);
-
- final InstructionRequestHandler instructionHandler =
- controlClientPool.getSource().take(SAMZA_WORKER_ID,
Duration.ofMillis(waitTimeoutMs));
- final EnvironmentFactory environmentFactory =
- (environment, workerId) ->
- RemoteEnvironment.forHandler(environment, instructionHandler);
- // TODO: use JobBundleFactoryBase.WrappedSdkHarnessClient.wrapping
- jobBundleFactory =
- SingleEnvironmentInstanceJobBundleFactory.create(
- environmentFactory, fnDataServer, fnStateServer, idGenerator);
- LOG.info("Started job bundle factory");
- } catch (Exception e) {
- throw new RuntimeException(
- "Running samza in Beam portable mode but failed to create job
bundle factory", e);
- }
-
- setJobBundleFactory(jobBundleFactory);
- }
- }
+ public void start() {}
Review comment:
Sure!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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: 586202)
Time Spent: 2h 10m (was: 2h)
> Samza Portable Runner Support
> -----------------------------
>
> Key: BEAM-12174
> URL: https://issues.apache.org/jira/browse/BEAM-12174
> Project: Beam
> Issue Type: New Feature
> Components: runner-samza
> Reporter: Ke Wu
> Assignee: Ke Wu
> Priority: P2
> Time Spent: 2h 10m
> Remaining Estimate: 0h
>
> Update Samza Runner to support Beam Portability Framework.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)