Major data loss -- server doesn't appear to write data to disk properly
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
まず、aw-server-rust について説明されている強制終了と再起動のシーケンスを再現し、突然のシャットダウンの前後で永続化されたデータを比較します。直近のデータが未書き込みなのか破損しているのかを特定し、その後、電源喪失をシミュレートしたシナリオを含め、突然の終了と再起動を繰り返してもデータが保持されることを検証します。
索引モデルが issue の本文から書いたものです。
説明
- I am on the latest ActivityWatch version.
- I have searched the issues of this repo and believe that this is not a duplicate.
- OS name and version: Windows 11, 22H2 (22621.1848)
- ActivityWatch version: 0.12.2
Describe the bug
After a power outage at night, while the computer was in sleep/standby, all data for the past few days was lost. I started using ActivityWatch on June 10th and now have data for the these dates: 10, 11, 12, 13, 18.
To Reproduce
- Gather some data
- Kill aw-server-rust.exe
- Restart aw-server-rust.exe
All data gathered since the last graceful exit is lost when I do this, as mentioned above even days worth of data.
However, making things worse, I could reproduce this while testing, but not every time. I'm not sure what the difference between tries is. I'm also not sure if data is written properly but is corrupted, or simply not written at all.
Expected behavior
Data should be written to disk regularly, perhaps every 5 minutes or so, and persist even if power is lost/the server crashes etc.
- 主要言語
- Rust
- スター
- 317
- フォーク
- 99
- 平均マージ
- 1日 13時間
- マージ済み PR(30日)
- 66
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ActivityWatch/aw-server-rust のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 58/100
ActivityWatch/aw-server-rust#767 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
ActivityWatch/aw-server-rust#763 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
ActivityWatch/aw-server-rust#724 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
ActivityWatch/aw-server-rust#717 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 68/100
ActivityWatch/aw-server-rust#714 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
ActivityWatch/aw-server-rust の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 3 日以内に返信
-
state:triage-needed
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
Automattic/harper#4503 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
メンテナーはふだん 2 日以内に返信