Amazon Neptune
User Guide (API Version 2017-11-29)

Creating a New Connection After Failover

In case of failover, the Gremlin Driver might continue connecting to the old writer because the cluster DNS name is resolved to an IP address. If this occurs, you can create a new Client object after failover.