scatter: no peer fallback after final isolation rejection

Aperta
#11,633 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
go

Direzione di ricerca

Start at the public admin scatter entry point and follow peer target selection through the final isolation check; the issue provides a runnable reproduction in the linked discussion on PR #11284. Reproduce with the listed placement rules and store labels, then check whether scatter tries store 8 after store 7 fails. Done means scatter can select the eligible target whose final layout passes isolation.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

contribution type/bug

Bug Report

What did you do?

Enable Placement Rules. Configure two voter rules with counts 2 and 4, both with LocationLabels=[zone,host]. Only the second rule sets IsolationLevel=host.

Store Zone Host
1 b
2 b
3 a b
4 a c
5 c
6 a c
7 a b
8 d e

Place peers with IDs 1–6 on stores 1–6 and keep the leader on store 1. In a scatter group, favor moving the peer on store 3. Set the peer selection counts for stores 7 and 8 to 0 and 1, respectively, so scatter picks store 7 first. Call admin scatter twice for the Region. The source has a complete rule fit with an existing host isolation conflict.

What did you expect to see?

If every leader for the first peer layout fails the final isolation check, scatter can try another eligible peer target. In this case it can move the peer from store 3 to store 8, where the final layout passes the same check.

What did you see instead?

Both calls return ErrGetTargetStore without trying store 8. The final layout for store 7 correctly fails the isolation check after peer ID allocation. The selection counts stay unchanged, so the next call picks store 7 again. As a control, making store 8 the first choice produces an operator whose final layout passes the check.

What version of PD are you using (pd-server -V)?

Reproduced with the public scatter entry point on PD source 3cb011d6e, with joint consensus on and off. Runnable reproduction.

Lingua principale
Go
Stelle
1.2k
Fork
794
Merge medio
5g 32m
PR unite (30g)
81

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di tikv/pd

Tutte le issue di tikv/pd

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.