Uploaded image for project: 'MariaDB Connector/node.js'
  1. MariaDB Connector/node.js
  2. CONJS-386

Queued command dropped before it starts, its promise never settles

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • None
    • 3.5.5
    • other
    • None

    Description

      from https://github.com/mariadb-corporation/mariadb-connector-nodejs/pull/358

      A query issued while the connection is still sending a previous command, for example a large insert or a streamed parameter, could be lost. Instead of running once the previous command had been sent, it was silently removed from the connection's queue, and its promise or callback was never settled. The application then waited forever for that query.

      The same happened on a socket failure: a query waiting behind another command was dropped without receiving the error, so the application was not told the connection was gone.

      The connector now keeps such queries queued until they run, and reports the socket error to them like to any other pending query.

      Attachments

        Activity

          People

            diego dupin Diego Dupin
            diego dupin Diego Dupin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.