MSHA SDK Version Guide

更新时间:
复制 MD 格式

This topic describes the features and capabilities of MSHA SDK versions.

MSHA SDK Version Guide

This topic details the version update history of the MSHA multi-active disaster recovery SDK.

Version Guide

Version number

Change type

Version guide

1.5.13

New feature

  • Add support for Spring Boot 3.x.

1.5.12

Optimization

  • Improve log output.

1.5.11

Optimization

  • Improve Redis log output.

  • Optimize Lettuce primary/secondary database connection strategy during breakdowns: read/write splitting strictly depends on both primary and secondary databases; other read/write strategies depend only on the current database.

New feature

  • Add support to control whether exceptions from the secondary Redis database are thrown.

    Add the startup parameter -Dmsha.standby.throw.disable=true to suppress secondary database exceptions.
    By default, exception throwing behavior is determined automatically based on the read/write strategy.
  • Lettuce supports a built-in connection pool.

    The built-in connection pool starts automatically to improve performance if common-pool2 is included.
    If common-pool2 is added in pom.xml, use the startup parameter -Dmsha.redis.pool.disable=true to disable the automatic connection pool.

1.5.10

Optimization

  • Add compatibility with OceanBase Client 1.x driver.

  • Improve how Lettuce specifies the database.

    MshaLettuceClient.create(defaultMetaData, standbyMetaData, database);

New feature

  • MySQL supports the savepoint feature.

Bug fix

  • Important

    Fix a connection leak issue with Lettuce secondary database connections.

1.5.9

Optimization

  • Add compatibility with log4j, logback, and Spring Boot 3.x in the logging module.

  • Upgrade snakeyaml package version to 2.4.

  • MySQL passwords support special characters.

New feature

  • Add support for PolarDB-O data source.

  • Add support for Elasticsearch data source.

  • Add support for SchedulerX2 version 1.9.6 and later.

  • Add support for open source RocketMQ.

  • Add support for Alibaba Cloud RocketMQ 5.0 instances.

    Note

    Multi-active retry messages are not supported at this time.

  • Spring Cloud supports LoadBalancer.

  • Add support for Jedis 4.x with Spring Boot 3.x.

    Note

    Contact us separately to obtain the required package.

  • Lettuce supports using a custom pool.

Bug fix

  • Fix Jedis initialization issues.

  • Fix Jedis reconnection issues after switching to the secondary database.

1.5.6

Optimization

  • Add compatibility with commons-io.

  • Improve metric reporting.

New feature

  • Nacos supports Access Key/Secret Key (AK/SK) authentication.

  • Redis supports JetCache.

Bug fix

  • Fix incorrect read/write type classification for certain commands when MySQL has no tables.

  • Fix routing tag extraction issues in Spring Cloud.

1.5.4

Optimization

  • Revise monitoring metric reporting to align with the MSHA 2.0 console.

New feature

  • Add support for MongoDB data source.

  • Add support for OceanBase data source.

  • Add support for Oracle data source.

  • Nacos supports username and password authentication.

  • Add support for forcing read requests to a specific center in Redis read/write splitting.

    <dependency>
      <groupId>com.aliyun.unit.router</groupId>
      <artifactId>msha-bridge-springboot-aspect</artifactId>
      <version>1.5.4</version>
    </dependency>
    @WithRedisCenter(value = true)
    public Map<String, Object> get(String key) {
        // Business code goes here
    }

Bug fix

  • Fix Lettuce read failures from the remote end.

  • Fix Redisson read/write splitting not taking effect.

FAQ