Skip to content

Silently dropped future exceptions #306

@muzarski

Description

@muzarski

In the driver's code there are places where we schedule an asynchronous task but ignore its result.

This can lead to silently ignoring exceptions thrown by the async task (e.g. c7e6ebb). Such behaviour is dangerous. It could lead to hours wasted on the debugging by users of the driver. It could even be the cause of some internal driver bugs.

There are multiple ways to approach the issue. I believe we should find the solution which not only gets rid of current occurrences of the problem, but also prevents the developers from introducing similar bugs in the future. One idea might be to introduce some wrapper over (Green)ThreadPoolExecutor which would log some message in case the async task threw an exception.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestupstream-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