Skip to content

實作 JSON 儲存 adapter #7

Closed

Description

@Command1264

上層 roadmap:#1

受阻於:#3、#4

目標

實作供小型伺服器、測試與資料交換使用的 JSON backend,不將它描述為高併發 production 預設方案。

驗收條件

  • JSON storage 通過共用 repository contract suite。
  • 寫入使用 atomic replace,並保留可復原的前一份資料。
  • 載入前驗證 on-disk format version。
  • 資料損壞或版本不支援時顯示可操作的錯誤,不得靜默重設。
  • 文件清楚說明 backend 的 concurrency 與規模限制。

Activity

  1. added
    needs-triage
    on Sep 20, 2026
  2. changed the title [-]JSON storage adapter[/-] [+]實作 JSON 儲存 adapter[/+] on Sep 20, 2026
  3. Command1264 commented on Sep 23, 2026

    @Command1264
    OwnerAuthor

    驗收紀錄

    已依使用者驗收將 PR #23 的 436841b 合併至 develop(merge commit 3d64431)。JSON adapter 通過共用 storage contract,採版本化快照、原子替換與前一份資料備份;損毀/不支援版本拒絕靜默重設。單實例與規模限制見 docs/operations/json-storage.md。

    驗證:PR #23 的 Ubuntu/Windows、Java 8/11 四項 build 與 MySQL integration CI 全部通過。本機相關測試 76 項通過;同一受測 JAR 在全新隔離 TestLab 的 Spigot 1.8.8、Spigot 26.2、Paper 26.2 啟動,最低 Spigot 與最新 Paper 重啟後讀回同一 JSON 與防濫用 key。完整紀錄見 docs/testing/evidence/2026-09-23-issue-7-json-smoke.md。測試時誤按進入的 Command1 不計入玩家流程驗收;真人玩家操作仍留待發行前集中驗收。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-triage

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions