All Products
Search
Document Center

PolarDB:PolarProxy release notes

Last Updated:Mar 18, 2024

This topic describes the release notes of PolarProxy in PolarDB for MySQL.

For issues related to PolarProxy versions, active O&M, and upgrades, you can join us in DingTalk group 51685000218 for help.

Version management mechanisms

PolarDB for MySQL provides the following version types for management purposes.

  • New version: the current PolarProxy version of a newly purchased cluster.

  • Stable version: the version after the minor version upgrade for PolarProxy.

Whether a new version or a new and stable version is released depends on the risks of the current version. If common issues are fixed, a new and stable version is released. If major features are added, a new version is released. A new version becomes a stable version in two or three months after the release.

Query the PolarProxy version

Log on to the PolarDB console. Click the name of the desired cluster. In the left-side navigation pane of the page that appears, choose Settings and Management > Version Management. On the page that appears, check the PolarProxy version.数据库代理版本信息

PolarProxy of PolarDB for MySQL has the 1.x.x and 2.x.x versions. The two versions have the following differences:

  • 1.x.x

    Alibaba Cloud does not develop new features but only fixes issues for the version of PolarProxy configured for a cluster that was created before February 1, 2021.

  • 2.x.x

    The version of PolarProxy configured for a cluster that was created on or after February 1, 2021 is the current major version. All new features can be further developed based on the version. New features include persistent connections and data masking.

Note
  • To upgrade PolarProxy from 1.x.x to 2.x.x, ensure that the engine version of the cluster meets the following requirements:

    • If the version of your cluster is PolarDB for MySQL 8.0.2, no requirements are imposed on the revision version.

    • If the version of your cluster is PolarDB for MySQL 8.0.1, the revision version must be 8.0.1.1.10 or later.

    • If the version of your cluster is PolarDB for MySQL 5.7, the revision version must be 5.7.1.0.6 or later.

    • If the version of your cluster is PolarDB for MySQL 5.6, the revision version must be 5.6.1.0.24 or later.

  • For more information about how to upgrade PolarProxy, see Minor version update.

Release notes for PolarProxy

Release notes for PolarProxy 2.x.x

Note

