Skip to content

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 <binshi.bing@gmail.com>

* 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 <binshi.bing@gmail.com>

---------

Signed-off-by: Bin Shi <binshi.bing@gmail.com>
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