InlineVerifier cleanup tracking

Aperta
#126 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
20/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
go
Ambito
databases

Direzione di ricerca

Start by tracing InlineVerifier, IterativeVerifier, Ferry, BinlogVerifyStore, and the ControlServer or copydb integration points named in the checklist. Review existing InlineVerifier and IterativeVerifier tests, then define completion as resolving the unchecked cleanup, race-condition test, interrupt behavior, integration, and configuration items without regressing the completed work.

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

Descrizione

  • Remove the IterativeVerifier from the code base.
  • Remove the "hack" of f.inlineVerifier on Ferry and make it more integrated into Ferry directly.
    • Possibly review the Verifier interface to see if it needs to be extended or removed.
  • Write some sort of test for race condition within InlineVerifier.verifyallEventsInStore(). Specifically, if a row is added to the BinlogVerifyStore between the .Batches() call and .RemoveVerifiedBatches() call, that row must remain present after .RemoveVerifiedBatches().
    • This is somewhat non-trivial as there's no easy way to mock methods and the race condition is entirely contained within verifyAllEventsInStore, a private method.
    • A possible way to test this kind of is to add the same row multiple times and see if the counter has increased proportionally. Then, run verifyAllEventsInStore once and see if the counter only decreases by 1 time, or something along this line of thought.
  • Disallow interrupt after FlushBinlog.
  • SELECT query logs with the InlineVerifier will be massive because of the repeated MD5 COALESCE: https://github.com/Shopify/ghostferry/pull/136
  • Port more IterativeVerifier tests to the InlineVerifier: #137
  • InlineVerifier is likely broken with the ControlServer and thus copydb.
  • ColumnCompressionConfig is only used by the InlineVerifier. Should either move it into the InlineVerifierConfig or make the InlineVerifierConfig and thus InlineVerifier a first class member of Ghostferry
Lingua principale
Go
Stelle
858
Fork
77
Merge medio
10g 4h
PR unite (30g)
4

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

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 Shopify/ghostferry

Tutte le issue di Shopify/ghostferry

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.