We have tried to build a connection test logic to our software to try out the reachability of the SQL Warehouse, yet the connection parameters do not seem to function in expected manner.
When the SQL Warehouse is running, the connection test functions logically (one gets indication rather quickly if the connection can be created).
The challenge comes when the SQL Warehouse is stopped as the JDBC connection creation is kept idle until the SQL Warehouse has been started and the connection tested after that. This can take minutes, yet it would be good to get indication of the situation much faster e.g. "Warehouse STARTING, connection available after Warehouse RUNNING" or something similar.
We tried to play with JDBC parameters like
SocketTimeout
and
TemporarilyUnavailableRetry
but nothing seems to help the JDBC driver to stop the waiting until the Warehouse is up and running.
Have we missed some crucial parameter that could help with this situation or should we try to solve the issue by investigating the SQL Warehouse status via Databricks SDK?