Repository navigation
Releases
v1.0.5-beta.2
Release v1.0.5-beta.2 (Reproducible build & package alignment)
PeeStream WordPress & DooPlay v1.0.5-beta.1
Release v1.0.5-beta.1: HMAC-SHA256 signature verification, binary-safe case-sensitive URL deduplication, fail-safe archive migration, DooPlay repeatable_fields atomicity, and 174 harness tests passing.
PeeStream WP/DooPlay v1.0.3
Release v1.0.3: Multi-Server Atomicity, Manual Migration Locking, Idempotent Queue Reservation, and UTC Timezone Consistency
Overview
This release resolves all findings from the latest independent architectural and concurrency review. It hardens multi-server processing within a single post, harmonizes manual and automated migration locking, ensures strict DB schema compliance verification, and enforces consistent UTC timestamping across different server timezones.
What's Changed
- Harmonized Concurrency Locking:
ajax_process_batch()is now protected withacquire_lock(120), heartbeat lease extensions (extend_lock()), and guaranteed unlock infinally, making AJAX Start Migration, AJAX Check Queue, and WP-Cron completely mutually exclusive. - Multi-Server Post Atomicity: Posts containing multiple competitor servers (e.g. Streamtape, MixDrop, and VOE) now process each server link individually and atomically. Fresh post metadata is reloaded before each modification, distinct backup snapshots are created per link in
wp_peestream_migration_backups, and each server link can be surgically rolled back without corrupting or resetting the others. - Idempotent Queue Pre-Reservation & UNIQUE Constraint: Added
UNIQUE KEY uq_post_orig (post_id, original_url(191))towp_peestream_migration_queue. Tasks are atomically pre-reserved prior to calling/api/upload/url, eliminating redundant remote upload calls on concurrent executions. - Strict DB Schema Compliance Verification:
create_tables()strictly verifies the presence of all required columns across all three plugin tables as well as both unique indexes (uq_fc_event,uq_post_orig). Schema version is bumped to104and is only upgraded upon verified compliance. - Consistent UTC Timestamps & Timezone Safety: All timestamp writes and comparison cutoffs (
recover_partial_failures(),process_queue_batch()) now use consistent UTC (current_time('mysql', true)andgmdate()), eliminating bugs caused by WordPress local timezone offsets (gmt_offset). - Eliminated Webhook Draft Crash Window: Passed metadata directly in
wp_insert_post( 'meta_input' => ... )and added title-based draft querying, preventing duplicate draft creation even if an unexpected server timeout occurs immediately after post insertion. - Verified Server Attachment in Webhook:
attach_server_to_post()verifies thatrepeatable_fieldspersisted to the database; failures return HTTP 500 and set audit status to'failed'instead of'processed'.
Package Checksum (SHA-256)
peestream-wp-dooplay_v1.0.3.zip:1d94d4b35ce5517e8c3f04000b52ee780cde0c1a038fe3ef1324db156662ea87
PeeStream WordPress & DooPlay Addon v1.0.2
PeeStream WordPress & DooPlay Addon v1.0.2
Official verified stable release addressing all architectural and concurrency review findings.
Note: Version 1.0.1 was a pre-release build pending final architectural review. Version 1.0.2 is the recommended, fully verified production release.
Key Fixes and Hardening:
- Queue Lock Lease Extension & Time Budgeting:
- Replaced fixed 120s queue lock timeout with per-task heartbeat lease extension (
extend_lock) and batch time budgeting (max_execution_time). - Slow API responses can no longer cause an active worker's lock to expire and be usurped by a concurrent worker.
- Replaced fixed 120s queue lock timeout with per-task heartbeat lease extension (
- Owner-Token Conditional Atomic Lock Release:
- Implemented conditional atomic SQL deletion (
DELETE FROM wp_options WHERE option_name = %s AND option_value LIKE %s). - Workers strictly release only their own lock tokens, preventing interference with active workers.
- Implemented conditional atomic SQL deletion (
- Verified Post Meta Persistence:
- In both manual AJAX and background WP-Cron queue processing, DooPlay
repeatable_fieldsupdates are strictly verified (fresh_meta === target_meta) before marking queue items ascompleted.
- In both manual AJAX and background WP-Cron queue processing, DooPlay
- Partial Failure Recovery & Crash Protection:
- Backups are written with status
in_progressprior to post modification and promoted tocompletedonly after post meta is confirmed saved. - Added
recover_partial_failures()to automatically identify and flag interrupted jobs asapply_failedwithout corrupting post data.
- Backups are written with status
- Legacy Backup Mode Migration & Rollback Safeguards:
- Enforced
DEFAULT 'unknown'on schema version 103 for the backupmodecolumn; migrated historical empty backup modes to'unknown'. - In
ajax_rollback(), if an old backup recorded mode asreplacebut the original URL is already present in the post, it is safely reclassified toprimaryto avoid server duplication.
- Enforced
- Webhook Crash Recovery & Draft Deduplication:
- Added immediate post link persistence (
_peestream_webhook_filecodeandpost_idaudit column) right afterwp_insert_post(). - Subsequent webhook retries re-use existing draft posts, preventing duplicate post creation.
- Added immediate post link persistence (
- Decoupled DB Schema Versioning:
- Upgraded to
DB_SCHEMA_VERSION = 103, saving the schema option strictly after all tables and column modifications return verified success.
- Upgraded to
Checksums:
- Archive:
peestream-wp-dooplay_v1.0.2.zip - SHA-256:
8e7bbcbd49183915730c5e658ddb3e959fc14333cdd3ccc28d1010ea7fe50cb2
PeeStream WordPress & DooPlay Addon v1.0.1
PeeStream WordPress & DooPlay Addon v1.0.1 - Release Hardening
- Decoupled DB schema version (102) from plugin version (1.0.1).
- Added atomic process locking via add_option with owner token and CAS recovery.
- Fixed AJAX lock release before wp_send_json_success() / wp_die().
- Added primary mode interim conflict detection if original URL was removed by editor.
- Webhook idempotency and retry with atomic CAS takeover on timed-out reservations.
- Backward compatibility for legacy backups with safe fallback to manual_review.
- 100% test suite passing (104/104 tests).
- SHA-256: 6aa867304b11856fd8413cac609bfa98eb386a87538245641adecdd35060cd6f