wrapper/src/main/java/software/amazon/jdbc/plugin/failover2/FailoverConnectionPlugin.java [680:697]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  protected void initFailoverMode() {
    if (this.rdsUrlType == null) {
      this.failoverMode = FailoverMode.fromValue(FAILOVER_MODE.getString(this.properties));
      final HostSpec initialHostSpec = this.hostListProviderService.getInitialConnectionHostSpec();
      this.rdsUrlType = this.rdsHelper.identifyRdsType(initialHostSpec.getHost());

      if (this.failoverMode == null) {
        this.failoverMode = this.rdsUrlType == RdsUrlType.RDS_READER_CLUSTER
            ? FailoverMode.READER_OR_WRITER
            : FailoverMode.STRICT_WRITER;
      }

      LOGGER.finer(
          () -> Messages.get(
              "Failover.parameterValue",
              new Object[]{"failoverMode", this.failoverMode}));
    }
  }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



wrapper/src/main/java/software/amazon/jdbc/plugin/failover/FailoverConnectionPlugin.java [382:399]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  protected void initFailoverMode() {
    if (this.rdsUrlType == null) {
      this.failoverMode = FailoverMode.fromValue(FAILOVER_MODE.getString(this.properties));
      final HostSpec initialHostSpec = this.hostListProviderService.getInitialConnectionHostSpec();
      this.rdsUrlType = this.rdsHelper.identifyRdsType(initialHostSpec.getHost());

      if (this.failoverMode == null) {
        this.failoverMode = this.rdsUrlType == RdsUrlType.RDS_READER_CLUSTER
            ? FailoverMode.READER_OR_WRITER
            : FailoverMode.STRICT_WRITER;
      }

      LOGGER.finer(
          () -> Messages.get(
              "Failover.parameterValue",
              new Object[]{"failoverMode", this.failoverMode}));
    }
  }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



