I am inspecting apache Flink code of how it creates connection clients: https://github.com/apache/flink/blob/master/flink-runtime/src/main/java/org/apache/flink/runtime/io/network/netty/PartitionRequestClientFactory.java#L55-L108
I am trying to think about about the waitForChannel()
method that times out after 2 seconds:
https://github.com/apache/flink/blob/master/flink-runtime/src/main/java/org/apache/flink/runtime/io/network/netty/PartitionRequestClientFactory.java#L191
I don't like this timeout and I think that if when an error
occurs or a partitionRequestClient
arrives a notifyall()
will suffice.
Am I correct? Or do we want to constantly trying to connect after a 2 second wait?