Only the major versions of PolarProxy are listed. The version of PolarProxy that you use may not be included in the list.

  • 2.8.35 (Release date: February 26, 2024)

    Category

    Description

    New feature and feature optimization

    Fixed issue

    • The following issue is fixed: The binlog_dump connection is interrupted when BINLOG_DUMP_NON_BLOCK is enabled.

    • The following issue is fixed: When the automatic request distribution between column store and row store nodes feature is enabled, some connections to databases may be blocked for a long time in some scenarios.

    • The following issue is fixed: An error may occur in the session-level connection pool when SET OPTION is used.

    • The following issue is fixed: Connections may be blocked in some scenarios when STMT_SEND_LONG_DATA is used.

    • The following issue is fixed: Some connections do not exit properly when The persistent connections feature is used.

    • The following issue is fixed: Some monitoring metrics are inaccurate in some scenarios.

    • The following issue is fixed: Some proxy nodes are not working properly.

  • 2.8.28 (Release date: January 8, 2024)

    Category

    Description

    New feature and feature optimization

    • If you set Read/Write Mode to read-only and Load Balancing Policy to Active Request-based Load Balancing when you configure the automatic request distribution between column store and row store nodes feature, request distribution within transactions is supported.

    • When the automatic request distribution between column store and row store nodes feature is enabled, deleting an AP node affects existing connections.

    • You can configure server weights based on endpoints.

    • Some persistent connection scenarios are optimized.

    • Only TLS 1.2 is supported in the SSL feature.

    Fixed issue

    • The following issue is fixed: The 9000 error code is returned when you enable the automatic request distribution between column store and row store nodes feature on a PolarDB for MySQL 8.0.2 cluster.

    • The following issue is fixed: The 9000 error code is returned when you execute a SQL statement that contains special clauses after you enable the automatic request distribution between column store and row store nodes feature.

    • The following issue is fixed: The EXPLAIN SELECT statement cannot be executed in some scenarios.

    • The following issue is fixed: Requests are temporarily blocked in some scenarios when you delete a read-only node.

    • The following issue is fixed: If you use a transaction-level connection pool in some scenarios, connections may become unresponsive.

    • The following issue is fixed: Some proxy nodes are not working properly.

    • The following issue is fixed: When Consistency Level is set to Session Consistency or Global Consistency and when the automatic request distribution between column store and row store nodes feature is enabled, PolarProxy exceptions or unresponsive connections may occur.

    • The following issue is fixed: Routing errors may occur when temporary tables are used in SQL statements.

  • 2.8.25 (Release date: August 30, 2023)

    Category

    Description

    New feature and feature optimization

    The connection maintenance scenario is optimized.

    Fixed issue

    • The following issue is fixed: Session hangs may be caused by internal keepalive or large packets.

    • The following issue is fixed: The SELECT statement that contains custom variables is routed to the primary node.

    • The following issue is fixed: The multi-statements that contain comments are routed to read-only nodes.

  • 2.8.24 (Release date: August 8, 2023)

    Category

    Description

    New feature and feature optimization

    The logic of the internal monitor detection template is optimized.

    Fixed issue

    • The following issue is fixed: The SHOW WARNINGS statement times out for read-only endpoints.

    • The following issue is fixed: An error occurs on PolarProxy in some scenarios when the transaction-level connection pool is enabled.

  • 2.8.21 (Release date: June 25, 2023)

    Category

    Description

    New feature and feature optimization

    • The performance of some internal modules is optimized.

    • The EXPLAIN SELECT statement can be routed to read-only nodes.

    • The SHOW STATUS statement can be routed to the previous node.

    • The query encryption feature is supported.

    Fixed issue

    • The following issue is fixed: Session hangs may be caused by the restart of AP nodes when automatic request distribution between row store and column store nodes is enabled.

    • The following issue is fixed: Session hangs may be caused by node restart when parallel query is enabled.

    • The following issue is fixed: The OPTIMIZE statement is routed to read-only nodes in some scenarios.

    • The following issue is fixed: The WITH SELECT statement is routed to the primary node due to a parsing error in some scenarios.

    • The following issue is fixed: Users can query the polar_proxy_encode library unexpectedly.

    • The following issue is fixed: RT jitters occur when read-only nodes are added.

    • The following issue is fixed: The dynamic data masking feature does not take effect.

    • The following issue is fixed: Some proxy nodes are not working properly.

  • 2.8.12 (Release date: March 1, 2023)

    Category

    Description

    New feature and feature optimization

    The performance of short-lived connections is improved by 10%.

    Fixed issue

    • The following issue is fixed: Row_number is routed to the primary node.

    • The following issue is fixed: PolarProxy exceptions occur in some scenarios.

    • The following issue is fixed: The monitor detection is abnormal and users are disconnected due to read-only node exceptions.

    • The following issue is fixed: The PREPARE EXEC statement fails when the automatic request distribution between row store and column store nodes feature is enabled.

    • The following issue is fixed: The dynamic data masking feature does not take effect.

  • 2.8.11 (Release date: February 22, 2023)

    Category

    Description

    New feature and feature optimization

    Transactions, session consistency, and global consistency are supported when the automatic request distribution between row store and column store nodes feature is enabled.

    Fixed issue

    • The following issue is fixed: A routing error occurs when an SQL statement that exceeds 64 KB in length involves temporary tables.

    • The following issue is fixed: Transient connections occur in PHP 8.0 if the status of the transaction is lost after transaction splitting.

    • The following issue is fixed: Read-only endpoint authentication fails in some scenarios.

    • The following issue is fixed: The attempt to connect to the session pool fails in specific scenarios.

  • 2.8.8 (Release date: December 15, 2022)

    Category

    Description

    New feature and feature optimization

    • Weight-based load balancing is supported in the read/write splitting feature. For more information, see Weight-based load balancing.

    • Read-only endpoints support SLB by request.

    • Automatic request distribution allows TP requests to be routed to AP nodes.

    • When you enable or disable the elastic parallel query feature, it takes effect for existing connections.

    Fixed issue

    The following issue is fixed: Connections fail in specific scenarios.

  • 2.8.3 (Release date: November 4, 2022)

    Category

    Description

    New feature and feature optimization

    • The overload protection feature is supported.

    • Hot standby nodes can be read.

    Fixed issue

    • The following issue is fixed: A cluster is disconnected when automatic request distribution between column store and row store nodes is enabled for the cluster and multiple statements are used.

    • The following issue is fixed: RT jitters occur due to several internal exceptions.

  • 2.7.9 (Release date: August 1, 2022)

    Category

    Description

    New feature and feature optimization

    Fixed issue

    • The following issue is fixed: The state of a session-level connection pool is inconsistent due to the loss of environment variables on newly added nodes.

    • The following issue is fixed: A routing error occurs for the FOR UPDATE clause when read-only transactions are enabled in multi-statement scenarios.

    • The following issue is fixed: A routing error occurs for the COM_STMT_FETCH stored procedure in consistency scenarios.

  • 2.7.5 (Release date: July 15, 2022)

    Category

    Description

    New feature and feature optimization

    • The SHOW statement is supported for the SQL firewall feature.

    • Cluster endpoints in the read and write mode are supported.

    Fixed issue

    • The following issue is fixed: The offload reads from the primary node feature does not take effect for existing connections.

    • Several internal exceptions are fixed.

  • 2.4.35 (Release date: July 5, 2022)

    Category

    Description

    Fixed issue

    • The following issue is fixed: Exceptions may occur on sessions if SET requests are received and the primary node restarts when persistent connections are enabled.

    • Several issues concerning inaccurate internal monitoring metrics and diagnostic tools are fixed.

  • 2.4.33 (Release date: May 7, 2022)

    Category

    Description

    Fixed issue

    • The following issue is fixed: Sessions cannot reuse correct connections because environmental variables for the transaction-level connection pool are not replayed.

    • The following issues are fixed: An error occurs when the PREPARE EXEC statement is executed for HTAP automatic load execution.

    • The following issue is fixed: The status value of packets is lost when transaction splitting is performed, which may affect PHP 8.0.

    • The following issue is fixed: PolarProxy exceptions occur in specific scenarios.

  • 2.4.30 (Release date: March 8, 2022)

    Category

    Description

    New feature and feature optimization

    Session consistency is optimized.

    Fixed issue

    • The following issue is fixed: Some routes for HTAP automatic request distribution are incorrect.

    • The following issue is fixed: An error occurs on PolarProxy with specifications higher than 32C.

    • The following issue is fixed: PolarProxy does not respond in specific scenarios.

    • The following issue is fixed: An error occurs while routing the PREPARE SELECT FOR UPDATE statement in some cases.

  • 2.4.27 (Release date: December 30, 2021)

    Category

    Description

    New feature and feature optimization

    Automatic request distribution between column store and row store nodes feature is supported.

    Fixed issue

    • The following issue is fixed: The kill session operation fails.

    • The following issue is fixed: The COM_STMT_EXECUTE command fails when the parameter type is frequently modified.

    • The following issue is fixed: Read requests are routed to read-only nodes after the SELECT FOR UPDATE statement is executed in transactions.

    • The following issue is fixed: When the primary node restarts and a new connection is established, special characters of the utf8mb4 type cannot be inserted.

    • The following issue is fixed: The latest committed data cannot be read after a session-consistent transaction is committed.

  • 2.4.22 (Release date: September 10, 2021)

    Category

    Description

    Fixed issue

    • The following issue is fixed: PolarProxy fails to terminate PREPARE statements, which causes high memory usage in databases.

    • The following issue is fixed: Persistent connections fail in specific scenarios.

    • The following issue is fixed: An error occurs on PolarProxy when the default cluster endpoint is changed to a read-only endpoint.

    • The following issue is fixed: PolarProxy does not respond in specific scenarios.

  • 2.4.18 (Release date: August 12, 2021)

    Category

    Description

    Fixed issue

    • The following issue is fixed: If no character set is specified for a Java Database Connection (JDBC) application, the text of the application data is garbled when the database node connected to the application is restarted or when account authentication fails.

    • The following issue is fixed: The database service fails to connect to Flink applications.

    • The following issue is fixed: Some requests that are supposed to be routed to a temporary table are routed to other tables.

  • 2.4.17 (Release date: July 14, 2021)

    Category

    Description

    New feature and feature optimization

    • PolarDB for MySQL 5.7 supports transaction connection retention in failover scenarios.

    • Several internal metrics are added to monitor the cluster performance.

    Fixed issue

    • The following issue is fixed: The response time becomes longer due to a MySQL database account authentication failure.

    • The following issue is fixed: When a read-only node becomes faulty, the system does not route new requests to the node.

    • The following issue is fixed: Read-only endpoints cannot be accessed if the parallel query feature is enabled.

    • The following issue is fixed: A routing error occurs when you query the current timestamp.

    • The following issue is fixed: A routing error occurs when the FOR UPDATE clause is parsed.

    • The following issue is fixed: A routing error occurs due to incorrect syntax analysis of the @a keyword in a JOIN clause.

    • The following issue is fixed: The attempt to log on to a MySQL 8.0 client fails due to an authentication failure, because no password is provided.

    • The following issue is fixed: Some PREPARE statements with the name parameter cannot be executed.

  • 2.4.12 (Release date: May 20, 2021)

    Category

    Description

    New feature and feature optimization

    The dynamic data masking feature is supported. For more information, see Dynamic data masking.

    Fixed issue

    The following issue is fixed: PolarProxy exceptions occur in specific scenarios.

  • 2.4.7 (Release date: March 15, 2021)

    Category

    Description

    New feature and feature optimization

    The persistent connections feature is supported.

    Fixed issue

    The following issue is fixed: A routing error occurs when you execute a statement in which LOCK IN SHARED MODE is specified.

