Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-5719

Nodejs thrift 17 connection_gone() called after some time, after upgrade thrift 12 ->17

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.13.0, 0.14.0, 0.15.0, 0.16.0, 0.17.0, 0.18.0
    • None
    • Node.js - Library
    • None
    • Important

    Description

      After thrift upgade v12 to v17

      Long running thrift connections(with continuous payload) are disconnected. (node v16.15.1)

      stacktrace shows call starts from -> net.js : Socket.prototype._destroy
      this._handle.close(() => {
            debug('emit close');
            this.emit('close', isException);

      finally calling -> /thrift-0.17.0/lib/nodejs/lib/thrift/connection.js : Connection.prototype.connection_gone
      this.emit("reconnecting", {
          delay: self.retry_delay,
          attempt: self.attempts

       
      we use below parameters to create client connection =>
      var thriftConnection = thrift.createConnection(thriftServerIP, port, {
              max_attempts : Number.MAX_VALUE,
              retry_max_delay : 1000,
              timeout : 10000
          });
       

      our observation =>

      as we increase the input rate the disconnection happens faster (earlier)

       

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            adarshsonkar Adarsh sonkar
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: