You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some plugins depend on or conflict with others. This page captures
non-obvious pairings that aren't enforced by code but will silently
degrade behavior at runtime if violated.
If a plugin's combination is incompatible, the wrapper does not raise
at construction time — the chain is accepted but behavior at runtime is
incorrect (silent fallback to a writer-only connection, monitor threads
that can't abort, etc.). Check the relevant row below before composing
a chain you haven't used before.
Required pairings
Plugin
Requires
Why
read_write_splitting
failover_v2 (not failover)
failover_v2 starts the cluster topology monitor on the initial connect. With plain failover, the host list stays at {writer-only} until a later failover signal fires, and conn.read_only = True flips silently fall back to the writer rather than splitting to a reader.
kms_encryption
to run before failover, failover_v2 and gdb_failover (the default order while auto_sort_wrapper_plugin_order is on)
Listed after a failover plugin with auto-sort off, the errors it raises from execute() and the fetch methods reach the application wrapped in the failover plugin's AwsWrapperError instead of their own classes. With the failover plugin's preserve_driver_exception_type on, they keep their own classes.
With connection_lifetime_action=reconnect the replacement connection always goes to the host the application originally supplied, never to the reader a splitting plugin switched to or the writer a failover landed on. An expired reader connection therefore returns to the original endpoint. Use connection_lifetime_action=close if the application should pick its own host again.
Driver-specific incompatibilities
Plugin
Incompatible with
Why
host_monitoring (EFM v1)
sync MySQL (mysql-connector-python)
EFM requires a thread-based connection abort that mysql-connector-python doesn't expose. Symptoms: monitor threads hang on shutdown, "Python hangs on exit" when a host is unreachable. Use the chain without EFM, or switch to the async driver (aiomysql).
host_monitoring_v2 (EFM v2)
sync MySQL (mysql-connector-python)
Same root cause as v1 — EFM v2 still depends on thread-based abort.
iam
MySQL use_pure=True (pure-Python connector)
The pure-Python connector truncates passwords at 255 chars; IAM tokens are typically longer. Expect int1store requires 0 <= i <= 255 or struct.error: ubyte format requires 0 <= number <= 255. See README "Known Limitations".
Note (async federated/Okta auth): the async federated_auth and okta plugins perform their
IdP HTTP round-trips with aiohttp, which is not a runtime dependency
of this package — install it alongside your async driver (pip install aiohttp) when using either
plugin in an asyncio application. The sync plugins use requests and are unaffected.