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

ReAdd peer meta. #101

Merged
merged 5 commits into from
May 13, 2016
Merged

ReAdd peer meta. #101

merged 5 commits into from
May 13, 2016

Conversation

qiuyesuifeng
Copy link
Contributor

No description provided.

@qiuyesuifeng
Copy link
Contributor Author

@tiancaiamao @siddontang @disksing PTAL

for _, peerStoreID := range region.StoreIds {
if peerStoreID == storeID {
for _, peer := range region.Peers {
if peer.GetStoreId() == storeID {
// we can't add peer in the same store.
Copy link
Contributor

Choose a reason for hiding this comment

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

tip: maybe we'll allow this later, but allocate a new peer id and recycle the old peer.

Copy link
Contributor

Choose a reason for hiding this comment

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

why should support this?
A store can only have one peer for the region. Pd must remove first, then add again.

@disksing
Copy link
Contributor

LGTM

1 similar comment
@tiancaiamao
Copy link
Contributor

LGTM

@disksing disksing changed the title [DNM]ReAdd peer meta. ReAdd peer meta. May 13, 2016
@disksing disksing merged commit 0845734 into master May 13, 2016
@disksing disksing deleted the qiuyesuifeng/readd-peer branch May 13, 2016 03:33
rleungx pushed a commit to rleungx/pd that referenced this pull request Jun 5, 2023
* Fix tso server close stuck issue (tikv#6529)

ref tikv#5895, close tikv#6304

Rewrite TSO gPRC/HTTP server Close().

Signed-off-by: Bin Shi <[email protected]>

* mcs, tso: change keyspace group primary path. (tikv#6526)

ref tikv#5895

mcs, tso: change keyspace group primary path.

The path for non-default keyspace group primary election changes
from  "/ms/{cluster_id}/tso/{group}/primary" to "/ms/{cluster_id}/tso/keyspace_groups/election/{group}/primary".
Default keyspace group keeps /ms/{cluster_id}/tso/00000/primary.

Signed-off-by: Bin Shi <[email protected]>

---------

Signed-off-by: Bin Shi <[email protected]>
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