[JAVA-930] Detect misconfigured clusters Created: 18/Aug/13  Updated: 03/Apr/14  Resolved: 07/Nov/13

Status: Closed
Project: Java Driver
Component/s: Cluster Management
Affects Version/s: None
Fix Version/s: 2.12.0, 3.0.0

Type: Improvement Priority: Major - P3
Reporter: Jeffrey Yemin Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Σ Remaining Estimate: Not Specified Remaining Estimate: Not Specified
Σ Time Spent: Not Specified Time Spent: Not Specified
Σ Original Estimate: Not Specified Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by JAVA-665 Connection configuration allows to sp... Closed
Sub-Tasks:
Key
Summary
Type
Status
Assignee
JAVA-998 2.12: Detect misconfigured clusters Sub-task Closed Jeffrey Yemin  
JAVA-999 3.0: Detect misconfigured clusters Sub-task Closed  

 Description   

ClusterConnectionMode =

{ Single, Multiple }

ClusterType =

{ Unknown, StandAlone, ReplicaSet, Sharded }

Replica Set Name = <String>

Decision tree:

  • if mode is Single
    • if type is Unknown
      • set type to whatever the server responds with
    • else if server's type != type
      • remove server from cluster
    • else if server's replica set name != replica set name
      • remove server from cluster
  • else (mode is Multiple)
    • if type is Unknown
      • set type to the type of the first server to respond
    • if server type != type
      • remove server from cluster
    • else if server's replica set name != replica set name
      • remove server from cluster
    • else if server type is StandAlone and there is more than one server
      • remove all but first server

Generated at Thu Feb 08 08:53:25 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.