Skip to content

Conversation

@aaronchung-bitquill
Copy link
Contributor

Summary

Description

Additional Reviewers

@karenc-bq @congoamz @sergiyv-improving

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

CHANGELOG.md Outdated

## [2.1.0] - 2023-5-11
### :magic_wand: Added
- Added checks to ensure stale writer records obtained after writer-failover, are used ([PR #435](https://github.com/awslabs/aws-advanced-jdbc-wrapper/pull/435)).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Added checks to ensure stale writer records obtained after writer-failover, are used ([PR #435](https://github.com/awslabs/aws-advanced-jdbc-wrapper/pull/435)).
- Added checks to ensure stale writer records obtained after writer-failover, are not used ([PR #435](https://github.com/awslabs/aws-advanced-jdbc-wrapper/pull/435)).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh gosh....🤦
Thank you for catching that.
Fix pushed!

CHANGELOG.md Outdated
- Added checks to ensure stale writer records obtained after writer-failover, are not used ([PR #435](https://github.com/awslabs/aws-advanced-jdbc-wrapper/pull/435)).

### :bug: Fixed
- Fixed connection state transfer bug where switching from read-only connection to writer connection, incorrectly triggers the failover process ([Issue #426](https://github.com/awslabs/aws-advanced-jdbc-wrapper/issues/426)).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Fixed connection state transfer bug where switching from read-only connection to writer connection, incorrectly triggers the failover process ([Issue #426](https://github.com/awslabs/aws-advanced-jdbc-wrapper/issues/426)).
- Fixed connection state transfer bug where switching from read-only connection to writer connection incorrectly triggers the failover process ([Issue #426](https://github.com/awslabs/aws-advanced-jdbc-wrapper/issues/426)).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

CHANGELOG.md Outdated
- Removed logic that changes connection to a writer instance when `setReadOnly(false)` is called on a reader connection ([Issue #426](https://github.com/awslabs/aws-advanced-jdbc-wrapper/issues/426)).
- Improved internal connection pool key defaults ([PR #432](https://github.com/awslabs/aws-advanced-jdbc-wrapper/pull/432)).
- Removed Multi-writer cluster related code as they are no longer supported ([PR #435](https://github.com/awslabs/aws-advanced-jdbc-wrapper/pull/435)).
- Clarify documentation on failover process to account for Aurora PostgerSQL clusters being offline during failover ([PR #437](https://github.com/awslabs/aws-advanced-jdbc-wrapper/pull/437)).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Clarify documentation on failover process to account for Aurora PostgerSQL clusters being offline during failover ([PR #437](https://github.com/awslabs/aws-advanced-jdbc-wrapper/pull/437)).
- Clarified documentation on failover process to account for Aurora PostgerSQL clusters being offline during failover ([PR #437](https://github.com/awslabs/aws-advanced-jdbc-wrapper/pull/437)).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed!

@aaronchung-bitquill aaronchung-bitquill force-pushed the changelog-2.1.0 branch 4 times, most recently from 4568415 to bd601d2 Compare May 12, 2023 00:30
CHANGELOG.md Outdated
- `AuroraHostListProvider` to check for stale writer records obtained after writer-failover so that they are not used ([PR #435](https://github.com/awslabs/aws-advanced-jdbc-wrapper/pull/435)).

### :bug: Fixed
- Resolved a potential security concern by ensuring that user specific connections in the connection pool are returned to the correct user ([PR #432](https://github.com/awslabs/aws-advanced-jdbc-wrapper/pull/432)).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Resolved a potential security concern by ensuring that user specific connections in the connection pool are returned to the correct user ([PR #432](https://github.com/awslabs/aws-advanced-jdbc-wrapper/pull/432)).
- A potential security concern by ensuring that user specific connections in the connection pool are returned to the correct user ([PR #432](https://github.com/awslabs/aws-advanced-jdbc-wrapper/pull/432)).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed!

@karenc-bq karenc-bq merged commit 64a43f6 into aws:main May 12, 2023
@karenc-bq karenc-bq deleted the changelog-2.1.0 branch May 12, 2023 00:35

## [2.1.0] - 2023-5-11
### :magic_wand: Added
- `AuroraHostListProvider` to check for stale writer records obtained after writer-failover so that they are not used ([PR #435](https://github.com/awslabs/aws-advanced-jdbc-wrapper/pull/435)).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

might rephrase slightly, it sounds a bit like AuroraHostListProvider is a new class we added with the way its currently phrased.

AuroraHostListProvider checks for stale writer records after writer failover so that they are not used (PR #435)

### :bug: Fixed
- Potential security concern by ensuring that user specific connections in the connection pool are returned to the correct user ([PR #432](https://github.com/awslabs/aws-advanced-jdbc-wrapper/pull/432)).
- Connection state transfer bug where switching from read-only connection to writer connection incorrectly triggers the failover process ([Issue #426](https://github.com/awslabs/aws-advanced-jdbc-wrapper/issues/426)).
- Incorrect invalidation of newly promoted writer and random readers after failover. EFM plugin to use instance endpoint as the monitoring endpoint in the case the initial connection is established using cluster endpoint ([PR #431](https://github.com/awslabs/aws-advanced-jdbc-wrapper/pull/431)).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: ...monitoring endpoint in case the...

- Temporarily set socket timeout for the topology query if it is not set, to avoid topology query from executing indefinitely ([PR #416](https://github.com/awslabs/aws-advanced-jdbc-wrapper/pull/416)).

### :crab: Changed
- Removed logic that changes connection to a writer instance when `setReadOnly(false)` is called on a reader connection ([Issue #426](https://github.com/awslabs/aws-advanced-jdbc-wrapper/issues/426)).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed logic from the failover plugin that changes connection to a writer instance when setReadOnly(false) is called on a reader connection (Issue #426). This functionality already exists in the read write splitting plugin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants