azagrebin commented on a change in pull request #8416: [FLINK-12331] Introduce
partition/gate setup to decouple task registration with NetworkEnvironment
URL: https://github.com/apache/flink/pull/8416#discussion_r283252923
##########
File path:
flink-runtime/src/test/java/org/apache/flink/runtime/io/network/partition/consumer/SingleInputGateTest.java
##########
@@ -415,16 +395,19 @@ public void testRequestBuffersWithRemoteInputChannel()
throws Exception {
final NetworkEnvironment network = createNetworkEnvironment();
try {
- final ResultPartitionID resultPartitionId = new
ResultPartitionID();
- final ConnectionID connectionId = new ConnectionID(new
InetSocketAddress("localhost", 5000), 0);
- addRemoteInputChannel(network, inputGate, connectionId,
resultPartitionId, 0);
+ RemoteInputChannel remoteFromUnknown =
+ InputChannelBuilder.newBuilder()
+ .setupFromNetworkEnvironment(network)
+ .buildUnknown(inputGate)
+
.toRemoteInputChannel(InputChannelBuilder.STUB_CONNECTION_ID);
Review comment:
I tried to preserve the previous way of building remote but looking at it
more, true, it does not seem to be relevant.
----------------------------------------------------------------
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