[GODRIVER-1250] Change Client to depend on Deployment instead of Topology Created: 23/Aug/19  Updated: 28/Oct/23  Resolved: 27/Aug/19

Status: Closed
Project: Go Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 1.2.0

Type: Task Priority: Major - P3
Reporter: Divjot Arora (Inactive) Assignee: Divjot Arora (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by GODRIVER-1249 Implement a mock deployment Closed
Epic Link: Robust Testing Framework

 Description   

This was originally going to be part of GODRIVER-1249 but the work to do this is non-trivial and is a precursor to integrate the testing framework. The work for this ticket includes:

  1. Replace the Client.topology field with Client.deployment.
  2. Move the session pool from topology.Topology to mongo.Client{{}}


 Comments   
Comment by Githook User [ 29/Aug/19 ]

Author:

{'name': 'Divjot Arora', 'username': 'divjotarora', 'email': 'divjot.arora@10gen.com'}

Message: Only create topology if deployment is nil in NewClient.

GODRIVER-1250

Change-Id: Icc3bb0ed79db80e9d8d44572d5811afd0ca2ffb1
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/d592c05e2f6bf66d86793723e7d3144a86c422eb

Comment by Githook User [ 27/Aug/19 ]

Author:

{'username': 'divjotarora', 'email': 'divjot.arora@10gen.com', 'name': 'Divjot Arora'}

Message: Change Client to depend on driver.Deployment

  • Move session pooling from Topology to Client.
  • Add method to create Client from a Deployment.
  • Add interfaces to allow arbitrary Deployments to support connecting, disconnecting, and sessions.

GODRIVER-1250

Change-Id: I64c02c29424a3690d43c995c8bd2bcbc19cb9e96
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/bb9530df7191054d68c7879dc4a2045eb71ad856

Comment by Divjot Arora (Inactive) [ 26/Aug/19 ]

CR: https://review.gerrithub.io/c/mongodb/mongo-go-driver/+/466286

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