Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[aarch64, debug] rest_api/test_task_manager failed with #19351

Open
scylladb-promoter opened this issue Jun 18, 2024 · 1 comment
Open

[aarch64, debug] rest_api/test_task_manager failed with #19351

scylladb-promoter opened this issue Jun 18, 2024 · 1 comment
Labels
symptom/ci stability Issues that failed in ScyllaDB CI - tests and framework tests/flaky A problem with a test, having flaky behavior triage/oss

Comments

@scylladb-promoter
Copy link
Contributor

https://jenkins.scylladb.com/job/scylla-6.0/job/next/85/ failed with the following error:


=================================== FAILURES ===================================
____________________________ test_task_manager_wait ____________________________

rest_api = <conftest.RestApiSession object at 0xffff45f377d0>

    def test_task_manager_wait(rest_api):
        with new_test_module(rest_api):
            keyspace = "keyspace0"
            table = "table0"
            args0 = { "keyspace": keyspace, "table": table }
            with new_test_task(rest_api, args0) as task0:
                print(f"created test task {task0}")
    
                x = ThreadWrapper(target=wait_and_check_status, args=(rest_api, task0, 1, keyspace, table,))
                x.start()
    
                time.sleep(2)   # Thread x should wait until finish_test_task.
    
                assert x.is_alive, "task_manager/wait_task does not wait for task to be complete"
    
                resp = rest_api.send("POST", f"task_manager_test/finish_test_task/{task0}")
                resp.raise_for_status()
    
                x.join()
    
>               assert_task_does_not_exist(rest_api, task0)

test/rest_api/test_task_manager.py:107: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rest_api = <conftest.RestApiSession object at 0xffff45f377d0>
task_id = 'abf6b479-1231-4dea-936b-487ce13af622'

    def assert_task_does_not_exist(rest_api, task_id):
        resp = rest_api.send("GET", f"task_manager/task_status/{task_id}")
>       assert resp.status_code == requests.codes.bad_request, f"Task {task_id} is kept in memory"
E       AssertionError: Task abf6b479-1231-4dea-936b-487ce13af622 is kept in memory

test/rest_api/task_manager_utils.py:56: AssertionError
------------------------------ Captured log call -------------------------------
DEBUG    urllib3.connectionpool:connectionpool.py:474 http://127.142.64.1:10000 "POST /task_manager_test/test_module HTTP/1.1" 200 0
DEBUG    urllib3.connectionpool:connectionpool.py:474 http://127.142.64.1:10000 "POST /task_manager_test/test_task?keyspace=keyspace0&table=table0 HTTP/1.1" 200 38
DEBUG    urllib3.connectionpool:connectionpool.py:246 Starting new HTTP connection (2): 127.142.64.1:10000
DEBUG    urllib3.connectionpool:connectionpool.py:474 http://127.142.64.1:10000 "GET /task_manager/wait_task/abf6b479-1231-4dea-936b-487ce13af622 HTTP/1.1" 200 419
DEBUG    urllib3.connectionpool:connectionpool.py:474 http://127.142.64.1:10000 "POST /task_manager_test/finish_test_task/abf6b479-1231-4dea-936b-487ce13af622 HTTP/1.1" 200 0
DEBUG    urllib3.connectionpool:connectionpool.py:474 http://127.142.64.1:10000 "GET /task_manager/task_status/abf6b479-1231-4dea-936b-487ce13af622 HTTP/1.1" 200 419
DEBUG    urllib3.connectionpool:connectionpool.py:474 http://127.142.64.1:10000 "DELETE /task_manager_test/test_task?task_id=abf6b479-1231-4dea-936b-487ce13af622 HTTP/1.1" 400 87
DEBUG    urllib3.connectionpool:connectionpool.py:474 http://127.142.64.1:10000 "GET /task_manager/list_module_tasks/test?internal=true HTTP/1.1" 200 None
DEBUG    urllib3.connectionpool:connectionpool.py:474 http://127.142.64.1:10000 "DELETE /task_manager_test/test_module HTTP/1.1" 200 0
=============================== warnings summary ===============================
../../../../../usr/local/lib64/python3.11/site-packages/cassandra/io/asyncorereactor.py:34
  /usr/local/lib64/python3.11/site-packages/cassandra/io/asyncorereactor.py:34: DeprecationWarning: The asyncore module is deprecated and will be removed in Python 3.12. The recommended replacement is asyncio
    import asyncore

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
- generated xml file: /scylladir/testlog/aarch64/debug/xml/rest_api.test_task_manager.1.xunit.xml -
=================== 1 failed, 11 passed, 1 warning in 6.47s ====================
=== TEST.PY SUMMARY START ===
Test exited with code 1

=== TEST.PY SUMMARY END ===
@scylladb-promoter scylladb-promoter added symptom/ci stability Issues that failed in ScyllaDB CI - tests and framework tests/flaky A problem with a test, having flaky behavior triage/oss labels Jun 18, 2024
@scylladb-promoter
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
symptom/ci stability Issues that failed in ScyllaDB CI - tests and framework tests/flaky A problem with a test, having flaky behavior triage/oss
Projects
None yet
Development

No branches or pull requests

1 participant