Repository navigation
Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
[3.2.0] - 2026-12-03
Warning
Asynchronous applications that connect to multiple database clusters must now set a unique cluster_id for each cluster. Without it, connections to different clusters share one topology. See the Cluster ID documentation.
🪄 Added
- The
connection_lifetimeplugin, which closes or reconnects a physical connection once it reachesconnection_lifetime_ms, in both the synchronous and asynchronous wrapper. See Connection Lifetime Plugin. (PR #1365) - The
preserve_driver_exception_typeparameter, which makes thefailoverandfailover_v2plugins re-raise driver errors that do not trigger failover as they are, so ORMs can classify them. (Issue #1275, PR #1282) - The KMS Encryption Plugin (
kms_encryption), which encrypts values bound for configured columns with AWS KMS-protected data keys and decrypts them on read, in the synchronous wrapper. Install it withpip install "aws-advanced-python-wrapper[encryption]". See KMS Encryption Plugin. (PR #1331) - Synchronous plugins can replace the arguments that
Cursor.executeandCursor.executemanypass on, through the plugin service'scurrent_call_context. See The Call Context. (PR #1330) - Support for Aurora cluster group writer and reader endpoints. (PR #1366)
- A configuration reference for AI coding assistants, PYTHON-WRAPPER-CONFIGURATION-ASSISTANT.md. (PR #1293)
🐛 Fixed
- Queries waiting for a busy wrapper thread pool raised
QueryTimeoutErroreven when they ran withinsocket_timeout, because the timeout counted the wait. The timeout now starts when the query starts running. (Issue #1278, PR #1294) - With psycopg, a fetch chained onto
cursor.execute()skipped every plugin, including failover and host monitoring.execute()now returns the wrapper's cursor, soisinstance(cursor.execute(query), psycopg.Cursor)is nowFalse. (PR #1330) for row in cursoron a synchronous cursor skipped every plugin, andnext(cursor)raisedTypeError. Both now go through the plugins. (PR #1330)- The synchronous wrapper kept selecting a host that refused connections, and now marks such a host unavailable. (PR #1297)
- DEBUG logs, error messages and
repr()output included auth tokens, Secrets Manager secret values, passwords and statement text, which are now omitted or masked. (PR #1340) - Blue/Green deployments: a call suspended during a switchover hung at full CPU after the switchover moved on, and new connections were not routed to the green hosts. (PR #1360, PR #1401)
- The Limitless Router Monitor failed to start when a
limitless-router-monitor-prefixed property was set. (PR #1393) - After a failover, a connection to the writer cluster endpoint was sent to the old writer, which is now a reader. (PR #1371)
- With mysql-connector, closing a cursor opened before a failover raised
ReferenceErrorinstead of lettingFailoverSuccessErrorthrough. (PR #1371) - The Aurora Initial Connection Strategy plugin retried a failing host with no delay and left a connection open on each attempt. It also kept choosing a reader that refused connections, and failed without connecting when
open_connection_retry_timeout_mswas0. (PR #1291) - Asynchronous wrapper fixes:
async forover a cursor stopped at the firstNonerow and lost the rows after it. (PR #1392)- The Aurora connection tracker closed its own connection on the first statement, and host monitoring v2 recreated its monitors on every statement. (Issue #1276, Issue #1287, PR #1348)
- Plugins such as
initial_connection,host_monitoringandstale_dnsreceived a host list without the cluster topology. (PR #1292) - Each connection ran its own topology monitor and monitoring connection, and connections to the same cluster now share one. (PR #1295)
- An error while creating a cursor reached the application instead of starting failover. (PR #1371)
☁️ Changed
- The asynchronous wrapper now identifies a cluster by the
cluster_idparameter (default"1"), as the synchronous wrapper does. (PR #1295) - The Aurora Initial Connection Strategy plugin connects once and raises the driver's error when it has nothing to substitute or verify. It also rejects invalid values for
inactive_cluster_writer_endpoint_substitution_role,verify_inactive_cluster_writer_endpoint_connection_typeandendpoint_substitution_roleon RDS Proxy and Limitless endpoints. (PR #1291)