zentol commented on a change in pull request #8687: [FLINK-12612][coordination]
Track stored partition on the TaskExecutor
URL: https://github.com/apache/flink/pull/8687#discussion_r293266613
##########
File path:
flink-runtime/src/test/java/org/apache/flink/runtime/taskexecutor/TaskExecutorPartitionLifecycleTest.java
##########
@@ -276,4 +409,69 @@ private TestingTaskExecutor
createTestingTaskExecutor(TaskManagerServices taskMa
null),
new TestingFatalErrorHandler());
}
+
+ private static class TestJobAwareShuffleEnvironment implements
JobAwareShuffleEnvironment<ResultPartitionWriter, InputGate> {
+
+ private final Function<JobID, Boolean>
hasPartitionsOccupyingLocalResourcesFunction;
+ private Consumer<JobID> listener = null;
+
+ private TestJobAwareShuffleEnvironment(Function<JobID, Boolean>
hasPartitionsOccupyingLocalResourcesFunction) {
+ this.hasPartitionsOccupyingLocalResourcesFunction =
hasPartitionsOccupyingLocalResourcesFunction;
+ }
+
+ @Override
+ public int start() throws IOException {
+ return 0;
+ }
+
+ @Override
+ public Collection<ResultPartitionWriter>
createResultPartitionWriters(JobID jobId, String taskName, ExecutionAttemptID
executionAttemptID, Collection<ResultPartitionDeploymentDescriptor>
resultPartitionDeploymentDescriptors, MetricGroup outputGroup, MetricGroup
buffersGroup) {
Review comment:
wouldn't worry about it since the methods aren't doing anything.
----------------------------------------------------------------
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]
With regards,
Apache Git Services