Skip to content

Conversation

@PavelPashov
Copy link
Contributor

No description provided.

@PavelPashov
Copy link
Contributor Author

run sharded pub sub tests

@PavelPashov PavelPashov changed the title feat(cluster): refactor sharded pub sub feat(cluster): refactor sharded pub sub v4 Nov 26, 2025
@uglide
Copy link
Contributor

uglide commented Nov 26, 2025

Testcase Errors Failures Skipped Total
Root Suite 0 0 0 0
Sharded Pub/Sub E2E 0 0 0 0
Single Subscriber 0 0 0 4
Multiple Subscribers 0 0 0 2

---- Details for maintainers

Copy link

@jit-ci jit-ci bot left a comment

Choose a reason for hiding this comment

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

❌ The following Jit checks failed to run:

  • secret-detection-trufflehog

#jit_bypass_commit in this PR to bypass, Jit Admin privileges required.

More info in the Jit platform.

Copy link

@jit-ci jit-ci bot left a comment

Choose a reason for hiding this comment

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

❌ The following Jit checks failed to run:

  • secret-detection-trufflehog

#jit_bypass_commit in this PR to bypass, Jit Admin privileges required.

More info in the Jit platform.

@PavelPashov PavelPashov changed the title feat(cluster): refactor sharded pub sub v4 feat(cluster): refactor sharded pub/sub v4 Nov 27, 2025
Copy link

@nkaradzhov nkaradzhov left a comment

Choose a reason for hiding this comment

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

CLGTM, left couple totally unimportant nits

Comment on lines +39 to +50
this.onEnd = () => {
this.started = false;
this.emitter.emit("-node", this.instance, this.nodeKey);
};

this.onError = (error: Error) => {
this.emitter.emit("nodeError", error, this.nodeKey);
};

this.onMoved = () => {
this.emitter.emit("moved");
};

Choose a reason for hiding this comment

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

those all can be just instance arrow fns like this:

class Foo {
  onEnd = () => {}
}

this way we can remove the declarations

Comment on lines +88 to +90
this.instance.off("end", this.onEnd);
this.instance.off("error", this.onError);
this.instance.off("moved", this.onMoved);

Choose a reason for hiding this comment

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

its also ok to say this.instance.removeAllListeners(). I think it should be safe, because noone else uses the instance, so no danger of removing some listeners that are not ours

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.

3 participants