exasol / exasol-test-setup-abstraction-java

Common interface for testing with an Exasol database in local and AWS environments using Java.
MIT License
1 stars 1 forks source link

Wait for DB container to be extracted #66

Open ckunki opened 1 year ago

ckunki commented 1 year ago

Currently ETAJ does not wait for the script language container contained in the Exasol database (< version 8) to be extracted.

This can take ~ 5 minutes, and hence ETC offers method waitUntilContainerStarted() in ExasolContainer line L530, but ETAJ does not call this method.

This led to problems while working on KCE issue #72.

Acceptance Criteria

ETAJ, ExasolTestcontainerTestSetup line 25 does not specify any services, e.g. UDF, BucketFS, ... Therefore ETC would not wait for SLC to be extracted even when asked for.

Proposal:

  1. enhance ETAJ to require all services by default and call method waitUntilContainerStarted() unconditionally.

Note: As mentioned by @tkilias Docker Containers for Exasol DB version 8 and higher are probably not affected as these are using a container format with SLC contents already extracted, not requiring additional extraction.

ckunki commented 1 year ago

When looking at @pj-spoelders' log files we identified that SLC had already been extracted: Log file /exa/logs/cored/bucketfsd.*.log contained a line matching regular expression "ScriptLanguages.*extracted$" as exasol-testcontainers / UdfContainerWaitStrategy searches for.

So currently we assume a different issue and propose to

  1. setup script logging
  2. run the SQL statements again, e.g. with an SQL client such as DBeaver
  3. inspect output of nc
redcatbear commented 4 months ago

@ckunki is this ticket still valid? I read your last comment as a "no".