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

Disabling specific raft actor's launching by its own shard id #173

Merged
merged 18 commits into from
Oct 20, 2022

Conversation

ydash
Copy link
Contributor

@ydash ydash commented Oct 5, 2022

Add feature of disabling raft actor's launching by specifying its own shard id.

Ignore following launching trigger of RaftActor

  • ReplicationRegionRaftActorStarter
  • ReplicationRegion
  • RaftActor

@ydash ydash marked this pull request as ready for review October 12, 2022 07:32
@ydash ydash changed the title WIP: Disabling specific raft actor's launching by its own shard id Disabling specific raft actor's launching by its own shard id Oct 12, 2022
@xirc xirc self-requested a review October 12, 2022 08:03
Copy link
Contributor

@xirc xirc left a comment

Choose a reason for hiding this comment

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

Great!

I left some comments.

As same as RaftActor, CommitLogStoreActor also should stop itself if its shard ID is disabled. Would it be possible also to change CommitLogStoreActor? CommitLogStoreActor can use its shardId method to get its shard ID.

@ydash
Copy link
Contributor Author

ydash commented Oct 19, 2022

@xirc

As same as RaftActor, CommitLogStoreActor also should stop itself if its shard ID is disabled. Would it be possible also to change CommitLogStoreActor? CommitLogStoreActor can use its shardId method to get its shard ID.

I implemented feature of stopping itself to CommitLogStoreActor.

5f8f982
44e7a8a

Copy link
Contributor

@xirc xirc left a comment

Choose a reason for hiding this comment

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

Great! LGTM 👍

@xirc xirc merged commit c78b5c7 into master Oct 20, 2022
@xirc xirc deleted the feature/stopping-raft-actors-by-its-own-shard-id branch October 20, 2022 06:17
@xirc xirc added this to the v2.2.0 milestone Oct 21, 2022
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