Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replica set support #38

Open
hafarooki opened this issue Dec 15, 2018 · 2 comments
Open

replica set support #38

hafarooki opened this issue Dec 15, 2018 · 2 comments
Labels

Comments

@hafarooki
Copy link

I need to be able to test client sessions, but only replica sets support that. Is that possible with this?

@bwaldvogel
Copy link
Owner

It’s not yet supported.

It could probably help implementation, if you could add a (simple) test case.

@snava10
Copy link
Contributor

snava10 commented Jun 5, 2020

We can easily simulate a replica set without really implementing it by adding a few fields to the isMaster response, for example

response.put("setName", "rs0");
response.put("hosts", Collections.singleton(serverAddress));
response.put("me", serverAddress);
response.put("primary", serverAddress);
response.put("logicalSessionTimeoutMinutes", 100);

but this wont do to support sessions, for that we need support for OP_MSG #71

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants