[GODRIVER-1291] Add a "Passive bool" to "description.Server" Created: 31/Aug/19  Updated: 28/Oct/23  Resolved: 26/Oct/21

Status: Closed
Project: Go Driver
Component/s: Core API
Affects Version/s: None
Fix Version/s: 1.8.0

Type: New Feature Priority: Major - P3
Reporter: David Bartley Assignee: Gabby Asuncion
Resolution: Fixed Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible

 Description   

We have a use case where we'd like to monitor a replset and track the number of up-to-date voting secondary data nodes. description.Server already exposes Kind and LastUpdateTime, but I don't believe we can distinguish between a voting and non-voting passive node (i.e. votes=0, priority=0, but non-hidden). Afaict the only difference in "isMaster" output is a "passive": true field. It'd be nice if this was parsed and saved to "description.Server", similar to ReadOnly.



 Comments   
Comment by Githook User [ 26/Oct/21 ]

Author:

{'name': 'Gabriela Asuncion', 'email': 'gabriela.asuncion@mongodb.com', 'username': 'gabbyasuncion'}

Message: GODRIVER-1291: Add Passive bool to description.Server (#778)
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/89c93a987b8b7561b3e04eff313ad534ce0686d0

Comment by Gabby Asuncion [ 26/Oct/21 ]

PR: https://github.com/mongodb/mongo-go-driver/pull/778

Comment by Kevin Albertson [ 13/Oct/21 ]

Hello bartle! Thank you for filing this feature request. We may be addressing this soon. Can you confirm whether adding "passive" is still helpful to your use case?

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