[ https://issues.apache.org/jira/browse/BEAM-4681?focusedWorklogId=165286&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-165286 ]
ASF GitHub Bot logged work on BEAM-4681: ---------------------------------------- Author: ASF GitHub Bot Created on: 13/Nov/18 03:56 Start Date: 13/Nov/18 03:56 Worklog Time Spent: 10m Work Description: ryan-williams commented on a change in pull request #7008: [BEAM-4681] Add support for portable timers in Flink batch mode URL: https://github.com/apache/beam/pull/7008#discussion_r232890143 ########## File path: runners/flink/src/test/java/org/apache/beam/runners/flink/translation/functions/FlinkExecutableStageFunctionTest.java ########## @@ -85,17 +86,38 @@ .setInput("input") .setComponents( Components.newBuilder() + .putTransforms( + "transform", + RunnerApi.PTransform.newBuilder() + .putInputs("bla", "input") + .setSpec(RunnerApi.FunctionSpec.newBuilder().setUrn(PAR_DO_TRANSFORM_URN)) + .build()) .putPcollections("input", PCollection.getDefaultInstance()) .build()) + .addUserStates( + ExecutableStagePayload.UserStateId.newBuilder().setTransformId("transform").build()) .build(); private final JobInfo jobInfo = JobInfo.create("job-id", "job-name", "retrieval-token", Struct.getDefaultInstance()); @Before - public void setUpMocks() { + public void setUpMocks() throws Exception { MockitoAnnotations.initMocks(this); when(runtimeContext.getDistributedCache()).thenReturn(distributedCache); when(stageContext.getStageBundleFactory(any())).thenReturn(stageBundleFactory); + RemoteBundle remoteBundle = Mockito.mock(RemoteBundle.class); + when(stageBundleFactory.getBundle(any(), any(), any())).thenReturn(remoteBundle); + // ProcessBundleDescriptors.ExecutableProcessBundleDescriptor processBundleDescriptor = Review comment: intentionally leaving these here? ---------------------------------------------------------------- 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: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 165286) Time Spent: 8h (was: 7h 50m) > Integrate support for timers using the portability APIs into Flink > ------------------------------------------------------------------ > > Key: BEAM-4681 > URL: https://issues.apache.org/jira/browse/BEAM-4681 > Project: Beam > Issue Type: Sub-task > Components: runner-flink > Reporter: Luke Cwik > Assignee: Maximilian Michels > Priority: Major > Labels: portability, portability-flink > Time Spent: 8h > Remaining Estimate: 0h > > Consider using the code produced in BEAM-4658 to support timers. -- This message was sent by Atlassian JIRA (v7.6.3#76005)