Nikos Dragazis
54cb6d4608
test: Order task-wait before finalization in test_migration_wait_task
...
The purpose of this test is to verify that the task manager's "wait" API
works correctly for vnodes-to-tablets migration virtual tasks. It starts
a `wait_task` HTTP request concurrently with a finalize (or rollback)
operation, and asserts that the wait returns the correct final state
("done" or "suspended").
The test `uses asyncio.create_task()` to wrap the wait request into a
task, and then immediately calls finalize. With asyncio's lazy task
scheduling, the wait coroutine does not start until the event loop
yields, so the finalization request reaches the server before wait, and
therefore may also complete before it. Once finalization completes, the
virtual migration task is no longer discoverable, causing a
"task not found" error.
Add a log message in Scylla's wait handler and a synchronization point
in the test to ensure that the wait request lands the server before
finalization. This follows the same pattern used in
`test_tablet_tasks.py::check_and_abort_repair_task`.
Fixes SCYLLADB-2077
Signed-off-by: Nikos Dragazis <nikolaos.dragazis@scylladb.com >
Closes scylladb/scylladb#29973
2026-05-26 10:43:22 +03:00
..
2026-05-21 10:36:47 +03:00
2026-05-21 21:13:55 +02:00
2026-05-21 10:36:47 +03:00
2026-05-21 21:33:19 +02:00
2026-05-21 21:31:22 +02:00
2026-05-21 21:31:22 +02:00
2026-05-21 21:13:55 +02:00
2026-05-22 16:47:48 +03:00
2026-05-18 12:23:40 +02:00
2026-05-21 10:36:47 +03:00
2026-05-21 10:36:47 +03:00
2026-05-21 21:31:22 +02:00
2026-05-22 09:42:34 +02:00
2026-05-21 10:36:47 +03:00
2026-05-21 10:36:47 +03:00
2026-05-21 21:31:22 +02:00
2026-05-21 10:36:47 +03:00
2026-05-21 10:36:47 +03:00
2026-05-21 10:36:47 +03:00
2026-05-21 10:36:47 +03:00
2026-05-21 10:36:47 +03:00
2026-05-21 10:36:47 +03:00
2026-05-21 10:36:47 +03:00
2026-05-21 10:36:47 +03:00
2026-05-21 21:31:22 +02:00
2026-05-21 21:13:55 +02:00
2026-05-21 10:36:47 +03:00
2026-05-21 10:36:47 +03:00
2026-05-21 21:31:22 +02:00
2026-05-21 21:31:22 +02:00
2026-05-21 21:13:55 +02:00
2026-05-21 21:13:55 +02:00
2026-05-21 10:36:47 +03:00
2026-05-21 10:36:47 +03:00
2026-05-21 10:36:47 +03:00
2026-05-21 10:36:47 +03:00
2026-05-17 22:16:31 +03:00
2026-05-21 10:36:47 +03:00
2026-05-21 10:36:47 +03:00
2026-04-12 19:46:33 +03:00
2026-05-21 10:36:47 +03:00
2026-05-21 10:36:47 +03:00
2026-05-21 10:36:47 +03:00
2026-05-21 10:36:47 +03:00
2026-05-21 10:36:47 +03:00
2026-05-21 10:36:47 +03:00
2026-05-21 10:36:47 +03:00
2026-05-21 10:36:47 +03:00
2026-05-21 10:36:47 +03:00
2026-05-21 21:13:55 +02:00
2026-05-21 21:13:55 +02:00
2026-05-21 10:22:07 +02:00
2026-05-21 10:36:47 +03:00
2026-05-21 10:36:47 +03:00
2026-05-21 10:36:47 +03:00
2026-05-21 10:36:47 +03:00
2026-05-21 10:36:47 +03:00
2026-05-21 10:36:47 +03:00
2026-05-21 10:36:47 +03:00
2026-05-21 21:33:24 +02:00
2026-05-21 21:13:55 +02:00
2026-05-21 10:36:47 +03:00
2026-05-21 10:36:47 +03:00
2026-05-21 21:13:55 +02:00
2026-05-21 10:36:47 +03:00
2026-05-21 21:13:55 +02:00
2026-05-21 21:13:55 +02:00
2026-05-25 14:22:04 +03:00
2026-05-21 10:36:47 +03:00
2026-05-24 10:25:08 +02:00
2026-05-21 10:36:47 +03:00
2026-05-21 21:31:22 +02:00
2026-05-21 10:36:47 +03:00
2026-05-21 10:36:47 +03:00
2026-05-21 10:36:47 +03:00
2026-05-21 10:36:47 +03:00
2026-05-21 10:36:47 +03:00
2026-05-21 10:36:47 +03:00
2026-05-21 10:36:47 +03:00
2026-05-21 10:36:47 +03:00
2026-05-21 10:36:47 +03:00
2026-05-21 10:36:47 +03:00
2026-05-21 10:36:47 +03:00
2026-05-21 10:36:47 +03:00
2026-05-21 10:36:47 +03:00
2026-05-21 10:36:47 +03:00
2026-05-21 10:36:47 +03:00
2026-05-21 10:36:47 +03:00
2026-05-21 10:36:47 +03:00
2026-05-21 21:13:55 +02:00
2026-05-21 21:31:22 +02:00
2026-05-21 21:13:55 +02:00
2026-05-21 21:13:55 +02:00
2026-05-21 21:33:19 +02:00
2026-05-21 21:13:55 +02:00
2026-05-21 10:36:47 +03:00
2026-05-21 10:50:00 +03:00
2026-05-21 21:33:19 +02:00
2026-05-21 10:36:47 +03:00
2026-05-21 10:36:47 +03:00
2026-05-21 10:36:47 +03:00
2026-05-21 10:36:47 +03:00
2026-05-21 10:36:47 +03:00
2026-05-21 10:36:47 +03:00
2026-05-21 10:36:47 +03:00
2026-05-21 10:36:47 +03:00
2026-05-21 10:36:47 +03:00
2026-05-21 21:31:22 +02:00
2026-04-12 19:46:33 +03:00
2026-05-21 10:36:47 +03:00
2026-05-21 10:36:47 +03:00
2026-05-21 10:36:47 +03:00
2026-05-21 10:36:47 +03:00
2026-05-21 10:36:47 +03:00
2026-05-21 10:36:47 +03:00
2026-05-21 21:31:22 +02:00
2026-05-21 10:36:47 +03:00
2026-05-21 10:36:47 +03:00
2026-05-21 10:36:47 +03:00
2026-05-21 10:36:47 +03:00
2026-05-21 10:36:47 +03:00
2026-04-12 19:46:33 +03:00
2026-04-12 19:46:33 +03:00
2026-05-12 23:20:55 +02:00
2026-05-21 10:36:47 +03:00
2026-05-21 10:36:47 +03:00
2026-05-22 11:58:37 +02:00
2026-05-21 10:36:47 +03:00
2026-05-25 10:55:00 +02:00
2026-05-21 10:36:47 +03:00
2026-05-21 10:36:47 +03:00
2026-05-21 10:36:47 +03:00
2026-05-21 10:36:47 +03:00
2026-05-22 15:03:47 +03:00
2026-05-21 21:13:55 +02:00
2026-05-21 10:36:47 +03:00
2026-05-21 21:13:55 +02:00
2026-05-21 21:31:22 +02:00
2026-05-21 21:13:55 +02:00
2026-05-21 21:31:22 +02:00
2026-05-21 21:31:22 +02:00
2026-05-21 21:31:22 +02:00
2026-05-21 21:31:22 +02:00
2026-05-21 10:36:47 +03:00
2026-05-21 21:31:22 +02:00
2026-05-05 18:56:37 +03:00
2026-05-21 10:36:47 +03:00
2026-05-21 10:36:47 +03:00
2026-05-21 10:36:47 +03:00
2026-05-21 10:36:47 +03:00
2026-05-21 21:31:22 +02:00
2026-05-21 10:36:47 +03:00
2026-05-21 21:31:22 +02:00
2026-05-21 10:36:47 +03:00
2026-05-21 10:36:47 +03:00
2026-05-21 21:13:55 +02:00
2026-05-21 21:13:55 +02:00
2026-05-12 12:38:25 +03:00
2026-05-21 15:43:36 +02:00
2026-05-21 10:36:47 +03:00
2026-05-21 10:36:47 +03:00
2026-05-21 10:36:47 +03:00
2026-05-21 15:11:58 +02:00
2026-05-26 10:43:22 +03:00
2026-05-21 10:36:47 +03:00
2026-05-21 10:36:47 +03:00
2026-05-21 10:36:47 +03:00
2026-05-21 10:36:47 +03:00
2026-05-21 10:36:47 +03:00
2026-04-30 21:27:56 +03:00