Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-2202

Support for EpollEventLoop Group in async Driver

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • 3.2.2
    • Async
    • None
    • CentOS - 6.4 64 bit

    Description

      Mongo Async driver when used in netty mode, gives an option to define EventLoopGroup in the constructor for NettyStreamFactoryFactory.

      However it is not possible to use EpollEventLoopGroup since in NettyStream class in openAsync() bootstrap channel will always be NioSocketChannel.

      NettyStream.java

       
           public void openAsync(final AsyncCompletionHandler<Void> handler) {
                 Bootstrap bootstrap = new Bootstrap();
                 bootstrap.group(workerGroup);
                bootstrap.channel(NioSocketChannel.class);
      

      https://github.com/mongodb/mongo-java-driver/blob/3.2.x/driver-core/src/main/com/mongodb/connection/netty/NettyStream.java

      Attachments

        Activity

          People

            ross@mongodb.com Ross Lawley
            neeraj.gupta Neeraj Gupta
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: