zhijiangW commented on a change in pull request #8362: [FLINK-11391] Introduce
shuffle master interface
URL: https://github.com/apache/flink/pull/8362#discussion_r289726945
##########
File path:
flink-runtime/src/test/java/org/apache/flink/runtime/io/network/partition/consumer/SingleInputGateTest.java
##########
@@ -453,9 +457,10 @@ public void testRequestBuffersWithUnknownInputChannel()
throws Exception {
}
// Trigger updates to remote input channel from unknown
input channel
- inputGate.updateInputChannel(new
InputChannelDeploymentDescriptor(
- resultPartitionId,
-
ResultPartitionLocation.createRemote(InputChannelBuilder.STUB_CONNECTION_ID)));
+ ShuffleDescriptor sdd = createRemoteWithIdAndLocation(
+ resultPartitionId.getPartitionId(),
+ ResourceID.generate());
+ inputGate.updateInputChannel(ResourceID.generate(), new
PartitionInfo(new IntermediateDataSetID(), sdd));
Review comment:
could reuse `createPartitionInfo(resultPartitionId, ResourceID.generate())`
to create PartitionInfo here.
----------------------------------------------------------------
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