Uploaded image for project: 'MariaDB Connector/R2DBC'
  1. MariaDB Connector/R2DBC
  2. R2DBC-111

potential hang when upstream subscription is cancelled before demand

    XMLWordPrintable

Details

    • New Feature
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • None
    • 1.4.0
    • other
    • None

    Description

      from pr https://github.com/mariadb-corporation/mariadb-connector-r2dbc/issues/89

      Fixed a potential memory leak where cancelled Exchange objects could remain stuck at the head of the exchange queue, blocking all subsequent queries.

      When a subscription was cancelled before any onRequest() was called (demand = 0), the Exchange could not be processed in either onNext() or tryDrainQueue() because both only checked hasDemand(). This caused the cancelled Exchange to block the queue indefinitely.

      stream must take isCancelled into account.

      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.