Issue Description
verify reports unexplained “differs in the target: keywords” mismatches after run --final (v0.16.27 → v1.0.0, RocksDB)
Stalwart Version
v0.16.x
Installation Method
Binary (Linux)
Database Backend
RocksDB
Blob Storage
RocksDB
Search Engine
Internal
Directory Backend
Internal
Additional Context
Setup: Stalwart v0.16.27 (official binary, enterprise build), single node, RocksDB data + blobs in the same store, ~4 GB, 6 accounts. stalwart-migrate v1.0.0 (standard build), target: new empty RocksDB directory.
Steps: prepare (0 errors) → run with v0.16 live → stop v0.16 → run --final --allow-errors (only errors were 6 SpamTrainingSample objects whose blobs are missing in the source).
Result: Finalize completed, but verification failed: 6 accounts checked, 598 mismatches, 592 not explained by earlier reports. Reproducible with a separate verify run (same numbers).
Mismatches:
110 × email … differs in the target: keywords, only accounts 3 and 4, in contiguous document-id ranges (e.g. 596–614, 1073–1089)
118 × telemetry span … differs in the target (not “missing”)
6 × the accepted SpamTrainingSample errors
The copy runs did not report any change for these emails (no info/warning rows for accounts 3 and 4 besides the verify rows). --log-level debug verify shows no detail about which keywords differ.
Questions: Is this a verifier issue or are keywords actually lost/changed during the copy? Is there a way to output the source and target keyword sets for a mismatching email?
migrate-status:
State database: /var/lib/stalwart-migrate/state.sqlite
tool_version 1.0.0
edition enterprise
source_def_hash 9ad418df48bb0f251deccc3b8677dfd5
target_def_hash 81a023434b1f436a83ae7694b8f90b9f
target_schema_version 7
categories settings,principals,mail,calendars,contacts,files,sieve,identities,push_subscriptions,spam_samples,reports,archive,spam_model,queue,tasks,telemetry
created_at 2026-10-26T20:09:56Z
accepted_errors 3
final_generation done 3
source_store directory /var/lib/stalwart
target_claim f65a41a560b2561c4c9008042a8be1b3
claim_generation 6f18ce5ae07545bf8541286993c1b28d
claim_generation_pending 6f18ce5ae07545bf8541286993c1b28d
final_done not done
Accounts: 6
done 6
Recent runs:
#5 verify failed started 2026-10-26T20:20:58Z took 12s
accounts_checked=6, mismatches=598, unexplained=592
#4 verify failed started 2026-10-26T20:16:49Z took 12s
accounts_checked=6, mismatches=598, unexplained=592
#3 final ok started 2026-10-26T20:16:18Z took 31s
accounts_unchanged=6, blob_bytes=3771, blobs_copied=1, global_records=31, issues=38
#2 final failed started 2026-10-26T20:14:14Z took 31s
accounts_unchanged=6
#1 incremental failed started 2026-10-26T20:09:56Z took 33s
accounts_full=6, blob_bytes=4472032060, blobs_copied=13637, bytes_written=3806410556, emails_written=9493, errors=6, global_records=43925, issues=147, log_rows=54649, objects_written=13463, registry_dropped=12, registry_written=14932
Reports in the latest run:
verify mismatch 218
Reports in all runs:
error skipped 6
info changed 107
info dropped 2
verify mismatch 436
warning dropped 70