Skip to content

[Bug] [SqlserverCdc] SqlserverCdc job has been using an unavailable connection #1577

@Paddy0523

Description

@Paddy0523

Search before asking

  • I had searched in the issues and found no similar issues.

What happened

When a jdbc connection is closed, the job will still use the closed connection

What you expected to happen

When the connection is not available, the job continues to run after reacquiring the connection.

How to reproduce

Start a sqlserverCdc job and manually kill the connection on the server

SELECT conn.session_id, host_name, program_name, nt_domain, login_name, connect_time, last_request_end_time FROM sys.dm_exec_sessions AS sess JOIN sys.dm_exec_connections AS conn ON sess.session_id = conn.session_id;
KILL 'session_id'

Anything else

No response

Version

master

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions