2021 compute node release notes

Updated at:

This topic describes the release notes for PolarDB-X instance compute nodes in 2021.

Release date: 2021-12-22

Major version: V5.4.12

Minor version: 16399913

Category

Description

Add

Added compatibility with debezium/maxwel synchronization tools.

Added the ability to automatically roll back transactions when transaction deadlocks are detected.

Optimization

Optimized SPM capability to ensure it is not affected by DDL operations.

Bug fix

Fixed an issue where primary key values were not properly filled by sequence in insert select statements with implicit primary keys in non-pushdown scenarios.

Release date: 2021-11-25

Major version: V5.4.12

Minor version: 16378205

Category

Description

New features

Added ALTER TABLE validation to reject unsupported ALTER TABLE statements.

Introduced read/write splitting capability on primary instances.

Optimization

Optimized the issue where the three-layer data source concept in connection pools affects show ds status and kill all commands.

Bug fixes

Fixed the issue where "Snapshot too old" errors frequently occur in long-running transactions.

Fixed the issue where database names with hyphens cause errors during DTS data import.

Fixed mysqldump error issues.

Fixed the issue where two CNs might execute the same DDL task simultaneously when a CN primary instance switch occurs.

Fixed the issue where PolarDB-X disables Alter Table Add Foreign Key.

Fixed the issue where backend threads cannot clean up audit logs.

Fixed the issue where scale out tasks are interrupted because connection pools are not properly established due to untimely maintenance of CN and DN mapping relationships.

Fixed NPE issues in statistics information involving index scenarios.

Release date: 2021-10-28

Major version: V5.4.12 hotfix

Minor version: 16349923

Category

Description

New features

Introduced rule-based read/write splitting capability on primary instances.

Clarified the support boundaries for set commands, which currently do not support expressions in calculations.

Optimization

Optimized deadlock detection logic to ensure transactions caught in deadlocks can be quickly aborted.

Bug fixes

Fixed the issue where sql_mode setting statements with expressions cause physical connection failures.

Fixed the issue where physical SQL with limit in cross-shard scenarios may return unexpected query results due to SQL cache influence.

Fixed the issue where data nodes might experience low-probability denial of service in 2.0 mode with the new RPC protocol.

Release date: 2021-09-14

Major version: V5.4.12

Minor version: 16315258

Category

Description

New features

Added a completely new DDL execution engine.

Support for node scale-in.

Optimizer supports Cascades Style physical property propagation.

Support for AES encryption and decryption functions.

Added automatic mechanism to KILL long-running transactions that block DDL operations.

Support for UPDATE operations where the shard key is the first column of the table and the field type is time.

Optimizations

Optimized go-sql-driver compatibility with 0000-00-00 00:00:00 timestamps in prepare protocol.

Optimized case sensitivity of index names when creating clustered indexes.

Optimized transaction visibility issues in certain INSERT SELECT scenarios.

Optimized fully parallel execution strategy for DDL table partitioning.

Optimized logical table visibility during Create/Drop Table processes.

Optimized stack overflow issues that easily occur during complex DML operations with large amounts of data.

Optimized the stability of START TRANSACTION READ ONLY transaction strategy to ensure data modification operations are prohibited after the transaction is started.

Bug fixes

Fixed date_sub function calculation anomalies.

Fixed high-precision Decimal decoding errors in special cases.

Fixed the issue where point queries hitting indexes with subparts might trigger excessive data returns.

Fixed the issue where pushdown-capable single-table DELETE statements with subqueries on broadcast tables report errors when database names are specified in the subqueries.

Release date: 2021-07-05

Major version: V5.4.11

Minor version: 16251897

Category

Description

New features

Support for create table like.

Support for select into outfile statement, which can export data with specified separators and formats.

Support for show table info from <tablename> statement, which can display data volume for each shard.

Support for SPM to select different plans based on different parameter spaces.

Support for random physical table names for single tables and broadcast tables.

Optimizer supports Cascades search space pruning.

More comprehensive HTAP capabilities:

  • Support for read/write splitting settings;

  • Support for workload correction using SPM;

  • Support for routing specification through Hints.

Support for AliSQL hot spot syntax for high-concurrency scenarios.

Support for information_schema buffer-related system tables: INNODB_BUFFER_POOL_STATS, INNODB_BUFFER_PAGE_LRU, and INNODB_BUFFER_PAGE.

Added GENERAL_DYNAMIC_SPEED_LIMITATION parameter for dynamically adjusting throttling for GSI backfill verification and scaleout.

Optimizations

Optimized statistics processing by adding TopN to handle data skew situations.

Optimized statistics collection process to reduce IO consumption.

Optimized proprietary protocol to use native NIO as the network layer.

Bug fixes

  • Compatibility with the deprecated transaction timeout system variable drds_transaction_timeout.

  • Inconsistent metadata after executing alter table drop key statement.

  • Aligned empty string handling semantics with MySQL during load data operations.

  • Compatibility with charset and collation definitions in create database.

Release date: 2021-05-26

Major version: V5.4.10

Minor version: 16219368

Category

Description

Bug fixes

  • Explicitly setting the MERGE_UNION_SIZE parameter may cause the risk of single database multiple connections in distributed transactions.

  • In some cases, "multiple read connections are not allowed" errors are easily thrown when there are read and write operations within a transaction.

  • MDL is not added when DELETE statement gets table name incorrectly.

  • Sequence is not correctly filled in some scenarios.

  • GSI table data inconsistency under specific string Collation conditions.

  • NOW function updates are not timely in some transaction-related scenarios.

Release date: 2021-05-07

Major version: V5.4.10

Minor version: 16202941

Category

Description

Bug fixes

  • Three-role mode becomes ineffective after instance restart.

  • Metadata is not updated after executing DROP PRIMARY KEY or ADD PRIMARY KEY operations through ALTER TABLE.

  • Physical SQL loses traceId in some scenarios.

Release date: 2021-04-25

Major version: V5.4.10

Minor version: 16193390

Category

Description

New features

Support for LOCALITY syntax to specify data nodes when creating databases and tables.

Support for mutual conversion between single tables, sharded tables, and broadcast tables.

Support for GROUPING SETS, ROLLUP, and CUBE syntax for grouping query results by multiple dimensions.

Support for Role-based access control.

Support for three-role mode.

Support for 0-6 digit time precision settings.

  • Support for index recommendations including global secondary indexes.

  • Support for deadlock detection for distributed metadata locks.

  • Support for using TSO transactions in READ COMMITTED isolation level.

  • New connection pool system between compute nodes and data nodes.

    Note
    • This feature is supported for instances created after the release of version 5.4.10. Instances created before this version do not support this feature.

    • This feature is enabled by default. Contact technical support to disable it.

  • Restricted Sequence access on read-only instances.

  • Support for checking SSL-VPN connection status through show global variables like '%ssl%'.

Optimizations

  • Optimized broadcast table query performance to avoid routing queries only to database 0, which can cause excessive pressure on database 0.

  • Optimized execution of SQL statements that consume large amounts of memory to improve execution speed.

  • Optimized HashJoin, NLJoin, and SemiHashJon execution methods to enable streaming execution, improving execution speed.

  • Optimized query optimizer algorithms to eliminate duplicate conditions in JOIN, FILTER, and IN conditions based on BKA (Batched Key Access) algorithm.

  • Adjusted default database migration task backfill throttling from 10 KB to 100 KB to improve backfill speed.

  • Optimized SCALEOUT task execution speed, supporting logical database level concurrency for SCALEOUT tasks.

  • Optimized execution speed of certain subqueries.

Bug fixes

  • Fixed the issue where metadata becomes abnormal when recreating a database through the same connection.

  • Fixed the issue where invalid sql_mode values cause SQL statement execution errors.

  • Fixed improper handling when distributed deadlocks occur abnormally.

  • Fixed the issue where older versions of Java drivers disconnect during MySQL high availability switching.

  • Fixed the issue where OR conditions are missing in correlated subquery condition derivation results, causing incorrect partition pruning results.

  • Fixed incorrect execution results when multi-statements (SQL statements separated by semicolons) include SET AUTOCOMMIT commands.

  • Fixed issues with lost exception propagation and metadata retrieval errors under PREPARE protocol.

  • Fixed the issue where physical SQL reports errors when executing statements containing Interval functions in certain situations.

  • Fixed the issue where errors during global secondary index updates cause transactions not to be released.

  • Fixed the issue where Sequence does not take effect when executing INSERT commands after creating an independent associated Sequence for a single table.

  • Fixed the issue where migration tasks occasionally fail when multiple logical databases are migrated simultaneously.

  • Fixed compatibility issues with time types and functions, improving processing efficiency for time type data.

  • Fixed incorrect connection count display in monitoring.

  • Fixed the issue where CONVERT TO CHARACTER SET in ALTER TABLE statements cannot modify GSI index tables simultaneously.

Release date: 2021-03-15

Major version: V5.4.9

Minor version: 16155600

Category

Description

New feature

Binary logs service.

Optimization

Improved stability of data nodes in distributed transactions.

Bug fixes

  • Fixed the issue where data nodes might crash in high concurrency scenarios.

  • Fixed the issue where incorrect transaction timeout mechanism occasionally causes frontend connections to disconnect.

  • Fixed unclear error messages in Prepare mode.

  • Fixed the issue where variables are not aligned in some cases in Prepare mode.

  • Fixed the issue where queries might occasionally miss data when shard data is unevenly distributed.

Release date: 2021-03-01

Major version: V5.4.9

Minor version: 16142062

Category

Description

New features

Compatible with MySQL Collation feature, added support for several Collations to ensure correct string sorting in SQL statements.

Support for automatic sharding.

Support for clustered indexes.

Support for all MySQL window functions.

Support for intelligent recommendation of local indexes.

  • Support for specifying aliases for single tables in DELETE statements.

  • Support for AlTER VIEW syntax.

  • Support for using _binary 'data...' in SQL statements to represent binary data.

  • Support for automatic global secondary index selection in JOIN and DML statements.

  • Support for complex queries within transactions.

  • Added support for UNSIGNED data type in PREPARE protocol.

  • Support for variable assignment syntax in single-table pushdown scenarios.

  • Execution of UPDATE or DELETE statements without conditions is disabled by default.