-
Notifications
You must be signed in to change notification settings - Fork 1.9k
cluster/node events (#1855) #3083
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
base: master
Are you sure you want to change the base?
Conversation
@NaughtySora hi, sorry for big delay! This looks good! Could I ask you to:
|
add test template for the new cluster events
Hi, thank you for the reply @nkaradzhov . I've added the test example from your PR, and I will proceed with the steps above . |
I added documentation inspired by standalone client.
|
testUtils.testWithCluster('foo', async cluster => {
//tests
}, {
serverArguments: [],
numberOfMasters: 3,
numberOfReplicas: 3
});
|
I've found the way to make test more safe and changed docs a bit for more clear description. |
Description
Adding events for cluster client, some people were interested in it.
I have read the issue but didn't see any concrete approved suggestions so i come up with some.
for cluster:
for nodes:
Node events provide host/port to identify a particular node.
I would like to hear suggestions or opinion if this feature needed.
issue #1855
Checklist
Does
npm test
pass with this change (including linting)?I tried to run tests via npm run build and npm test but it fails with timeout "before hook" after 30000ms after 1 hour of going a couple of time. But git checks are fine i guess.
Is the new or changed code fully tested?
I haven't seen any tests for emitting events, i have tested it only locally.
Is a documentation update included (if this change modifies existing APIs, or introduces new ones)?
Can't find where i can update desctiption about cluster events.
I saw small section of client events on redis website.
Can't update that.