Skip to content

gdbReadWriteSplittingPlugin does not support Global Write Forwarding #1801

@ivankhoosty

Description

@ivankhoosty

Describe the bug

with restrictWriterToHomeRegion=true the plugin throws writerNotInHomeRegion exception and blocks connect attempt
with restrictWriterToHomeRegion=false it attempts to connect to the writer in another region and times out, which is not possible in our setup (regions are isolated, and GWF is enabled)

Expected Behavior

plugin should support GWF and allow connections to go to the reader nodes in passive region

What plugins are used? What other connection properties were set?

gdbReadWriteSplittingPlugin,gdbFailover,iam,efm2,auroraConnectionTracekr,initialConnection

Current Behavior

see description

Reproduction Steps

enable GWF and disable cross regional traffic

Possible Solution

additional property, perhaps allowGlobalWriteForwarding=true which tells the plugin to connect to local readers if the region is passive

Additional Information/Context

No response

The AWS Advanced JDBC Wrapper version used

3.2.0

JDK version used

21

Operating System and version

unix

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions