Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-23030

PartitionRequestClientFactory#createPartitionRequestClient should throw when network failure

    XMLWordPrintableJSON

Details

    Description

      In current PartitionRequestClientFactory#createPartitionRequestClient, ChannelFuture#await() is invoked, thus to build a connection to remote synchronously.

      But with the doc of io.netty.util.concurrent.Future [1] and its implementation io.netty.channel.DefaultChannelPromise [2], ChannelFuture#await() never throws when completed with failure. I guess what Flink needs is ChannelFuture#sync().

      [1]  https://netty.io/4.1/api/io/netty/util/concurrent/class-use/Future.html

      [2] https://github.com/netty/netty/blob/4.1/transport/src/main/java/io/netty/channel/DefaultChannelPromise.java

            https://github.com/netty/netty/blob/4.1/common/src/main/java/io/netty/util/concurrent/DefaultPromise.java

      Attachments

        Issue Links

          Activity

            People

              jinxing6042@126.com Jin Xing
              jinxing6042@126.com Jin Xing
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: