check-cassandra-catalog-lock: a refused migrate changed a keyspace that held only the lock row

オープン 初心者向け
#871 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 4 日以内に返信

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
84/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
cassandra, rust
領域
databases, testing

調査の方向性

devtools/check-cassandra-catalog-lockから始め、keyspaceのテーブル名とsettingsキーをmigrate --yesおよびプレビューの前後でどのように読み取るかを追ってください。読み取り結果が異なる場合に、両方の値を出力するようエラー出力を更新してください。今後不一致が発生したときに前後の値が表示されることを完了条件とし、このチェックを再実行して出力を確認してください。

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

説明

backend:cassandra ci:stability

devtools/check-cassandra-catalog-lock failed a keyspace whose settings table holds only the lock row is left as it was in job 127151625065 of cassandra-catalog-checks, on fix/stream-arn-account-check on 5 November 09:07 UTC. That is 1 failure in 168 jobs between 3 and 5 November.

For this case the script creates a keyspace whose settings table has the catalog's columns and no rows. It reads the keyspace's table names and settings keys, then runs migrate --yes and the migrate preview, and reads them again. migrate --yes takes the lock, refuses the keyspace and releases the lock. The preview takes no lock. The two reads differed once. The script prints FAIL without the two reads, so the job log does not show what changed. A lock row that the release did not delete would explain it, but the log cannot confirm that.

A first step is to print both reads when they differ, so the next failure shows its cause.

主要言語
Rust
スター
517
フォーク
60
平均マージ
5日 4時間
マージ済み PR(30日)
76

環境構築

はじめの一歩

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

ExtendDB/extenddb のほかの issue

ExtendDB/extenddb の issue をすべて見る

似ている issue

Rust の issue をもっと見る

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

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