aw-sync status calls the daemon's live staging db orphaned and safe to delete
メンテナーはふだん 1 日以内に返信
評価
調査の方向性
Start in aw-sync/src/status.rs around lines 270-320, where the orphaned-database check and its warning text live, then compare with where the daemon stages its db in aw-sync/src/main.rs (~452) and where plain sync writes the 3-level layout in sync_wrapper.rs (155-167). Reproduce with the two-server steps in the issue. Done means status no longer flags this device's own live 2-level db and the wording says "equal or larger". Open PR #897 already targets this, so check it before starting.
索引モデルが issue の本文から書いたものです。
説明
aw-sync status (#788) reports the daemon's live staging database as orphaned and tells the user to delete it:
orphaned … safe to delete (Syncthing will propagate the delete)
On master (ea6f09c) the daemon still stages at the 2-level path (aw-sync/src/main.rs ~452); only plain aw-sync sync (host mode, sync_wrapper.rs:155-167) writes the 3-level layout. The comment at aw-sync/src/status.rs:270 assumes the 2-level db is legacy, but it isn't. Deleting it as advised forces a full re-export and propagates the delete to every peer.
The message also says the 3-level entry is "larger" when both files are the same size.
Repro (two servers, shared sync dir $S):
aw-sync --sync-dir $S --port $P sync # writes the 3-level db
# add an event to the server on $P
timeout 12 aw-sync --sync-dir $S --port $P daemon # writes the 2-level db
aw-sync --sync-dir $S --port $P status # warns that $S/<device_id>/sync.db is orphaned and safe to delete
Reproduced twice.
Possible fix in status.rs ~275-320: don't flag this device's own 2-level db while the daemon stages there (check only peers, or compare mtimes), and say "equal or larger". Related: #682 (the two layouts).
- 主要言語
- Rust
- スター
- 322
- フォーク
- 107
- 平均マージ
- 2日 16時間
- マージ済み PR(30日)
- 25
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ActivityWatch/aw-server-rust のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
ActivityWatch/aw-server-rust#883 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
ActivityWatch/aw-server-rust#872 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
ActivityWatch/aw-server-rust#798 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
query: categorize rules can pin unbounded memory in the regex cache and run past query_timeout対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 22/100
ActivityWatch/aw-server-rust#893 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
aw-client CLI ignores aw-client.toml host/port対応中かも @TimeToBuildBob が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
ActivityWatch/aw-server-rust#888 ·
メンテナーはふだん 1 日以内に返信
ActivityWatch/aw-server-rust の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
libracoder/kiri#935 ·
メンテナーはふだん 1 日以内に返信
-
Node's `index.d.ts` declares no constructor for `VirtxError`, so TypeScript rejects its argumentsオープン
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
kashsuks/Pinel#172 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信