Uploaded image for project: 'MariaDB Connector/J'
  1. MariaDB Connector/J
  2. CONJ-1371

Remove the useReadAheadInput option and ReadAheadBufferedStream

    XMLWordPrintable

Details

    • Task
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • None
    • 4.0.0
    • configuration
    • None

    Description

      ReadAheadBufferedStream is a port of MySQL Connector/J's useReadAheadInput option.
      The one historical difference was locking: BufferedInputStream methods were synchronized, while the driver's class relies on the statement lock and has none. Since JDK 19 (JDK-8284161, virtual threads), BufferedInputStream uses an internal ReentrantLock instead of the monitor when it is not subclassed, precisely so that a blocking read does not pin a virtual thread. The two classes are the same implementation, and the driver's copy has no reason to exist anymore.

      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.