mirror of
https://github.com/qdrant/qdrant.git
synced 2026-09-21 13:37:46 -05:00
* test: parameterize collection fixture and share resharding consensus stub Let integration tests build a collection with a custom optimizers config, and move NoopReshardingConsensus from the consensus idempotency test into the shared test module. * test: reproduce scale-down resharding abort hanging on deferred points abort_resharding holds the shard holder write lock while scale_down_cleanup_points deletes migrated points with WaitUntil::Visible and no timeout. With prevent_unoptimized enabled that wait only resolves once the optimizer has cleared every deferred point of the shard, so a stalled optimizer wedges the write lock, and with it every shard holder reader and - in a cluster - the consensus apply thread driving the abort (SetShardReplicaState(Dead) on a ReshardingScaleDown replica, e.g. after that peer is killed). The test drives such an abort with the optimizer disabled and asserts it completes. It currently fails by hanging into its 30s timeout, and must pass once the cleanup delete no longer waits for visibility. * When cleaning up old points, don't wait until visible