Skip to content

Randomise DB/schema names for Ddl* tests; ThreadLocal driver binding #4344

Description

@ScottDugas

Reference Commits: ae1dfd8ba, 1c009ab1f, 7922b008e, a7bd4104f,
ac6023737, 78fc46b00, e496e93d0
Files (primary): DdlDatabaseTest.java, DdlRecordLayerSchema*.java,
RelationalExtension.java, RelationalConnectionTest.java

The Ddl* test family has the same hard-coded-path collision problem as issue #4343's tests, and additionally registers the FRL driver in the JVM-wide DriverManager, which is inherently shared state that parallel tests race on.

Apply the same random-suffix pattern as issue 13. Additionally, stop registering the FRL driver in DriverManager and instead bind it into a ThreadLocal inside RelationalExtension. Tests that need the driver look it up from the thread-local; the DriverManager registry stays clean.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions