Skip to content

Start empty when the DTN queue file is corrupt - #7

Closed
Pitchfork-and-Torch wants to merge 2 commits into
mainfrom
cook/dtn-corrupt-queue-load
Closed

Pitchfork-and-Torch wants to merge 2 commits into
mainfrom
cook/dtn-corrupt-queue-load

Conversation

@Pitchfork-and-Torch

Copy link
Copy Markdown
Owner

What

DtnQueue loads on Nexus boot. A truncated, non-object, or partially corrupt dtn-queue.json raised JSONDecodeError / TypeError and took the node down.

Changes

  • Unreadable or non-object queue files start empty (with a warning)
  • Skip individual bad bundle objects instead of failing the whole load
  • Test covers corrupt JSON, array root, partial bundles, and a healthy reload

Distinct from closed integrity --record PR #5 and disaster-drill render PR #6.

Verification

pytest tests/test_nexus.py: 10 passed.

Pitchfork-and-Torch and others added 2 commits September 17, 2026 20:55
…sim, power Wh calibration, soak protocols, partner tabletop, not a complete archive, not free commercial broadband.
DtnQueue loads on Nexus boot. Truncated or non-object JSON previously
raised and took the node down; skip bad bundles and keep serving.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant