Skip to content

test(scho oss): add smigrating checks for new connections#3186

Merged
nkaradzhov merged 1 commit intoredis:masterfrom
nkaradzhov:hitless-tests
Feb 25, 2026
Merged

test(scho oss): add smigrating checks for new connections#3186
nkaradzhov merged 1 commit intoredis:masterfrom
nkaradzhov:hitless-tests

Conversation

@nkaradzhov
Copy link
Collaborator

Description

Describe your pull request here


Checklist

  • Does npm test pass with this change (including linting)?
  • Is the new or changed code fully tested?
  • Is a documentation update included (if this change modifies existing APIs, or introduces new ones)?

});

diagnostics_channel.subscribe("redis.maintenance", onEvent);
setTimeout(timeout, () => finish(false));
Copy link
Contributor

@PavelPashov PavelPashov Feb 25, 2026

Choose a reason for hiding this comment

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

Should this setTimeout be awaited?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

no, this is basically an abort signal that we run in the background.

const event = message as DiagnosticsEvent;
if (event.type !== "SMIGRATING") return;

received++;
Copy link
Contributor

@PavelPashov PavelPashov Feb 25, 2026

Choose a reason for hiding this comment

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

With a counter, one client could end up receiving 2 events while another receives none.

@nkaradzhov nkaradzhov merged commit 47f8fd6 into redis:master Feb 25, 2026
15 checks passed
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.

2 participants