Release notes for PolarProxy 1.x.x

Note

Only the major versions of PolarProxy are listed. The version of PolarProxy that you use may not be included in the list.

  • 1.13.42 (Release date: December 15, 2022)

    Category

    Description

    Fixed issue

    • The following issue is fixed: Connections to a database fail when a large number of connections are established.

    • The following issue is fixed: RT jitters occur due to internal scheduled tasks.

  • 1.13.39 (Release date: July 20, 2022)

    Category

    Description

    New feature and feature optimization

    • PolarProxy performance is optimized in scenarios where tremendous authentication events with invalid accounts occur.

    • The account authentication feature is optimized. When authentication events with invalid accounts occur, global throttling is changed to account throttling.

    Fixed issue

    • The following issue is fixed: The transaction status is lost when a transaction is split.

    • The following issue is fixed: Environment variables in a transaction connection pool are not replayed.

    • The following issue is fixed: The PREPARE statement cannot be terminated for XA transactions.

    • Several internal exceptions are fixed.

  • 1.13.34 (Release date: March 3, 2022)

    Category

    Description

    New feature and feature optimization

    • MySQL utf8mb3 encoding is supported.

    • Session consistency is optimized.

    Fixed issue

    The following issue is fixed: An error occurs while routing the SELECT FOR UPDATE statement due to excessive prepare stmt parameters.

  • 1.13.30 (Release date: December 30, 2021)

    Category

    Description

    Fixed issue

    The following issue is fixed: The latest committed data cannot be read after a session-consistent transaction is committed.

  • 1.13.27 (Release date: November 16, 2021)

    Category

    Description

    Fixed issue

    • The following issue is fixed: Some clients are incompatible with SSL.

    • The performance of parsing INSERT statements when PolarProxy is used is optimized.

  • 1.13.25 (Release date: August 18, 2021)

    Category

    Description

    Fixed issue

    • The following issue is fixed: A memory leak occurs on PolarProxy due to a MySQL database account authentication failure.

    • The following issue is fixed: PolarProxy does not respond when multiple endpoints are used to access a cluster.

  • 1.13.22 (Release date: July 21, 2021)

    Category

    Description

    New feature and feature optimization

    • The SELECT last_insert_id() statement can be executed after the transaction-level connection pool feature is enabled.

    • The FOUND_ROWS function is supported after the transaction-level connection pool feature is enabled.

    • The COM_STATISTICS command can be routed to read-only nodes.

    • The transaction-level connection pool feature is optimized.

    • The global consistency feature is optimized. Requests can be routed to a read-only node even if the node is the only read-only node that meets the consistency requirements.

    • Queries that contain geo functions can be routed to read-only nodes.

    • Several internal metrics are added to monitor the cluster performance.

    Fixed issue

    • The following issue is fixed: Routing errors occur due to incorrect parsing of several SQL statements.

    • The following issue is fixed: In specific scenarios, the stmt_exec() command fails to run after the stmt_long_data() command is run.

    • The following issue is fixed: The LOAD DATA INFILE statement cannot be executed.

  • 1.13.5 (Release date: December 1, 2020)

    Category

    Description

    New feature and feature optimization

    • Eventual consistency is applicable to transaction splitting.

    • The following hints are supported:

      • force node connection /*force_proxy_internal*/set force_node = 'pi-aaaaaaaaa';

        After you establish this connection, all requests are routed only to the pi-aaaaaaaaa node. If this node becomes faulty, the set force node 'pi-aaaaaaaaa' is not found, please check. error message is returned.

      • force node query /*force_node='pi-aaaaaaaa'*/ show processlist;

        This statement can be executed only on the pi-aaaaaaaa node. If this node becomes faulty, the 'force hint server node is not found, please check.' error message is returned.

    • Several internal metrics are added to monitor the cluster performance.

    Fixed issue

    • The following issue is fixed: If the mode keyword is included in the select type, status, mode, where gtx_id = '4' FOR UPDATE; statement, the statement is routed to read-only nodes.

    • The following issue is fixed: In specific scenarios, loads are unbalanced among database nodes in a cluster.

    • The following issue is fixed: The stmt_close command fails to run after a PREPARE statement is executed.

  • 1.12.10 (Release date: October 19, 2020)

    Category

    Description

    Fixed issue

    • The following issue is fixed: PolarDB clusters that run MySQL 8.0 cannot be accessed after SSL encryption is enabled for the clusters.

    • The following issue is fixed: After the state of a database node changes from DOWN to RUNNING, PolarProxy fails to route subsequent requests to the database node.

  • 1.12.7 (Release date: August 6, 2020)

    Category

    Description

    New feature and feature optimization

    • The SHOW FULL PROCESSLIST statement is supported.

    • XA transactions are supported.

    Fixed issue

    • Several issues of the transaction-level connection pool are fixed.

    • Several issues that occur when you access read-only nodes in a global database network (GDN) are fixed.

    • The following issue is fixed: An error occurs when you execute the SHOW PROCESSLIST statement on a cluster that runs MySQL 8.0.

    • Several issues of failed connections are fixed.

  • 1.11.12 (Release date: June 22, 2020)

    Category

    Description

    New feature and feature optimization

    • The transaction-level connection pool feature is supported.

    • The parallel query feature is supported by read-only endpoints of PolarDB for MySQL clusters that run MySQL 8.0.

  • 1.10.7 (Release date: March 18, 2020)

    Category

    Description

    New feature and feature optimization

    The global consistency feature is supported.

    Fixed issue

    The following issue is fixed: An error occurs when you initialize system environment variables for a session-level connection pool.

  • 1.9.23 (Release date: February 21, 2020)

    Category

    Description

    New feature and feature optimization

    • The root account can be used to connect to a cluster.

    • SSL encryption is supported.

    Fixed issue

    • The following issue is fixed: The change user command fails.

    • The following issue is fixed: The load file command fails.

    • The following issue is fixed: When an application receives packets out of order, the application returns the Exception: Packets out of order error message.

    • The following issue is fixed: Read-only endpoints are disconnected when the primary node becomes faulty.

  • 1.9.14 (Release date: December 24, 2019)

    Category

    Description

    New feature and feature optimization

    • The /*FORCE_SLAVE*/ and /*FORCE_MASTE*/ hints are supported.

    • You can configure whether to offload read requests from the primary node to read-only nodes.

    Fixed issue

    • The following issue is fixed: Garbled text exists in the response if the default value of the charset parameter is invalid.

    • The following issue is fixed: The returned string that indicates the MySQL engine version is incorrect.

Update the version

If the PolarProxy of your cluster is not of the latest version, you can update the version based on your business requirements. For more information, see Upgrade the cluster version.