Fix exception message in ClusterSettings

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor - P4
    • 4.3.0
    • Affects Version/s: None
    • Component/s: Configuration
    • None
    • None
    • Fully Compatible
    • Not Needed
    • None
    • None
    • None
    • None
    • None
    • None

      In ClusterSettings constructor:

                 if (builder.srvHost.split("\\.").length < 3) {
                      throw new IllegalArgumentException(format("An SRV host name '%s' was provided that does not contain at least three parts. "
                              + "It must contain a hostname, domain name and a top level domain.", builder.hosts.get(0).getHost()));
                  }
      

      should be:

                 if (builder.srvHost.split("\\.").length < 3) {
                      throw new IllegalArgumentException(format("An SRV host name '%s' was provided that does not contain at least three parts. "
                              + "It must contain a hostname, domain name and a top level domain.", builder.srvHost));
                  }
      

       

              Assignee:
              Jeffrey Yemin
              Reporter:
              Jeffrey Yemin
              None
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: