Want consistent strategy for runtime/persistent config changes

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

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

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
リファクタリング
明瞭さ
説明が足りない
活発さ
静か
技術スタック
rust

調査の方向性

まず、ランタイム状態と sled::Db を更新する handler を監査し、それぞれがデータベーストランザクションとランタイム更新のどちらを先に実行するかを比較します。issue で説明されている並行性の抜けを整理し、インターリーブされたリクエストと daemon の再起動にわたってランタイム状態と永続状態の一貫性を維持する、統一された戦略を定義します。

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

説明

bfd bgp Bug important non-blocker rust want

When it comes to storing persistent state (for recovering from daemon restarts/crashes, currently implemented using sled::Db) and updating runtime state, there are a lot of inconsistencies in the way it's being applied.

Some handlers do the DB transaction first, others do runtime first. Many have concurrency gaps (e.g. interleaving add/del requests can result in inconsistencies between runtime and persistent state).

This is something we should really consider revamping so we can avoid having weird correctness bugs crop up in live deployments.

主要言語
Rust
スター
100
フォーク
8
平均マージ
2日 1時間
マージ済み PR(30日)
18

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

oxidecomputer/maghemite のほかの issue

oxidecomputer/maghemite の issue をすべて見る

似ている issue

Rust の issue をもっと見る

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

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