Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Major data loss -- server doesn't appear to write data to disk properly

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

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
rust
領域
backend

調査の方向性

まず、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

  1. Gather some data
  2. Kill aw-server-rust.exe
  3. 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 を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

ActivityWatch/aw-server-rust のほかの issue

ActivityWatch/aw-server-rust の issue をすべて見る

似ている issue

Rust の issue をもっと見る

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

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