Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fetch upstream/main into origin/main #38

Closed
wants to merge 56 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
39a3003
fix: close underlying connections after setReadOnly when using intern…
crystall-bitquill Aug 1, 2023
544e6ec
docs: update version to 2.2.3 (#582)
aaronchung-bitquill Aug 1, 2023
cac88ae
Clarify limitations with Blue/Green deployments (#591)
davecramer Aug 3, 2023
40dad40
refactor: rename AuroraHostListProvider to RdsHostListProvider (#590)
fangli Aug 3, 2023
7cbf9dc
chore: remove unnecessary aurora host list provider plugin configurat…
karenc-bq Aug 10, 2023
d2b5909
feat: setLoginTimeout implementation (#514)
karenc-bq Aug 10, 2023
8ebe5d2
chore(deps): bump io.vertx:vertx-stack-depchain from 4.4.2 to 4.4.4 (…
dependabot[bot] Aug 14, 2023
90b8eef
chore(deps): bump org.apache.poi:poi-ooxml from 5.2.2 to 5.2.3 (#599)
dependabot[bot] Aug 15, 2023
a970aec
chore(deps): bump com.github.spotbugs from 5.0.+ to 5.1.2 (#597)
dependabot[bot] Aug 15, 2023
0ebbda7
fix: expand ReentrantLock scope in MonitorThreadContainer for better …
aaronchung-bitquill Aug 18, 2023
9c3719e
fix: update aurora pg topology query to also return instances with nu…
crystall-bitquill Aug 19, 2023
1684093
chore(deps): bump org.testcontainers:toxiproxy from 1.18.3 to 1.19.0 …
dependabot[bot] Aug 21, 2023
708d8a2
chore(deps): bump org.checkerframework:checker-qual from 3.26.0 to 3.…
dependabot[bot] Aug 22, 2023
55a2cfe
chore(deps): bump software.amazon.awssdk:secretsmanager from 2.20.105…
dependabot[bot] Aug 22, 2023
c496c61
chore(deps): bump io.spring.dependency-management from 1.1.0 to 1.1.3…
dependabot[bot] Aug 22, 2023
3062421
docs: clarify datasource and connection string documentation (#606)
crystall-bitquill Aug 23, 2023
100b007
docs: add plugin specific dependencies to plugins table (#614)
crystall-bitquill Aug 25, 2023
2713fe0
chore(deps): bump software.amazon.awssdk:secretsmanager from 2.20.131…
dependabot[bot] Aug 28, 2023
c682695
chore(deps): bump org.testcontainers:junit-jupiter from 1.17.4 to 1.1…
dependabot[bot] Aug 29, 2023
bbff7a3
chore(deps): bump org.junit.jupiter:junit-jupiter-api from 5.9.3 to 5…
dependabot[bot] Aug 29, 2023
c1bfe8f
added ADOPTERS.md (#624)
davecramer Sep 5, 2023
c7d12fc
update versioning, changelog, and docs for version 2.2.4 (#607)
aaronchung-bitquill Sep 6, 2023
5fb0126
chore(deps): bump mysql:mysql-connector-java from 8.0.31 to 8.0.33 (#…
dependabot[bot] Sep 6, 2023
4515cbd
chore(deps): bump software.amazon.awssdk:secretsmanager from 2.20.136…
dependabot[bot] Sep 6, 2023
1c50bf6
chore(deps): bump org.mariadb.jdbc:mariadb-java-client from 3.1.4 to …
dependabot[bot] Sep 6, 2023
314031b
chore(deps): bump org.slf4j:slf4j-simple from 2.0.7 to 2.0.9 (#626)
dependabot[bot] Sep 7, 2023
ce4b6e7
feat: optional auto reconfigure connection post failover (#632)
crystall-bitquill Sep 8, 2023
06dc454
chore(deps): bump org.apache.commons:commons-dbcp2 from 2.9.0 to 2.10…
dependabot[bot] Sep 11, 2023
87c6984
chore(deps): bump org.testcontainers:mariadb from 1.18.3 to 1.19.0 (#…
dependabot[bot] Sep 12, 2023
a7b0efb
chore(deps): bump org.testcontainers:mysql from 1.18.3 to 1.19.0 (#634)
dependabot[bot] Sep 12, 2023
61b2698
chore(deps): bump org.junit.platform:junit-platform-engine from 1.9.3…
dependabot[bot] Sep 12, 2023
6754855
feat: round robin host selection strategy (#603)
crystall-bitquill Sep 12, 2023
b129160
chore(deps): bump software.amazon.awssdk:secretsmanager from 2.20.141…
dependabot[bot] Sep 18, 2023
cb97445
chore(deps): bump io.vertx:vertx-stack-depchain from 4.4.4 to 4.4.5 (…
dependabot[bot] Sep 19, 2023
9fac863
doc: fix typos (#644)
karenc-bq Sep 19, 2023
ac74021
chore(deps): bump org.checkerframework:checker-qual from 3.37.0 to 3.…
dependabot[bot] Sep 19, 2023
608b78e
chore: change messages.properties name to aws_advanced_jdbc_driver_me…
crystall-bitquill Sep 20, 2023
51ce0b4
chore: add workflow to trigger autoscaling tests (#645)
karenc-bq Sep 21, 2023
76fc8a2
chore(deps): bump org.osgi:org.osgi.core from 4.3.0 to 6.0.0 (#641)
dependabot[bot] Sep 21, 2023
5865cf8
test: disable autoscaling on push to main and fix test_failFromWriter…
crystall-bitquill Sep 25, 2023
d388a98
docs: spring tx failover example (#638)
crystall-bitquill Sep 26, 2023
7b1ea6e
chore(deps): bump software.amazon.awssdk:rds from 2.20.49 to 2.20.154…
dependabot[bot] Sep 26, 2023
519a53f
chore(deps): bump org.testcontainers:testcontainers from 1.18.3 to 1.…
dependabot[bot] Sep 26, 2023
1b81238
chore(deps): bump org.junit.platform:junit-platform-commons from 1.9.…
dependabot[bot] Sep 26, 2023
1e83c6f
chore(deps): bump software.amazon.awssdk:secretsmanager from 2.20.150…
dependabot[bot] Sep 26, 2023
71d7240
chore(deps): bump org.postgresql:postgresql from 42.5.0 to 42.6.0 (#656)
dependabot[bot] Sep 26, 2023
a22fe6c
chore: update performance test to use failover mode (#659)
karenc-bq Sep 26, 2023
7bf0fb3
chore(deps): bump org.testcontainers:mariadb from 1.19.0 to 1.19.1 (#…
dependabot[bot] Oct 2, 2023
414ff41
chore(deps): bump org.testcontainers:postgresql from 1.19.0 to 1.19.1…
dependabot[bot] Oct 3, 2023
867413c
chore(deps): bump org.apache.poi:poi-ooxml from 5.2.3 to 5.2.4 (#663)
dependabot[bot] Oct 3, 2023
76cd302
chore(deps): bump software.amazon.awssdk:rds from 2.20.154 to 2.20.15…
dependabot[bot] Oct 3, 2023
db76f12
chore(deps): bump org.testcontainers:junit-jupiter from 1.19.0 to 1.1…
dependabot[bot] Oct 3, 2023
5ebf85d
fix: condition setting delayMillis (#661)
karenc-bq Oct 4, 2023
ef7c31b
chore(deps): bump org.testcontainers:toxiproxy from 1.19.0 to 1.19.1 …
dependabot[bot] Oct 10, 2023
f41fe89
chore(deps): bump org.testcontainers:mysql from 1.19.0 to 1.19.1 (#672)
dependabot[bot] Oct 10, 2023
987fd41
chore(deps): bump org.checkerframework:checker-qual from 3.38.0 to 3.…
dependabot[bot] Oct 10, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 65 additions & 0 deletions .github/workflows/run-autoscaling-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: Run Autoscaling Tests

on:
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
all-integration-tests:
name: 'Run Autoscaling tests'
runs-on: ubuntu-latest
steps:
- name: 'Clone repository'
uses: actions/checkout@v3
with:
fetch-depth: 50
- name: 'Set up JDK 8'
uses: actions/setup-java@v3
with:
distribution: 'corretto'
java-version: 8
- name: 'Configure AWS credentials'
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ secrets.AWS_DEFAULT_REGION }}
- name: 'Set up temp AWS credentials'
run: |
creds=($(aws sts get-session-token \
--duration-seconds 21600 \
--query 'Credentials.[AccessKeyId, SecretAccessKey, SessionToken]' \
--output text \
| xargs));
echo "::add-mask::${creds[0]}"
echo "::add-mask::${creds[1]}"
echo "::add-mask::${creds[2]}"
echo "TEMP_AWS_ACCESS_KEY_ID=${creds[0]}" >> $GITHUB_ENV
echo "TEMP_AWS_SECRET_ACCESS_KEY=${creds[1]}" >> $GITHUB_ENV
echo "TEMP_AWS_SESSION_TOKEN=${creds[2]}" >> $GITHUB_ENV
- name: Run integration tests
run: |
./gradlew --no-parallel --no-daemon test-autoscaling-only
env:
AURORA_CLUSTER_DOMAIN: ${{ secrets.DB_CONN_SUFFIX }}
AURORA_DB_REGION: ${{ secrets.AWS_DEFAULT_REGION }}
AWS_ACCESS_KEY_ID: ${{ env.TEMP_AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ env.TEMP_AWS_SECRET_ACCESS_KEY }}
AWS_SESSION_TOKEN: ${{ env.TEMP_AWS_SESSION_TOKEN }}
- name: 'Archive junit results'
if: always()
uses: actions/upload-artifact@v3
with:
name: junit-report
path: ./wrapper/build/test-results
retention-days: 5
- name: 'Archive autoscaling report'
if: always()
uses: actions/upload-artifact@v3
with:
name: autoscaling-report
path: ./wrapper/build/report
retention-days: 5
9 changes: 9 additions & 0 deletions ADOPTERS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Adopters

This list shows adopters of the AWS Advanced JDBC Wrapper. If you're using AWS Advanced JDBC Wrapper in some way, then please add your team and use-case to this file.

Tell us more:

* Send a comment, use-case, case-study, or let us know about your usage: Create a PR against this file and add yourself to the list.

## Adopters list (alphabetical)
22 changes: 19 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,31 @@ 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).

## [2.2.x] - ???
## [?]
### :crab: Changed
- Renamed the `messages.properties` file to `aws_advanced_jdbc_wrapper_messages.properties` ([PR #643](https://github.com/awslabs/aws-advanced-jdbc-wrapper/pull/647)).

## [2.2.4] - 2023-08-29
### :magic_wand: Added
- Host Availability Strategy to help keep host health status up to date ([PR #530](https://github.com/awslabs/aws-advanced-jdbc-wrapper/pull/530)).
- Host Availability Strategy to help keep host health status up to date ([PR #530](https://github.com/awslabs/aws-advanced-jdbc-wrapper/pull/530)).
- Implement `setLoginTimeout` from a suggested enhancement ([Discussion #509](https://github.com/awslabs/aws-advanced-jdbc-wrapper/discussions/509)).

### :bug: Fixed
- Allow connecting with reader cluster endpoints for Aurora PostgreSQL versions 13.9 and greater by changing the `AuroraPgDialect` topology query ([Issue #593](https://github.com/awslabs/aws-advanced-jdbc-wrapper/issues/593)).
- Race condition issues between `MonitorThreadContainer#getInstance()` and `MonitorThreadContainer#releaseInstance()` ([PR #601](https://github.com/awslabs/aws-advanced-jdbc-wrapper/pull/601)).

### :crab: Changed
- Dynamically sets the default host list provider based on the dialect used. User applications no longer need to manually set the AuroraHostListProvider when connecting to Aurora Postgres or Aurora MySQL databases.
- Deprecated AuroraHostListConnectionPlugin.
- Deprecated AuroraHostListConnectionPlugin.
- As an enhancement, the wrapper is now able to automatically set the Aurora host list provider for connections to Aurora MySQL and Aurora PostgreSQL databases.
Aurora Host List Connection Plugin is deprecated. If you were using the `AuroraHostListConnectionPlugin`, you can simply remove the plugin from the `wrapperPlugins` parameter.
However, if you choose to, you can ensure the provider is used by specifying a topology-aware dialect, for more information, see [Database Dialects](docs/using-the-jdbc-driver/DatabaseDialects.md).
- Propagate `Connection.clearWarnings()` to underlying connections in the Read Write Splitting Plugin so that the connection object does not accumulate warning messages ([Issue #547](https://github.com/awslabs/aws-advanced-jdbc-wrapper/issues/547)).
- Close underlying connections in the Read Write Splitting Plugin after switching to read-write or read-only depending on whether internal connection pooling is used ([PR #583](https://github.com/awslabs/aws-advanced-jdbc-wrapper/pull/583)).
- Sort plugins by default to prevent plugin misconfiguration. This can be disabled by setting the property `autoSortWrapperPluginOrder` to false ([PR #542](https://github.com/awslabs/aws-advanced-jdbc-wrapper/pull/542)).
- Documentation:
- Clarified AWS JDBC Driver limitations with Blue/Green deployments. See [Known Limitations](https://github.com/awslabs/aws-advanced-jdbc-wrapper/blob/main/docs/KnownLimitations.md#amazon-rds-bluegreen-deployments).
- Updated and reworded main [README.md](https://github.com/awslabs/aws-advanced-jdbc-wrapper/blob/main/README.md) page.

## [2.2.3] - 2023-07-28
### :magic_wand: Added
Expand Down Expand Up @@ -170,6 +185,7 @@ The Amazon Web Services (AWS) Advanced JDBC Driver allows an application to take
* The [AWS IAM Authentication Connection Plugin](./docs/using-the-jdbc-driver/using-plugins/UsingTheIamAuthenticationPlugin.md)
* The [AWS Secrets Manager Connection Plugin](./docs/using-the-jdbc-driver/using-plugins/UsingTheAwsSecretsManagerPlugin.md)

[2.2.4]: https://github.com/awslabs/aws-advanced-jdbc-wrapper/compare/2.2.3...2.2.4
[2.2.3]: https://github.com/awslabs/aws-advanced-jdbc-wrapper/compare/2.2.2...2.2.3
[2.2.2]: https://github.com/awslabs/aws-advanced-jdbc-wrapper/compare/2.2.1...2.2.2
[2.2.1]: https://github.com/awslabs/aws-advanced-jdbc-wrapper/compare/2.2.0...2.2.1
Expand Down
5 changes: 3 additions & 2 deletions Maintenance.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
| June 14, 2023 | [Release 2.2.0](https://github.com/awslabs/`aws-advanced-jdbc-wrapper`/releases/tag/2.2.0) |
| June 16, 2023 | [Release 2.2.1](https://github.com/awslabs/`aws-advanced-jdbc-wrapper`/releases/tag/2.2.1) |
| July 5, 2023 | [Release 2.2.2](https://github.com/awslabs/`aws-advanced-jdbc-wrapper`/releases/tag/2.2.2) |
| July 28, 2023 | [Release 2.2.3](https://github.com/awslabs/`aws-advanced-jdbc-wrapper`/releases/tag/2.2.3) |
| July 31, 2023 | [Release 2.2.3](https://github.com/awslabs/`aws-advanced-jdbc-wrapper`/releases/tag/2.2.3) |
| August 25, 2023 | [Release 2.2.4](https://github.com/awslabs/`aws-advanced-jdbc-wrapper`/releases/tag/2.2.4) |

``aws-advanced-jdbc-wrapper`` [follows semver](https://semver.org/#semantic-versioning-200) which means we will only
release breaking changes in major versions. Generally speaking patches will be released to fix existing problems without
Expand Down Expand Up @@ -66,4 +67,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.2 | Maintenance | Oct 5, 2022 | Apr 28, 2023 | Apr 28, 2024 |
| 2 | 2.2.2 | Current | Apr 28, 2023 | N/A | N/A |
| 2 | 2.2.4 | Current | Apr 28, 2023 | N/A | N/A |
Loading
Loading