Skip to content

Make MS SQLServer tests and connection handling more robust #790

@thadguidry

Description

@thadguidry

Sometimes during local testing, there is not enough of some kind of delay, in order to ensure that the MS SQLServer container is started, and the port and connection are available to use.

Warnings that should not be happening during testing:

2024-11-12T15:28:41.493+08:00  WARN 37996 --- [ main]
c.m.s.j.internals.SQLServerConnection    : 
ConnectionID:1 ClientConnectionId: e7f921ad-98a5-460e-8e9d-dffb9568e097
Prelogin error: host localhost port 51760
Unexpected end of prelogin response after 0 bytes read

Generally, we should make the Connection handling more robust and expect that sometimes there are delays reaching DB instances or containers due to intermittent networking issues.

For example, if during testing, there is no login actually needed, or it's implied or configured somehow, then we should ensure that it works without throwing these kinds of errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    MS SQLServerMicrosoft SQLServer issuesbugSomething isn't workingtestsanything to do with Tests (resources, data, config, etc.)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions