Skip to content

Futures scheduled after shutdown. #209

@Lorak-mmk

Description

@Lorak-mmk

Sometimes after executing integration tests, there is an error printed to the terminal:

============================================================================ 528 passed, 98 skipped, 101 warnings in 132.65s (0:02:12) =============================================================================
Exception in thread Task Scheduler:
Traceback (most recent call last):
  File "/usr/lib64/python3.11/threading.py", line 1038, in _bootstrap_inner
    self.run()
  File "/home/karolbaryla/repos/python-driver/venv/lib64/python3.11/site-packages/cassandra/cluster.py", line 4302, in run
    future = self._executor.submit(fn, *args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/concurrent/futures/thread.py", line 167, in submit
    raise RuntimeError('cannot schedule new futures after shutdown')
RuntimeError: cannot schedule new futures after shutdown

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingupstream-issueIssue is not specific to our fork and Scylla and should be also fixed in the upstream

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions