Skip to content

v1.0.3 — Rollback Conflict Safety, Owner-Token Fencing, URL Hash & Bounded Retry

Choose a tag to compare

@inside83 inside83 released this 11 Nov 22:20
· 17 commits to master since this release

PeeStream DataLife Engine (DLE) Addon v1.0.3 Release

Key Updates & Security Hardening

  1. Rollback Conflict Safety & Real Error Reporting:

    • Eliminated false success reporting when optimistic update encounters lock contention.
    • Preserves backup record in 'completed' state so users can retry without losing historical snapshots.
    • Single rollback API strictly fails closed on optimistic contention.
  2. Strict Owner-Token Fencing:

    • Removed 'OR owner_token='''' fallback across queue status updates.
    • Enforces mutual exclusion and verifies affected rows on completion. Stale workers whose lease expired cannot alter active items.
  3. Collision-Free, Full-Length SHA-256 URL Hash:

    • Replaced prefix-truncated index with full 256-bit binary-safe url_hash (CHAR(64)) and UNIQUE KEY uq_post_urlhash (post_id, url_hash).
    • Prevents collation collisions and handles arbitrarily long URLs cleanly. Full original URL is preserved for verification.
  4. Bounded Upload Retry Engine:

    • Controlled, bounded retry for temporary upload failures (retry_count < 3) without parallel duplication or modifying original posts.
  5. Safe Archiving & Schema Crash Recovery:

    • Added peestream_queue_archive table to safely preserve historical duplicates during upgrade.
    • Idempotent runtime migration (peestream_ensure_schema) runs before cron worker starts.
    • Implemented peestream_recover_interrupted_tasks to handle process crashes between post update and queue/backup finalization.

Verification

  • 196 automated test cases passing (100% success rate).

SHA-256: b0ae90d07bc5a4aaa34d15f92ceabd7d10abbceea907376d9e867ad90bf632f2