InlineVerifier cleanup tracking

オープン
#126 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
20/100
issue の種類
リファクタリング
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
go
領域
databases

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

  • 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
主要言語
Go
スター
858
フォーク
77
平均マージ
10日 4時間
マージ済み PR(30日)
4

環境構築

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Shopify/ghostferry のほかの issue

Shopify/ghostferry の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。