From 122bff765e786a47605d9586910f911cb87f3733 Mon Sep 17 00:00:00 2001 From: crystall-bitquill <97126568+crystall-bitquill@users.noreply.github.com> Date: Fri, 28 Jul 2023 08:24:47 -0700 Subject: [PATCH] chore: update changelog and versioning for 1.1.9 (#437) --- CHANGELOG.md | 11 +++++++++- README.md | 52 +++++++++++++++++++++++------------------------ RELEASE_POLICY.md | 3 ++- gradle.properties | 2 +- 4 files changed, 39 insertions(+), 29 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 24b2fd034..498390822 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,10 +3,18 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/#semantic-versioning-200). -## [???] +## [1.1.9] - 2023-07-31 ### Added +- Documentation: + - An example of how to enable logging ([PR #431](https://github.com/awslabs/aws-mysql-jdbc/pull/431)). + - Release policy ([PR #434](https://github.com/awslabs/aws-mysql-jdbc/pull/434)). - The `keepSessionStateOnFailover` failover property to allow retaining the connection session state after failover without manually reconfiguring a connection ([Issue #425](https://github.com/awslabs/aws-mysql-jdbc/issues/425)). +### Fixed +- Avoid updating topology during global transactions which caused JTA transactions to fail ([Issue #292](https://github.com/awslabs/aws-mysql-jdbc/issues/292)). +- Keep `currentHostIndex` and hosts list in sync and pick a new connection when host role changes ([Issue #303](https://github.com/awslabs/aws-mysql-jdbc/issues/303)). +- Redundant reset statement called due to incorrect condition ([Issue #422](https://github.com/awslabs/aws-mysql-jdbc/pull/435)). + ## [1.1.8] - 2023-06-28 ### Fixed - The topology service cache no longer stores connection specific properties so connections to the same cluster will not connect with the wrong properties ([Issue #407](https://github.com/awslabs/aws-mysql-jdbc/issues/407)). @@ -159,6 +167,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ### Added * This driver is based on the MySQL 8.0.21 community driver. The driver is cluster aware for Amazon Aurora MySQL. It takes advantage of Amazon Aurora's fast failover capabilities, reducing failover times from minutes to seconds. +[1.1.9]: https://github.com/awslabs/aws-mysql-jdbc/compare/1.1.8...1.1.9 [1.1.8]: https://github.com/awslabs/aws-mysql-jdbc/compare/1.1.7...1.1.8 [1.1.7]: https://github.com/awslabs/aws-mysql-jdbc/compare/1.1.6...1.1.7 [1.1.6]: https://github.com/awslabs/aws-mysql-jdbc/compare/1.1.5...1.1.6 diff --git a/README.md b/README.md index f47e18733..82f92b815 100644 --- a/README.md +++ b/README.md @@ -29,18 +29,18 @@ The AWS JDBC Driver for MySQL can be installed from pre-compiled packages that c **Example - Direct download with wget** ```bash -wget https://github.com/awslabs/aws-mysql-jdbc/releases/download/1.1.8/aws-mysql-jdbc-1.1.8.jar -cp aws-mysql-jdbc-1.1.8.jar /home/userx/libs/ -export CLASSPATH=$CLASSPATH:/home/userx/libs/aws-mysql-jdbc-1.1.8.jar +wget https://github.com/awslabs/aws-mysql-jdbc/releases/download/1.1.9/aws-mysql-jdbc-1.1.9.jar +cp aws-mysql-jdbc-1.1.9.jar /home/userx/libs/ +export CLASSPATH=$CLASSPATH:/home/userx/libs/aws-mysql-jdbc-1.1.9.jar ``` **Upgrading to a newer version with wget** -To upgrade the driver, replace the .jar file of your earlier driver with the new `.jar` file. After replacing the `.jar` file, update the CLASSPATH to include the name of the new file. For example, to upgrade to version 1.1.8: +To upgrade the driver, replace the .jar file of your earlier driver with the new `.jar` file. After replacing the `.jar` file, update the CLASSPATH to include the name of the new file. For example, to upgrade to version 1.1.9: ```bash -wget https://github.com/awslabs/aws-mysql-jdbc/releases/download/1.1.8/aws-mysql-jdbc-1.1.8.jar -cp aws-mysql-jdbc-1.1.8.jar /home/userx/libs/ -export CLASSPATH=$CLASSPATH:/home/userx/libs/aws-mysql-jdbc-1.1.8.jar +wget https://github.com/awslabs/aws-mysql-jdbc/releases/download/1.1.9/aws-mysql-jdbc-1.1.9.jar +cp aws-mysql-jdbc-1.1.9.jar /home/userx/libs/ +export CLASSPATH=$CLASSPATH:/home/userx/libs/aws-mysql-jdbc-1.1.9.jar ``` #### As a Maven dependency @@ -52,20 +52,20 @@ You can use [Maven's dependency management](https://central.sonatype.com/search? software.aws.rds aws-mysql-jdbc - 1.1.8 + 1.1.9 ``` **Upgrading to a newer version with Maven** -To upgrade to a newer version of the driver, replace the version number identified in the `pom.xml` file with the newer driver version. For example, to upgrade to version 1.1.8, modify the file to include: +To upgrade to a newer version of the driver, replace the version number identified in the `pom.xml` file with the newer driver version. For example, to upgrade to version 1.1.9, modify the file to include: ```xml software.aws.rds aws-mysql-jdbc - 1.1.8 + 1.1.9 ``` @@ -76,16 +76,16 @@ You can use [Gradle's dependency management](https://central.sonatype.com/search **Example - Gradle** ```gradle dependencies { - implementation group: 'software.aws.rds', name: 'aws-mysql-jdbc', version: '1.1.8' + implementation group: 'software.aws.rds', name: 'aws-mysql-jdbc', version: '1.1.9' } ``` **Upgrading to a newer version with Gradle** -To upgrade to a newer version of the driver, replace the version number identified in the application's ```build.gradle``` file with the newer driver version. For example, to upgrade to version 1.1.8: +To upgrade to a newer version of the driver, replace the version number identified in the application's ```build.gradle``` file with the newer driver version. For example, to upgrade to version 1.1.9: ```gradle dependencies { - implementation group: 'software.aws.rds', name: 'aws-mysql-jdbc', version: '1.1.8' + implementation group: 'software.aws.rds', name: 'aws-mysql-jdbc', version: '1.1.9' } ``` @@ -95,9 +95,9 @@ To use the driver with an IDE (for example, IntelliJ), download the `.jar` file **Example - IntelliJ** ```bash -wget https://github.com/awslabs/aws-mysql-jdbc/releases/download/1.1.8/aws-mysql-jdbc-1.1.8.jar -cp aws-mysql-jdbc-1.1.8.jar /home/userx/libs/ -export CLASSPATH=$CLASSPATH:/home/userx/libs/aws-mysql-jdbc-1.1.8.jar +wget https://github.com/awslabs/aws-mysql-jdbc/releases/download/1.1.9/aws-mysql-jdbc-1.1.9.jar +cp aws-mysql-jdbc-1.1.9.jar /home/userx/libs/ +export CLASSPATH=$CLASSPATH:/home/userx/libs/aws-mysql-jdbc-1.1.9.jar ``` After downloading the `.jar` file and updating the CLASSPATH, add the driver information to your `Project`: @@ -117,9 +117,9 @@ After downloading the `.jar` file and updating the CLASSPATH, add the driver inf To upgrade to a newer version of the driver, download the updated driver, and add it to your CLASSPATH: ```bash -wget https://github.com/awslabs/aws-mysql-jdbc/releases/download/1.1.8/aws-mysql-jdbc-1.1.8.jar -cp aws-mysql-jdbc-1.1.8.jar /home/userx/libs/ -export CLASSPATH=$CLASSPATH:/home/userx/libs/aws-mysql-jdbc-1.1.8.jar +wget https://github.com/awslabs/aws-mysql-jdbc/releases/download/1.1.9/aws-mysql-jdbc-1.1.9.jar +cp aws-mysql-jdbc-1.1.9.jar /home/userx/libs/ +export CLASSPATH=$CLASSPATH:/home/userx/libs/aws-mysql-jdbc-1.1.9.jar ``` Then, follow the steps listed above to update your project to the latest version. @@ -131,9 +131,9 @@ To use the driver with the DBeaver database client, download the `.jar` file, co **Example - DBeaver** ```bash -wget https://github.com/awslabs/aws-mysql-jdbc/releases/download/1.1.8/aws-mysql-jdbc-1.1.8.jar -cp aws-mysql-jdbc-1.1.8.jar /home/userx/libs/ -export CLASSPATH=$CLASSPATH:/home/userx/libs/aws-mysql-jdbc-1.1.8.jar +wget https://github.com/awslabs/aws-mysql-jdbc/releases/download/1.1.9/aws-mysql-jdbc-1.1.9.jar +cp aws-mysql-jdbc-1.1.9.jar /home/userx/libs/ +export CLASSPATH=$CLASSPATH:/home/userx/libs/aws-mysql-jdbc-1.1.9.jar ``` After downloading the .jar file and adding it to your CLASSPATH, add the driver information to the DBeaver client: @@ -176,9 +176,9 @@ After adding driver information, you can create new connections that use the AWS To upgrade to a newer version of the driver, download the updated driver, and add it to your CLASSPATH: ```bash -wget https://github.com/awslabs/aws-mysql-jdbc/releases/download/1.1./aws-mysql-jdbc-1.1.8.jar -cp aws-mysql-jdbc-1.1.8.jar /home/userx/libs/ -export CLASSPATH=$CLASSPATH:/home/userx/libs/aws-mysql-jdbc-1.1.8.jar +wget https://github.com/awslabs/aws-mysql-jdbc/releases/download/1.1./aws-mysql-jdbc-1.1.9.jar +cp aws-mysql-jdbc-1.1.9.jar /home/userx/libs/ +export CLASSPATH=$CLASSPATH:/home/userx/libs/aws-mysql-jdbc-1.1.9.jar ``` Then, follow the steps listed above to update your DBeaver client settings. @@ -191,7 +191,7 @@ If there is an unreleased feature you would like to try, it may be available in software.aws.rds aws-mysql-jdbc - 1.1.8 + 1.1.9 system path-to-snapshot-jar diff --git a/RELEASE_POLICY.md b/RELEASE_POLICY.md index 47ae2ab99..16d4fef87 100644 --- a/RELEASE_POLICY.md +++ b/RELEASE_POLICY.md @@ -11,6 +11,7 @@ | Apr 28, 2023 | [Release 1.1.6](https://github.com/awslabs/aws-mysql-jdbc/releases/tag/1.1.6) | | May 11, 2023 | [Release 1.1.7](https://github.com/awslabs/aws-mysql-jdbc/releases/tag/1.1.7) | | June 28, 2023 | [Release 1.1.8](https://github.com/awslabs/aws-mysql-jdbc/releases/tag/1.1.8) | +| July 31, 2023 | [Release 1.1.9](https://github.com/awslabs/aws-mysql-jdbc/releases/tag/1.1.9) | aws-mysql-jdbc-driver [follows semver](https://semver.org/#semantic-versioning-200) which means we will only release @@ -52,4 +53,4 @@ from the updated source after the PRs are merged. | Major Version | Latest Minor Version | Status | Initial Release | Maintenance Window Start | Maintenance Window End | |---------------|----------------------|-------------|-----------------|--------------------------|------------------------| | 1 | 1.0.0 | Maintenance | Mar 1, 2022 | June 29, 2022 | June 29, 2023 | -| 2 | 1.1.8 | Current | June 28, 2023 | July 25, 2023 | July 25, 2024 | +| 2 | 1.1.9 | Current | June 28, 2023 | July 25, 2023 | July 25, 2024 | diff --git a/gradle.properties b/gradle.properties index 6e20e8b55..679a21bac 100644 --- a/gradle.properties +++ b/gradle.properties @@ -40,7 +40,7 @@ spotbugs.version=4.0.0 # Build properties com.mysql.cj.build.driver.version.major=1 com.mysql.cj.build.driver.version.minor=1 -com.mysql.cj.build.driver.version.subminor=8 +com.mysql.cj.build.driver.version.subminor=9 com.mysql.cj.build.driver.displayName=Amazon Web Services (AWS) JDBC Driver for MySQL com.mysql.cj.build.driver.name=aws-mysql-connector-java com.mysql.cj.build.licenseType=GPLv2