Skip to content

Conversation

@durran
Copy link
Member

@durran durran commented Jan 26, 2016

No description provided.

topologyId: "42"
address: "a:27017"
previousDescription:
address: "127.0.0.1:27017"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This address surprises me. Where does it come from? Why would a driver have that as the default address? I'd expect instead that the previousDescriptions's address would be the same as the newDescription's address, but with type "Unknown" (as it is).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought I had read in the SDAM spec as well about the default for the server description but reading it again I don't see it... So maybe leave it out? I think some implementations will default with an "empty" description and some might default with the address provided and type unknown.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The address should be "a:27017" in previousDescription and type "Unknown". I don't see how it makes sense to have an empty address for a server description changed event. The address is part of the top-level event metadata, so both descriptions should share it.

@durran
Copy link
Member Author

durran commented Feb 18, 2016

@jyemin Updated per the comments, I've reduced the fields to the important ones and fixed the defaults.

previousDescription:
topologyType: "Unknown"
setName: null
servers: [ "a:27017" ]
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should have "b:27017" as well.

It should also be an array of ServerDescription instead of array of string

@durran durran force-pushed the sdam-monitoring branch from 79c9f90 to 00709e7 Compare March 6, 2016 20:26
@durran durran changed the title [DNM][WIP] SDAM Monitoring SPEC-222: SDAM Monitoring Mar 11, 2016
@estolfo estolfo closed this Nov 3, 2016
@estolfo
Copy link
Contributor

estolfo commented Nov 3, 2016

Replaced by: #834

@estolfo estolfo deleted the sdam-monitoring branch March 23, 2018 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants